html {
    scroll-behavior: smooth;
}

/* variables */

:root {
    --black: #000000;
    --dark-gray: #121313;
    --gray: #989c9c;
    --light-gray: #c6cacc;
    --text-white: #f9fdff;
    --spectralon: #ffffff;
    --blue-white: #c6efff;
    --sky-blue: #12b8ff;
    --blue: #0b9ddb;
}

/* fonts */

@font-face {
    font-family: PoppinsRegular;
    src: url("fonts/Poppins-Regular.ttf");
}

@font-face {
    font-family: PoppinsBold;
    src: url("fonts/Poppins-Bold.ttf")
}

/* main styles */

body {
    font-family: PoppinsRegular, sans-serif;
    padding: 0;
    margin: 0 auto;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--dark-gray) 0%, var(--black) 100%);
    overflow-x: scroll;
}

main {
    max-width: 1920px;
    margin: 0 auto;
}

nav {
    height: 70px;
    background-color: var(--dark-gray);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: sticky;
    z-index: 100;
    top: 0;
    padding: 0 4%;
}

.links-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

nav a {
    height: 100%;
    padding: 0 40px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-white);
    font-family: PoppinsBold, sans-serif;
}

nav a:active {
    color: var(--light-gray);
}

.home-link {
    margin-right: auto;
    padding: 20px;
}

#sidebar-active {
    display: none;
}

.open-sidebar-button, .close-sidebar-button {
    display: none;
}

.white-icon {
  color: var(--text-white);
}

.content-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 7% auto;
    animation: fadeup 0.4s ease-out;
}

.text {
    color: var(--text-white);
    width: 65%; 
    text-align: left;
}

.incredible {
    margin: 0 auto;
    font-family: PoppinsBold, sans-serif;
    letter-spacing: 1.5px;
    font-size: 3.5em;
}

.slogan {
    margin: 0;
    font-size: 1.2em;  
    text-align: left; 
    color: var(--light-gray);
    padding: 10px 0;
    width: 80%;
    letter-spacing: 1.4px;
}

.image {
    text-align: right;
    width: 35%;
    user-select: none;
}

.image img {
    width: 100%;
    max-width: 27em;
    filter: drop-shadow(0px 0px 50px var(--blue-white));
    transform: rotate(-10deg);
    transition: transform 0.3s;
}

.image img:hover {
    transform: scale(1.02) rotate(-10deg);
}

.buy {
    padding: 1rem 2rem;
    margin-top: 1rem;
    border-radius: 50px;
    color: var(--spectralon); 
    font-family: PoppinsBold, sans-serif;
    background-color: var(--sky-blue);
    font-size: 1rem;
    border-style: none;
    cursor: pointer;
}

.buy:active {
    background-color: var(--blue);
}

h2 {
    font-family: PoppinsBold, sans-serif;
}

.content-2 {
    width: 80%;
    max-width: 1100px;
    margin: 0 auto;
}

.boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;
}

.box {
    font-size: 1em;
    background-color: #f8fdff;
    padding: 1.5em;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(198, 239, 255, 0.3);
    line-height: 1.5;
    /* makes overflowed text stay in box */
    overflow: hidden;
    min-height: 350px;
}

.image-box {
    padding: 0;
    background: none;
}

.box-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    /* used to keep image style */
    display: block;
}

.text-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about {
    font-family: PoppinsBold, sans-serif;
    text-align: center;
    color: var(--text-white);
    font-size: 3em;
    padding: 1em;
    margin: 0;
    letter-spacing: 1.3px;
}

.content-3 {
    display: flex;
    flex-direction: column;
    align-items: center;;
    width: 100%;
    /* top, l/r, bottom */
    margin: 7% auto 0;
    background-color: var(--text-white);
    color: var(--dark-gray)
}

.hello {
    font-family: PoppinsBold, sans-serif;
    font-size: 3.5em;
    letter-spacing: 1.5px;
    margin: 0;
    padding: 1em;
    text-align: center;
}

.bottle {
    width: 100%;
    max-width: 15em;
}

.infoboxes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    width: 85%;
    margin: 4%;
}

.infobox {
    font-size: 1em;
    color: var(--black);
    background-color: var(--spectralon);
    padding: 1.5em;
    border-radius: 10px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.2);
    line-height: 2;
    width: 100%;
    max-width: 350px;
}

