@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

:root {
    background-color: var(--secondary-1);

    font-size: 16px;
    font-family: Poppins;

    scroll-behavior: smooth;

    /* COLORS */

    --primary-1: #efefef;
    --primary-2: #e0e0e0;
    --primary-2t: #e0e0e074;
    --primary-3: #bbbbbb;

    --secondary-1: #2b2929;
    --secondary-1t:rgba(14, 14, 14, 0.444);
    --secondary-2: #171616;
    --secondary-3: #2f2a2a;
    --secondary-3t: #5f5d5dbf;
    --secondary-4: #999999;
    --secondary-5: #171616;

    --accent-1: #31642b;
    --accent-1t: #85c7a277;
    --accent-2: #3584e4;
    --accent-3: #857785;
    --accent-4: #4b354b;
}

@media (max-width: 1024px) {
    :root {
        font-size: 8px;
    }
}

/* GENERAL */
* {
    main {
        min-height: 80vh;
        padding-inline: 10em;
    }
    .left {
        text-align: left;
        margin: 0;
    }
    .accent {
        margin: 2em auto;
        font-size: 1.5em;
        color: var(--primary-2);
        padding: 2em;
        background-color: var(--accent-1);
        height: auto;
    }

    .accent img {
        width: 50%;
    }

    .btn {
        cursor: pointer;
        padding: 5px;
        border-radius: 5px;
        background-color: var(--accent-1t);
    }

    .accent div * {
        height: auto;
        display: flex;
        vertical-align: middle;
    }
 
    .push-below {
        margin-bottom: 4em;
    }

    .push-above {
        margin-top: 4em;
    }

    img {
        height: 80%;
        width: 80%;
    }

    .big-img {
        width: 80%;
        height: 80%;
    }

    h1 {
        font-family: 'Poppins';
        font-size: 2.8em;
        color: var(--secondary-1);
    }

    h2 {
        font-size: 2em;
    }

    p {
        font-size: 1.2em;
    }

    .row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .box {
        /* flex: 1; */
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;

        min-width: 400px;
    }

    .flex {
        flex: 1;
    }

    .down {
        margin-top: 1rem;
    }
    
    .big {
        font-size: 1.2em;
    }

    .narrow {
        width: 60%;
    }

    .inline {
        padding-inline: 10rem;
    }

    @media (max-width: 1024px) {
        .narrow {
            width: 90%;
        }
    }

    .center {
        margin: auto;
        text-align: center;
    }

    .sticky {
        position: sticky;
    }

    html, body {
        font-family: "Poppins";
        font-size: 16px;

        margin: 0;
        padding: 0;
        max-width: 100%;
        
        overflow-x: hidden !important;
        
        background-color: var(--primary-1);
    }

    @media (max-width: 800px) {
        html, body {
            font-size: 14px;
        }

        .mobile-flip {
            flex-direction: column-reverse;
        }

        main {
            padding-inline: 0;
        }
    }

    footer {
        background-color: var(--accent-1t);
        color: var(--secondary-2);
        padding: 1rem;
    }

    footer .big {
        color: var(--secondary-1);
    }

    section h2 {
        font-size: 2em;
        margin-left: 3rem;
    }

    section a {
        color: var(--accent-1);
    }

    main section {
        background-color: var(--primary-1);
        padding: 0.6rem;
        padding-inline: 6rem;
    }

    @media (max-width: 1024px) {
        main section {
            padding-inline: 1rem;
        }
    }

    main section > div {
        margin: auto;
        max-width: 1200px;
    }

    .icon {
        margin-right: 1rem;
        margin-bottom: -0.4rem;
    }

}

/* FORMS */

form {
    margin: auto;
    width: 85%;
    padding: 2em;
}

form label, form p {
    font-size: 1.8em;
}

form input[type="text"], form input[type="date"], form input[type="tel"], textarea, form input[type="number"], form input[type="submit"], form input[type="email"] {
    transition: 0.3s;
    border-radius: 5px;
    border: 1px solid var(--secondary-3);
    font-size: 2.2em;
}

form input[type="text"]:hover, form input[type="date"]:hover, form input[type="tel"]:hover, form input[type="number"]:hover, form input[type="submit"], form input[type="email"]:hover, textarea:hover {
    background-color: var(--accent-2);
    color: var(--primary-1);
    cursor: pointer;
}

form input[type="submit"] {
    font-size: 2em;
}

form input, form label, form p {
    display: flex;
    margin: 0.3em;
}

form input[type="checkbox"]:checked ~ label {
    background-color: var(--accent-2);
    color: var(--primary-1);
}

form input[type="checkbox"] ~ label {
    transition: 0.3s;
    border-radius: 5px;
    padding: 0.4em;
    /* background-color: var(--accent-2); */
}

form fieldset {
    margin-top: 0.4em;
    margin-bottom: 0.4em;
    border: none;
    display: block;

    /* border-bottom: 2px solid var(--accent-1); */
}

form fieldset div {
    display: flex;
}

form input[type="checkbox"], form input[type="radio"] {
    font-size: 1.4em;
    width: 2em;
    /* display: none; */
}








header nav {
    z-index: 9999;

    display: flex;
    position: sticky;
    top: 0;
    justify-content: space-between;

    color: var(--secondary-1);
    font-size: 1.2em;

    padding: 0 1rem;
    border-radius: 2rem;
} 

@keyframes nav-scroll-effect {
    0% {
        box-shadow: none;
        border: none;
        border-radius: 0;
        width: 100%;
    }
    100% {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        border: 2px solid rgba(88, 88, 88, 0.822);
        border-radius: 2rem;
        width: 90%;
    }
}

header {
    z-index: 10000;
    position: sticky;
    top: 0;
    padding: 1rem;
}

header > div {
    z-index: -1;

    margin: auto;

    background-color: var(--primary-1);
    border-radius: 2rem;

    animation: nav-scroll-effect ease forwards;
    animation-timeline: scroll(y);
    animation-range: entry 0% entry 10%;
}

#nav-mobile {
    display: none;

}

.nav {
    overflow: hidden;
}

.home {
    font-weight: bold;
}

.mobile-nav {
    display: none;
    transition: 0.5s;
    flex-direction: column;
    position: absolute;
}

#nav-mobile:checked + .nav .mobile-nav {
    display: flex;

    position: absolute;
    right: 1rem;
    top: 8rem;
    
    background-color: var(--primary-1);
    border-radius: 1rem;

    font-size: 1.4em;
    opacity: 1;
    border: 2px solid var(--secondary-1);
}


.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 1rem;
    color: white;
}

.bar {
    height: 2px;
    width: 20px;
    background-color: black;
    margin: 2px 0;
}

@media (min-width: 600px) {
    .mobile-nav {
        display: flex;
        flex-direction: row;
        position: relative;
        background-color: var(--primary-1);
    }

    #nav-mobile {
        display: none;
    }

    .hamburger {
        display: none;
    }

    header label {
        position: absolute;
    }
}

header ul {
    padding: 0;
    margin: 0;
    display: inline-flex;
}

header ul.align-right {
    flex-direction: row-reverse;
}

header li {
    display: inline-flex;
    list-style-type: none;
}

header li a {
    color: var(--secondary-1);
    text-decoration: none;
    padding: 1rem;

}

header li.home {
    flex-direction: column;
}