@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

html{
    scroll-behavior: smooth;
}

body{
    margin: 0;
    padding: 0;
    color: var(--color);
    background: var(--background);
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    --theme1: #badc58;
    --theme2: #6ab04c;
    --color: #181818;
    --background: #f8f8f8;
    --white: #f8f8f8;
    --black: #181818;
    --transition: 0.2s ease all;
    --font: 'Inter', sans-serif;
    --navbarHeight: 66px;
}

#content{
    margin: 0;
    scroll-snap-type: y mandatory;
}

.inner-width{
    width: 100%;
    max-width: 1100px;
    margin: auto;
    padding: auto 10px;
}

/* LOADER */
#loadingScreen{
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--theme1);
    z-index: 1001;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
}

#loader::after{
    content: "🐐";
    font-size: 8rem;
    transition: 250ms ease all;
    animation: loaderText 3s infinite, loaderZoom 1s infinite;
    white-space: pre;
}

@keyframes loaderText{
    0%{
        content: "🐐";
     }

     30%{
        content: "🛣️";
     }

     45%{
        content: ".";
     }

     60%{
        content: "c";
     }

     70%{
        content: "o";
     }

     80%{
        content: "m";
     }
}

@keyframes loaderZoom{
    0%{
        font-size: 8rem;
     }

     50%{
        font-size: 9rem;
     }

     100%{
        font-size: 8rem;
     }
}

/* NAV */
#navbar{
    width: 100%;
    height: 66px;
    background: var(--theme1);
    color: var(--black);
    font: var(--font);
    font-size: 1rem;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
}

#navbar .inner-width{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

#navbar img{
    width: auto;
    height: 66px;
}

#navbarLinks{
    margin: 0 10px;
}

@media screen and (max-width:640px){
    #navbar .inner-width{
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap;
    }

    #navbarLinks{
        display: none;
    }
}

/* HOME */
#home{
    width: 100%;
    height: 100vh;
    background-image: url(assets/images/background.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    margin: 0;
    color: var(--white);
    animation: changeBackground 25s infinite;
    transition: background-image 250ms all;
    scroll-snap-align: start;
}

#home .inner-width{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    flex-wrap: wrap;
}

#home h1{
    font-size: 3rem;
    background-image: linear-gradient(45deg, rgb(44, 138, 1) 0%, rgba(78,205,49,1) 30%, rgba(112,212,35,1) 65%, rgba(211,255,0,1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: none;
}

@keyframes changeBackground{
    0%{
        background-image: url(assets/images/background.jpg);
     }

     33%{
        background-image: url(assets/images/background2.jpg);
     }

     66%{
        background-image: url(assets/images/background3.jpeg);
     }

     100%{
        background-image: url(assets/images/background.jpg);
     }
}

/* GOATS SECTION */
#goatContainer{
    display: grid;
    grid-template-columns: auto;
}

.goatObject{
    display: grid;
    grid-template-columns: 1fr 3fr;
    grid-auto-flow: row;
}

.goatObject img{
    width: auto;
    height: max-content;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    transition: var(--transition);
}

.goatObject img:hover{
    transform: scale(1.5);
}

/* GENERAL */
.link{
    position: relative;
    text-transform: uppercase;
}

.link::before{
    content: "";
    position: absolute;
    height: 1.2rem;
    width: 1.2rem;
    border-radius: 32px;
    background: var(--theme2);
    z-index: -1;
    transition: 250ms ease all;
    top: 0;
    left: -0.2rem;
}

.link:is(:hover, :focus)::before{
    width: calc(100% + 0.4rem);
}

.page{
    width: 100%;
    height: calc(100vh - var(--navbarHeight));
    margin: 0;
    scroll-snap-align: start;
}

.page:nth-child(odd){
    background: var(--theme1);
    color: var(--black);
}

.page:nth-child(even){
    background: var(--white);
    color: var(--black);
}

.sectionTitle{
    position: relative;
    padding: auto 30px;
    margin: auto 30px;
    font-size: 1.4rem;
}

.sectionTitle::before{
    content: "🐐";
    position: absolute;
    left: -20px;
    margin: 0;
    font-size: 1.4rem;
}

.hidden{
    display: none;
}

a{
    color: inherit;
    text-decoration: none;
    outline: none;
}

a:hover, a:focus{
    color: inherit;
}