:root{
    --yellow: #FFD839;
    --orange-yellow: #ffba39;
    --black: #1B1B1B;
    --dark-black: #000;
    --white: #fff;
    --grey: #b3b3b3;
    --green: #3d8e07;
    --red: #e21a1a;
}

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html{
    scroll-behavior: smooth;
}

body{
    background-color: var(--black);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2{
    font-family: poppinsSemi;
    color: var(--yellow);
}

h3{
    font-family: groteskSemi;
    color: var(--white);
}

p{
    color: var(--white);
    font-family: groteskLight;
}

.banner{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--orange-yellow);
    padding: 10px 0 20px 0;
}

.banner p{
    color: var(--dark-black);
    width: 95%;
    text-align: center;
}

.banner .button{
    margin-top: 10px;
}

.banner a{
    padding: 5px 20px;
    background-color: var(--dark-black);
    border-radius: 25px;
    color: var(--orange-yellow);
}

.error-message{
    background-color: var(--red);
    padding: 5px 10px;
    width: 100%;
    margin-top: 10px;
    text-align: center;
}

.success-message{
    background-color: var(--green);
    padding: 5px 10px;
    width: 100%;
    margin-top: 10px;
    text-align: center;
}

.link{
    color: var(--white);
    text-decoration: none;
    font-family: groteskReg;
    transition: 0.2s;
}

.link:hover{
    color: var(--orange-yellow);
}

.icon::before{ /* Fontawesome psuedo elements */
    font-family: "Font Awesome 5 Free";
    display: block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    color: var(--white);
}

span.underline{
    display: block;
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(to right,var(--yellow) 0,var(--yellow) 4px,transparent 5px,transparent 30px);
    /* yellow then transparent -> repeat this! */
}

form h2{
    border-bottom: 3px solid var(--yellow);
}

form label{
    font-family: groteskReg;
    color: var(--white);
}

input:not([type=checkbox],[type=radio]), textarea{
    background-color: var(--white);
    border: 2px solid var(--grey);
    padding-left: 10px;
    font-family: groteskLight;
    border-radius: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    -webkit-border-radius: none;
    -moz-border-radius: none;
}

textarea{
    padding-top: 10px;
}

input.submit-button{
    font-family: poppinsReg;
    font-size: 15px;
    background-color: var(--yellow);
    transition: 0.2s;
    border: none;
    z-index: 2;
}

input.submit-button:hover{
    background-color: var(--orange-yellow);
    cursor: pointer;
}

.title-img-overlay{
    position: absolute;
    /* Stretch color layer over entirety of container */
    top: 0; 
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(43, 43, 43, 0.527);
    z-index: 1;
}

.overlay-text{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* HEADER */

header{
    width: 100%;
    background-color: var(--dark-black);
}

header .container{
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#logo{
    width: 50%;
    z-index: 98;
    padding: 10px 0;
}

#logo img{
    width: 100%;
}

.hamburger{
    z-index: 99;
}

.hamburger:hover{
    cursor: pointer;
}

/* NAVIGATION */

@media screen and (max-width:800px) {

    .navigation{
        display: none;
        height: 100%;
        width: 100%;
        position: fixed; /* Stay in place */
        z-index: 97; /* Sit on top but underneath the hamburger and site title */
        left: 0;
        top: 0;
        background-color: var(--dark-black);
        overflow-x: hidden; /* Disable horizontal scroll */
        -webkit-transform: translate3d(0,0,0);
        -moz-transform: translate3d(0,0,0);
        -ms-transform: translate3d(0,0,0);
        -o-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
    }

    .nav-inactive{
        display: flex;
        align-items: center;
        justify-content: center;
        animation-name: navInactive;
        animation-duration: 0.5s;
        animation-fill-mode: forwards;
        touch-action: none;
        -ms-touch-action: none;
    }

    .nav-active{
        display: flex;
        align-items: center;
        justify-content: center;
        animation-name: navActive;
        animation-duration: 0.5s;
        touch-action: none;
        -ms-touch-action: none;
    }

    .navigation nav{
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    a.home::before{
        font-weight: 900;
        content: "\f015";
    }

    a.about::before{
        font-weight: 900;
        content: "\f05a";
    }

    a.past-winners::before{
        font-weight: 900;
        font-size: 22px;
        content: "\f091";
    }

    a.contact::before{
        font-weight: 900;
        content: "\f0e0";
    }

}

.navigation a{
    display: flex;
    align-items: center;
    font-size: 25px;
    margin: 15px 0;
}

.navigation .icon::before{
    margin-right: 15px;
}

a.enter-now::before{
    font-weight: 900;
    content: "\f061";
    color: var(--yellow);
}

a.enter-now{
    color: var(--yellow);
}

/* Content container stretch */

.content-container{
    flex: 1;
    min-height: 100vh;
}

/* FOOTER */

footer{
    width: 100%;
    background-color: var(--dark-black);
    padding: 15px 0;
    margin-top: 30px;
}

footer .container{
    margin-right: auto;
    margin-left: auto;
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
}

.copyright{
    margin-top: 1vh;
    color: #707070;
}

.facebook::before{
    font-weight: 400;
    content: "\f082";
}

.instagram::before{
    font-weight: 400;
    content: "\e055";
}

.socials{
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.social::before{
    font-family: "Font Awesome 5 Brands";
    transition: 0.2s;
    font-size: 45px;
    margin: 0 30px;
}

.social:hover::before, #socials .social:hover::before{
    cursor: pointer;
    color: var(--orange-yellow);
}

.socials-contact{
    display: flex;
    flex-direction: column;
}

footer .contact-details{
    margin-top: 1.5vh;
}

footer .contact-details p{
    text-align: center;
}

/* NAV KEYFRAMES */

@keyframes navInactive{
    0%{
       opacity: 1;
    }
    50%{
        opacity: 0;
        transform: translateX(0);
    }
    99%{
        opacity: 0;
    }
    100%{
        transform: translateX(-100%);
        visibility: hidden;
    }
   }

   @keyframes navActive{
      0%{
         opacity: 0;
         transform: translateX(-100%);
      }
      20%{
        opacity: 0;
        transform: translateX(0);
      }
      100%{
         opacity: 1;
      }
   }

@media screen and (min-width:450px){
    
    #logo{
        width: 40%;
    }

}

