/** COLORS 
    PURPLE      #80336F
    MAGENTA     #CC0874
    PINK        #E61E58
    BLUE        #7BA6B2
    SAGE        #A0C0A9
    YELLOW      #F5CD66
    SAND        #F9E2A7
    BEIGE       #FBEBC1
**/

@font-face {
    font-family: Quicksand;
    src: url(/media/quicksand.ttf);
    font-display: swap;
}

@font-face {
    font-family: Monoton;
    src: url(/media/monoton.ttf);
    font-display: swap;
}

@font-face {
    font-family: Nunito;
    src: url(/media/nunito.ttf);
    font-display: swap;
}


body {
    background-color: #F6F0EB;
    color: #80336F;
    font-family: "Quicksand", sans-serif;
    margin: auto;
    text-align: center;
    text-size-adjust: none;
    font-size: 1rem;
    background-image: radial-gradient(#F9E2A7 20%, transparent 10%);
    background-size: 35px 35px;
    animation: moveDots 20s linear infinite;
}

h1 {
    font-family: "Monoton", sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: normal;
    margin-top: 0;
    margin-bottom: 0;
    text-decoration: none;
    text-align: center;

    background: linear-gradient(270deg,
            #80336F,
            #CC0874,
            #E61E58,
            #F5CD66,
            #80336F);
    background-size: 800% 800%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
}

select {
    font-family: "Quicksand", sans-serif;
    font-weight: bolder;
    background-color: #F6F0EB;
    color: #CC0874;
    border: 10px dotted #F5CD66;
    border-radius: 40px;
    width: 15rem;
    margin: 0.625rem;
    padding: 0.4375rem;
    font-size: 1.5rem;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

select:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    background-color: #F6F0EB;
}

input[type=button],
input[type=submit] {
    font-family: "Quicksand", sans-serif;
    font-weight: bolder;
    color: #CC0874;
    background-color: #F6F0EB;
    border: 10px dotted #F5CD66;
    border-radius: 50px;
    width: 15rem;
    margin: 0.3125rem;
    padding: 0.4375rem;
    font-size: 1.5rem;
}

input[type="submit"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.clothes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
    width: 80%;
    margin: auto;
    max-height: 75vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 0.5rem;
    /* Hide scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.clothes::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.garment {
    display: grid;
    grid-template-columns: 4fr 3fr;
    grid-template-rows: auto auto;
    justify-items: stretch;
    align-items: stretch;
    justify-content: stretch;
    align-content: stretch;
    gap: 0.25rem;
    padding: 0.5rem;
    border: 10px dotted #F5CD66;
    border-radius: 2rem;
    border-top-right-radius: 125px;
    border-bottom-right-radius: 125px;
    background-color: #F6F0EB;
}

.garment:hover .image {
    animation-play-state: paused;
}


.description {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: bold;
    margin: 0 auto;
    text-shadow: 2px 2px 0px #F5CD66;
    text-align: center;
    width: 95%;
}

.information {
    font-family: "Nunito", sans-serif;
    gap: 1rem;

    text-align: left;

    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.5;
    text-shadow: 1px 1px 0px #F5CD66;

    grid-column: 1 / 2;
    grid-row: 2 / 3;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-content: flex-start;
    align-items: stretch;
    gap: 0;
    width: 95%;
}

.image {
    grid-column: 2 / 3;
    grid-row: 1 / 4;
    /* spans all 4 rows */
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    justify-self: end;
    width: 12.5rem;
    height: 12.5rem;
    border-radius: 50%;
    animation: spin 10s linear infinite;
}

.cursor-dot {
    position: absolute;
    background-color: #CC0874;
    /* Sage */
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.8;
    transform: translate(-50%, -50%);
    animation: dotFade 2s ease-out forwards;
    z-index: 9999;
}

@keyframes dotFade {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.2);
    }
}

@keyframes moveDots {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 200px 200px;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1000px) {
    body {
        font-size: 0.95rem;
        padding: 0.5rem;
    }

    h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.1;
    }

    select,
    input[type=submit],
    input[type=button] {
        width: 90%;
        font-size: 1.25rem;
        margin: 0.5rem auto;
    }

    .clothes {
        grid-template-columns: 1fr;
        width: 95%;
        max-height: none;
    }

    .garment {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        text-align: center;
        padding: 1rem;
        border-radius: 2rem;
        border-bottom-left-radius: 10rem;
        border-bottom-right-radius: 10rem;
    }

    .description,
    .information {
        text-align: center;
        width: 100%;
    }

    .image {
        grid-column: 1 / 2;
        grid-row: auto;
        margin: 1rem auto;
        width: 10rem;
        height: 10rem;
    }
}