h3 {
    font-family: PoppinsBold, sans-serif;
    font-size: 1.7em;
    text-align: center;
    margin: 0 0 0.8em 0;
}

.infobox ul {
    padding-left: 15px;
}

/* .content-4 {
    width: 100%;
    margin: 0 auto;
    background: url("images/drinking.jpg");
} */

footer {
    background-color: var(--dark-gray);
}

small {
    color: var(--light-gray);
    margin: 0 auto;
    padding: 10px;
    display: block;
    text-align: center; 
}

.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    color: var(--text-white);
    padding: 2em;
    margin: 0 auto;
    max-width: 1600px;
    font-size: 1em;
    line-height: 1.5;
    gap: 5rem;
}

.item {
    /* flex grow / flex shrink / flex basis */
    flex: 1 1 150px;
    min-width: 200px; 
}

.item-links {
    flex: 0.2 1 120px;
    min-width: 170px; 
}

span {
    color: var(--light-gray);
}

h4 {
    margin: 0;
    padding: 10px 0;
    font-size: 1.4em;
    font-family: PoppinsBold, sans-serif;
}

.links {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    flex-direction: column;
}

.links li {
    padding: 5px 0;
}

.links li a {
    color: var(--light-gray);
    text-decoration: none;
}

.links li a:active {
    color: var(--gray);
}

.news-form {
    padding: 10px 0;
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
}

hr {
    border-color: var(--light-gray)
}

.icons {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    list-style-type: none;
    flex-wrap: wrap; 
}

.icons li {
    padding: 10px 15px;
}

#email {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    background-color: var(--text-white);
    font-family: PoppinsRegular, sans-serif;
    border-radius: 5px;
    border-style: none;
}

#submit {
    padding: 10px 25px;
    background-color: var(--sky-blue);
    color: var(--spectralon);
    font-family: PoppinsRegular, sans-serif;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

/* keyframes */

@keyframes fadeup {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

/* media queries */

@media only screen and (max-width: 1366px) {
    .incredible {
        font-size: 3em;
    }
    .slogan {
        font-size: 1em;
    }
    .image img {
        max-width: 19em;
        filter: drop-shadow(0px 0px 40px var(--blue-white));
    }
    .about {
        font-size: 2.5em;
    }
}

@media only screen and (max-width: 900px) {
    .content-2 {
        width: 100%;
    }
    .boxes {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .box {
        border-radius: 0;    
        min-height: 0;
    }
    /* change order for last image */
    .boxes .box:nth-child(3) { 
        order: 2; 
    }
}

@media only screen and (max-width: 768px) {
    .text {
        text-align: center;
        width: 100%;
    }
    .slogan {
        text-align: center;
        width: 70%;
        margin: 0 auto;
    }
    .image {
        width: 100%;
        text-align: center;
    }
    .content-1 {
        flex-direction: column-reverse;
        width: 90%;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        width: 70%;
        padding: 5%;
    }
    .item {
        width: 100%; 
    }
    .news-form {
        flex-direction: column; 
        align-items: center;
    }
    #email {
        max-width: none;
    }
    #email, #submit {
        flex: none;
        width: 80%; 
        box-sizing: border-box;
    }
    .icons {
        justify-content: center; 
    }
}

@media only screen and (max-width: 601px) {
    .content-1 {
        animation: none;
    }
    .image img {
        max-width: 17em;
        filter: drop-shadow(0px 0px 35px var(--blue-white));
    }
    nav {
        padding: 0;
    }
    .links-container {
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 100;
        width: 300px;
        background-color: var(--dark-gray);
        box-shadow: -5px 0 5px rgba(0, 0, 0, 0.25);
        transition: right 0.5s ease-in-out;
    }
    nav a {
        box-sizing: border-box;
        height: auto;
        width: 100%;
        padding: 20px 30px;
        justify-content: flex-start;
    }
    .open-sidebar-button, .close-sidebar-button {
        padding: 20px;
        display: block;
    }
    .home-link {
        display: none;
    }
    #sidebar-active:checked ~ .links-container {
        right: 0;
    }
    #sidebar-active:checked ~ #overlay {
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 99;
    }
    #sidebar-active:checked ~ body {
        overflow: hidden;
    }
}