@font-face {
    src: url("fonts/Raleway-VariableFont_wght.ttf") format("truetype");
    font-family: "Raleway";
    /*  Copyright 2010 The Raleway Project Authors (impallari@gmail.com), with Reserved Font Name "Raleway".

        This Font Software is licensed under the SIL Open Font License, Version 1.1.
        This license is copied below, and is also available with a FAQ at:
        https://openfontlicense.org 
    */    
}

@font-face {
    src: url("fonts/LeagueSpartan-VariableFont_wght.ttf");
    font-family: "spartan";
    /* Copyright 2020 The League Spartan Project Authors (https://github.com/theleagueof/league-spartan)

        This Font Software is licensed under the SIL Open Font License, Version 1.1.
        This license is copied below, and is also available with a FAQ at:
        https://openfontlicense.org
    */
}

body, html{
    margin: 0;
    padding: 0;
}

html{
    overflow-x: hidden;
}

.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: black;
    color: white;
}

.nav_links{
    font-family: "Raleway", sans-serif;
    display: flex;
}

.nav_links a{
    text-decoration: none;
    color: white;
    font-size: 20px;
    margin-right: 20px;
}
.nav_links a:hover{
    text-decoration: underline;
}

.logo{
    font-family: "Raleway", sans-serif;
    font-weight : bold;
    font-size: 3rem;
    color: white;
    text-decoration: none;
    transition: ease-in-out 0.3s;
    margin: 50px;
    margin-bottom: 50px;
}

.socials{
    display: flex;
    gap: 1rem;
}
.insta_logo{
    position: fixed;
    z-index: 100;
    bottom: 1vh;
    right: 2vh;
    color: black;
    transition: ease-in-out 0.1s;
}


.sc_logo{
    position: fixed;
    z-index: 100;
    bottom: 1vh;
    right: 8vh;
    color: black;
    transition: ease-in-out 0.1s;  
    transform: scale(1.2); 
}

@media (max-width: 720px){
    .insta_logo{
        position: fixed;
        color: black;
        z-index: 100;
        bottom: 1vh;
        right: 2vh;
        transition: ease-in-out 0.1s;  
    }
    .sc_logo{
        color: black;
        position: fixed;
        bottom: 1vh;
        right: 6vh;
        transition: ease-in-out 0.1s;  
        transform: scale(1.2); 
    }
}

.insta_logo:hover{
    transform: scale(1.2);
}

.sc_logo:hover{
    transform: scale(1.4);
}

.main_body{
    min-height: 60vh;
}
.page_title{
    text-align: left;
    margin-left: 5vh;
    font-family: "spartan", sans-serif;
    font-size: 8vh;
}

.subtitle{
    font-family: "Raleway", sans-serif;
    color: grey;
    margin-left: 5vh;
}

@media (min-width: 720px){
    .product_grid{
        display: flex;
        flex-direction: row;
        gap: 2rem;
        margin-left: 5vh;
    }
}

.product_card{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        background-color: grey;
        height: min-content;
        width: 18rem;
        gap: 2rem;
        margin-left: 0rem;
        margin-bottom: 2rem;
        padding: 1rem;
        border-radius: 1rem;
    }