@media screen and (min-width:650px){
    
    #logo{
        width: 30%;
    }

    .banner{
        flex-direction: row;
        padding: 15px 0;
    }

    .banner p{
        width: auto;
    }

    .banner .button{
        margin: 0 0 0 20px;
    }

}

/* DESKTOP STYLES */

@media screen and (min-width:800px){
    
    .hamburger{
        display: none;
    }

    #logo{
        width: 25%;
    }

    header .container{
        width: 95%;
    }

    /* Navigation */

    .navigation nav{
        display: flex;
        align-items: center;
    }

    .navigation a{
        font-size: 16px;
        margin: 0 10px;
    }

    .navigation .enter-now::before{
        margin-left: 10px;
        margin-right: 0;
        order: 2;
        color: var(--dark-black);
        transition: 0.2s;
    }

    .navigation .enter-now{
        color: var(--dark-black);
        background-color: var(--yellow);
        padding: 3px 10px;
        transition: 0.2s;
        border: 2px solid var(--yellow);
    }

    .navigation .enter-now:hover{
        background-color: transparent;
        color: var(--yellow);
    }

    .navigation .enter-now:hover::before{
        color: var(--yellow);
    }

    /* Footer */

    footer .container{
        width: 90%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .copyright{
        order: 1;
        margin: 0;
    }

    .socials-contact{
        flex-direction: row;
        order: 2;
        align-items: center;
    }

    .socials{
        flex-direction: column;
        order: 2;
    }

    .social::before{
        font-size: 40px;
        margin: 5px 0;
    }

    footer .contact-details{
        margin-right: 3vw;
        margin-top: 0;
    }

    footer .contact-details p{
        text-align: left;
    }

}

@media screen and (min-width:1000px){
    
    #logo{
        width: 20%;
    }

}

@media screen and (min-width:1300px){
    
    #logo{
        width: 15%;
    }

}

@media screen and (min-width:1450px){
    
    #logo{
        width: 12%;
    }

}

/* FONTS */

/* HK Grotesk */

@font-face {
    font-family: groteskLight;
    src: url("../../assets/fonts/hkGrotesk/HKGrotesk-Light.5ad7c6fb6cda.otf");
}

@font-face {
    font-family: groteskReg;
    src: url("../../assets/fonts/hkGrotesk/HKGrotesk-Regular.cab8839a909b.otf");
}

@font-face {
    font-family: groteskMed;
    src: url("../../assets/fonts/hkGrotesk/HKGrotesk-Medium.c471e9ace164.otf");
}

@font-face {
    font-family: groteskSemi;
    src: url("../../assets/fonts/hkGrotesk/HKGrotesk-SemiBold.507739170000.otf");
}

/* POPPINS */

@font-face {
    font-family: poppinsReg;
    src: url("../../assets/fonts/poppins/Poppins-Regular.8b6af8e5e832.ttf");
}

@font-face {
    font-family: poppinsSemi;
    src: url("../../assets/fonts/poppins/Poppins-SemiBold.4cdacb8f89d5.ttf");
}