@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,700;1,400&display=swap');
@import "reset.css";
@import "stable-elements.css";

:root {
    --blue: #79ADD3;
    --red: #DB0000;
    --error: #e30000;
}

html, body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
}


/* Custom classes */
.flex-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.flex-row-center {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.hidden {
    display: none !important;
}
.alert {
    padding: .5rem 0;
    border-radius: 5px;
    width: 100%;
    display: block;
    margin: 1rem 0 0;
    font-size: 14px;
    text-align: center;
    font-weight: bold;
}
.alert-error {
    background-color: var(--error);
    color: white;
}
.bg-blue {
    background-color: var(--blue);
}
/* HEADER */
header {
    padding: .5rem 1rem;
}
header .back {
    position: absolute;
    left: 3%;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: bold;
    text-transform: uppercase;
}
header .logo img {
    width: 8rem;
}

/* PAGE HEADER */
.page-header {
    justify-content: center;
    padding: 2rem 0;
    width: 100%;
}

/* PAGE MAIN SECTION */
main {
    position: relative;
    justify-content: flex-start !important;
    flex-grow: 1;
}

/* PAGE 1 */
.page1 {
    background: var(--blue) url("../../assets/images/page1-yeti-mobile.png") no-repeat 50% 60%;
    min-height: 705px;
}
.page1 .code-input {
    text-align: center;
    padding: 1rem;
    border: none;
    font-size: 1.5rem;
    background-color: white;
}
.page1 .code-input::placeholder {
    color: #999;
    font-size: 1rem;
    text-transform: uppercase;
}

/* PAGE 2 */
.page2 .page-header {
    background: var(--blue) url("../../assets/images/page2-yeti.png") no-repeat center;
}

.page2 .products {
    max-width: 1700px;
    padding: 2rem 0;
    width: 100%;
    flex-wrap: wrap;
}
.page2 .products .item {
    justify-content: flex-start;
    margin: 10px 0 0 10px;
}

/* PAGE 3 */
.page3 .page-header {
    background: var(--blue) url("../../assets/images/page3-yeti.png") no-repeat center;
}

/* PAGE 4 */
.page4 {
    background: var(--blue) url("../../assets/images/page4-yeti.png") no-repeat 75% 30%;
    min-height: 750px;
    background-size: cover;
}
.page4 .prize-img {
    background-color: white;
    border-radius: 10px;
    padding: 5px;
    width: 160px;
    margin-bottom: 1rem;
}

/* PAGE 3 - FORM LAYOUT */
.form-wrapper {
    width: 85vw;
    padding: 2rem 0 4rem;
}
.form {
    align-items: flex-start;
    width: 100%;
}
.row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
}
.col {
    flex: 1 0 100%;
    padding: 0 0 1rem;
}
.col:nth-child(2) {
    margin-left: 0;
}
.form-toggle {
    font-size: 12px;
    text-align: right;
    cursor: pointer;
}
.form-toggle:hover {
    text-decoration: underline;
}



/* FOOTER */
footer {
    position: relative;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    background-color: rgb(229 231 235);
    padding: 1rem;
}
footer a:hover {
    text-decoration: underline;
}
footer nav {
    display: flex;
    flex-basis: 50%;
    justify-content: center;
    order: 2;
    position: absolute;
    overflow: hidden;
    bottom: 0;
    background-color: rgb(229 231 235);
    width: 100%;
    max-height: 0;
    transition: all 300ms ease;
}
footer nav.active {
    bottom: 100%;
    max-height: 200px;
}
footer .logos {
    display: flex;
    align-items: center;
    justify-content: space-around;
    order: 1;
    flex-basis: 100%;
}
footer .logos .rydale {
    display: flex;
    justify-content: center;
    width: 20%;
}
footer .logos .social {
    display: flex;
}
footer .logos .social img {
    margin: 0 .5rem;
    width: 16px;
}
footer .logos .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
footer .logos .menu-toggle img {
    margin-left: 1rem;
}
footer .payment-options {
    display: none;
    flex-direction: column;
    order: 3;
    flex-basis: 50%;
}



/* MEDIA QUERIES */
/* breakpoint for between MD and XS */
@media (min-width: 499px) {
    h1 {
        font-size: 36px;
    }
    h4 {
        padding: 0 0;
    }
    h4 br {
        display: block;
    }
    .form-wrapper {
        width: 60vw;
    }
    .page4 {
        background: var(--blue) url("../../assets/images/page4-yeti.png") no-repeat 47% 5%;
        min-height: 805px;
        background-size: unset;
    }
    footer .logos .social img {
        margin: 0 1rem;
        width: 24px;
    }
}
/* breakpoint for MD */
@media (min-width: 769px) {
    .page1 {
        background: var(--blue) url("../../assets/images/page1-yeti.png") no-repeat 50% 8vh;
    }
    .form-wrapper {
        width: 50vw;
    }
    .col {
        flex: 1 0 0%;
        padding: 0 0 1rem;
    }
    .col:nth-child(2) {
        margin-left: 1rem;
    }
    footer {
        justify-content: space-between;
    }
    footer nav {
        flex-basis: 35%;
        position: relative;
        bottom: unset;
        overflow: unset;
        order: 1;
        width: unset;
        max-height: unset;
    }
    footer .logos {
        flex-direction: column;
        margin-bottom: 2rem;
        flex-basis: unset;
    }
    footer .logos .rydale {
        width: 50%;
    }
    footer .logos .social {
        justify-content: center;
    }

    footer .logos .menu-toggle {
        display: none;
    }
    footer .payment-options {
        display: flex;
        flex-basis: 30%;
    }
}
/* breakpoint for LG */
@media (min-width: 1025px) {
    footer .logos {
        flex: 1 1 0;
        order: 2;
    }
    footer .payment-options {
        flex: 1 1 0;
    }
}

/* breakpoint for XL */
@media (min-width: 1360px) {
    .form-wrapper {
        width: 32vw;
    }
}