@media (max-width: 720px){
    .navbar{
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }

    .nav_links{
        flex-wrap: wrap;
        gap: 0.75rem 1rem;
    }

    .nav_links a{
        margin-right: 0;
        font-size: 1rem;
    }

    .logo{
        margin: 0;
        margin-left: 1rem;
        margin-top: 0.5rem;
        margin-bottom: 0;
        font-size: 2.25rem;
    }

    .page_title{
        font-size: clamp(2.5rem, 12vw, 4rem);
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .subtitle,
    .back_link{
        margin-left: 1rem;
    }

    .product_grid{
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }

    .product_card{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        background-color: grey;
        height: min-content;
        width: min(100%, 18rem);
        gap: 2rem;
        margin: 0 auto 2rem;
        padding: 1rem;
        border-radius: 1rem;
    }

    .product_card .info{
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
.shirt_preview{
    position: relative;
    width: min(100%, 22rem);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0.75rem;
    background-color: rgba(255, 255, 255, 0.08);
}

.shirt_image{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease-in-out;
}

.shirt_back{
    opacity: 0;
}

.shirt_preview:hover .shirt_back,
.shirt_preview:focus-visible .shirt_back{
    opacity: 1;
}

.shirt_preview:hover .shirt_front,
.shirt_preview:focus-visible .shirt_front{
    opacity: 0;
}

.info{
    font-family: "Raleway", sans-serif;
    margin-bottom: 2rem;
    text-align: left;
    display: flex;
    gap: 2rem;
}

.price{
    text-align: right;
}

.product_name{
    margin: 0;
    font-size: ;
}
.order_btn{
    background-color: rgb(52, 52, 52);
    text-align: center;
    text-decoration: none;
    font-family: "spartan", sans-serif;
    font-weight: bold;
    color: white;
    border: none;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 5rem;
    padding-right: 5rem;
    width: max-content;
    border-radius: 0.5rem;
    transition: ease-in-out 0.15s;
}

.order_btn:hover{
    filter: brightness(1.3);
}

hr{
    border: none;
    height: 1px;
    background-color: black;
    margin-top: 0.5rem;
}

.product_display{
        display: flex;
        flex-direction: row;
        gap: 10rem;
        width: 28rem;
        margin: none;
        padding: none;
    }

@media (max-width: 720px){
    .product_display{
        display: flex;
        flex-direction: column;
        width: min(100%, 28rem);
        max-width: 100%;
        margin: none;
        padding: none;
    }

    .slider{
        width: 100%;
        justify-content: center;
    }

    .slide{
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}

.slider{
    position: relative;
    display: flex;
}

.slider img{
    display: none;
}

.slide{
        height: 40rem;
    }

.prev{
    height: fit-content;
    background: none;
    border: none;
    font-size: 2rem;
}

.next{
        right: 0%;
        height: fit-content;
        background: none;
        border: none;
        font-size: 2rem;
    }

img.displaySlide{
    display: block;
}

.slider button{
    position: absolute;
    color: rgb(58, 58, 58);
    top: 50%;
    transform: translateY(-50%);
}

.slider button:hover{
    cursor: pointer;
    filter: brightness(1.3);
}
@media (max-width: 720px){
    .slide{
        height: auto;
    }
    .prev{
        right:99%;
        height: fit-content;
        background: none;
        border: none;


    }
    .next{
        right: 5%;
        height: fit-content;
        background: none;
        border: none;
        font-size: 2rem;
    }
}

.back_link{
    font-family: "Raleway", sans-serif;
    color: black;
    text-decoration: none;
    font-weight: normal;
    font-size: 1.5rem;
    transition: ease-in-out 0.2s;
    margin-left: 5vh;
}

.back_link:hover{
    font-weight: bold;
}

.selectors{
        height: fit-content;
        gap: 1rem;
        margin: auto;
        display:flex;
        flex-direction: column;
        padding: 0rem;
        margin-bottom: 2rem;
    }

.price_title{
        font-family: "Raleway", sans-serif;
        color: black;
        font-size: 2.5rem;
        width: max-content;
        font-weight: bold;
    }

@media (min-width: 720px){
    .selectors{
        height: fit-content;
        gap: 1rem;
        margin: auto;
        display:flex;
        flex-direction: column;
        padding: 2rem;
        margin-bottom: 2rem;
    }
    .price_title{
        font-family: "Raleway", sans-serif;
        color: black;
        font-size: 1.25rem;
        width: max-content;
        font-weight: bold;
    }
}

.color_selector{
    display: flex;
    flex-direction: row;
    gap: 0.2rem;
}

.size_selector{
    display: flex;
    flex-direction: row;
    gap: 0.4rem;
}

.size_btn{
    font-family: "spartan", sans-serif;
    background-color: lightgrey;
    font-size: 2rem;
    font-weight: 600;
    color:black;
    padding: 0.5rem 1rem 0.2rem 1rem;
    border: solid grey 0.2rem;
    border-radius: 0.5rem;
    transition: ease-in-out 0.15s;
}

.size_btn:hover{
    cursor: pointer;
    filter: brightness(1.1);
}

.size_btn.selected{
    background-color: grey;
    color: white;
}

.color_selector .selected{
    outline: 0.2rem solid black;
    outline-offset: 0.15rem;
}

.white_btn{
    background-color: white;
    width: 2rem;
    height: 2rem;
    border-color: grey;
    border-radius: 0.5rem;
    border-style: solid;
    transition: ease-in-out 0.2s;
}

.white_btn:hover{
    cursor: pointer;
    background-color: lightgrey;
}

.black_btn{
    background-color: rgb(45, 45, 45);
    width: 2rem;
    height: 2rem;
    border-color: grey;
    border-radius: 0.5rem;
    border-style: solid;
    transition: ease-in-out 0.2s;
}

.black_btn:hover{
    cursor: pointer;
    background-color: black;
}

#email_section{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    
}

#email_section input{
    font-family: "spartan","Raleway", sans-serif;
    padding: 0.5rem;
    background-color: transparent;
    font-size: 1.5rem;
    width: max-content;
    border: solid grey 0.2rem;
    border-radius: 0.25rem;
}

#email_section input:invalid{
    background-color: rgb(215, 215, 215);
}

#email_section button{
    background-color: rgb(52, 52, 52);
    color: white;
    font-size: 1rem;
    font-family: "spartan", sans-serif;
    font-weight: 550;
    border: none;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-radius: 0.25rem;
}

#email_section .submitted{
    background-color: red;
}

#email_section button:hover{
    cursor: pointer;
}

@media (max-width: 720px){
    #email_section button{
        background-color: rgb(52, 52, 52);
        color: white;
        font-size: 1rem;
        font-family: "spartan", sans-serif;
        font-weight: 550;
        border: none;
        width: 35vh;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        border-radius: 0.25rem;
    }
}

.redirect_btn{
    font-family: "spartan", sans-serif;
    font-weight: bold;
    color: black;
    text-decoration: none;
}

.redirect_btn p{
    width: fit-content;
}
.redirect_btn:hover{
    text-decoration: underline;
}