﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    user-select: none;
}

body {
    background-image: url(./assets/Gemini_Generated_Image_cn8vwhcn8vwhcn8v.png);
    background-size: contain;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

img {
    pointer-events: none;
    -webkit-user-drag: none;
}

div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h1 {
    font-size: 4rem;
    -webkit-text-stroke: 0.1px #741f65;
    text-shadow: 0 0 8px rgba(153, 34, 117, 0.35);
    color: #000;
    padding: 5px;
}

.conteiner {
    width: 100%;
    height: 60vh;
    max-width: 520px;
    padding: 30px;
    gap: 20px;
    border: 2px solid #992275;
    border-radius: 20px;
    box-shadow: 0 0 0 8px #5f046b6b;
    background: rgba(54, 0, 65, 0.15);
    backdrop-filter: blur(3px);
}

.winner{
    background-color: rgba(168, 77, 168, 0.6);
    display: none;
    visibility: visible;
    width: 113%;
}

.winner.show {
    display: block;
}

.btn {
    flex-direction: row;
    gap: 15px;
}

.btn button {
    width: 130px;
    height: 115px;
    border: 2px solid #f254f2;
    border-radius: 10px;
    cursor: pointer;
    background: #741f65;
    transition: 300ms;
}

.btn img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    transition: 100ms;
}

button:active {
    transform: scale(0.7);
    transition: 50ms;
    background: #a84da8;
}

.btn button:active img {
    transform: scale(1.9);
    filter:
        drop-shadow(2px 0 0 #ffffff)
        drop-shadow(-2px 0 0 #ffffff)
        drop-shadow(0 2px 0 #000)
        drop-shadow(0 -2px 0 #000);
}

.score {
    flex-direction: row;
    gap: 18px;
    padding: 5px 20px;
    width: 100%;
}

#h, #m{
    font-size: 3rem;
    color: #14bfc5;
    -webkit-text-stroke: 0.1px #858585;
}

.result{
    font-size: 1.9rem;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: #fff;
}

p {
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    text-align: center;
    white-space: nowrap;
}

.IA,
.you {
    font-size: 1.3rem;
    color: #ffffff;
    text-align: center;
}

.p1,
.p2 {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    border: 1px solid #992275;
    border-radius: 8px;
    background-color: rgba(114, 6, 96, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    
    box-shadow: 0 0 12px rgba(153, 34, 117, 0.30);
}

@media (max-width: 1400px) {
    body {
        padding: 20px;
        background-size: cover;
    }

    .conteiner {
        width: 100%;
        height: 90vh;
        max-height: calc(100dvh - 24px);
        padding: 16px;
        gap: 12px;
        overflow-x: hidden;
        overflow-y: auto;
    }

    h1 {
        font-size: 4rem;
        padding: 8px;
        text-align: center;
    }

    .btn {
        width: 100%;
        flex-direction: row;
        gap: 8px;
    }

    .btn button {
        flex: 1;
        width: auto;
        min-width: 0;
        max-width: 130px;
        height: 115px;
        aspect-ratio: 1 / 0.95;
    }

    .btn img {
        width: clamp(42px, 13vw, 55px);
        height: clamp(42px, 13vw, 55px);
    }

    .btn button:active img {
        transform: scale(1.35);
    }

    .score {
        width: 100%;
        flex-direction: row;
        gap: 8px;
        padding: 5px;
    }

    .p1,
    .p2 {
        flex: 1;
        width: auto;
        min-width: 0;
        padding: 10px;
    }

    #h,
    #m {
        font-size: clamp(2rem, 10vw, 2.4rem);
    }

    .result {
        font-size: 1.3rem;
        text-align: center;
    }

    p {
        font-size: clamp(0.65rem, 3vw, 0.75rem);
        white-space: normal;
        overflow-wrap: break-word;
    }

    span {
        font-size: 2.4rem;
    }

    .winner {
        width: 113%;
        
    }

    .winner.show {
        visibility: visible;
    }
    
    .winner p {
        gap: 12px;
        flex-wrap: wrap;
    }

    .IA,
    .you {
        font-size: 1.3rem;
    }
}


@media (max-width: 600px) {
    body {
        padding: 12px;
        background-size: cover;
    }

    .conteiner {
        width: 90%;
        height: 50vh;
        max-height: calc(100dvh - 24px);
        padding: 16px;
        gap: 12px;
        overflow-x: hidden;
        overflow-y: auto;
    }

    h1 {
        font-size: clamp(2rem, 11vw, 3rem);
        padding: 8px;
        text-align: center;
    }

    .winner{
    background-color: rgba(168, 77, 168, 0.6);
    display: none;
    visibility: visible;
    width: 113%;
}

.winner.show {
    display: block;
}


    .btn {
        width: 100%;
        flex-direction: row;
        gap: 8px;
    }

    .btn button {
        flex: 1;
        width: auto;
        min-width: 0;
        max-width: 90px;
        height: auto;
        aspect-ratio: 1 / 0.95;
    }

    .btn img {
        width: clamp(48px, 17vw, 59px);
        height: clamp(48px, 17vw, 59px);
    }

    .btn button:active img {
        transform: scale(1.60);
    }

    .score {
        width: 100%;
        flex-direction: row;
        gap: 8px;
        padding: 5px;
    }

    .p1,
    .p2 {
        flex: 1;
        width: auto;
        min-width: 0;
        padding: 10px;
    }

    #h,
    #m {
        font-size: clamp(2rem, 10vw, 2.4rem);
    }

    .result {
        font-size: 1.1rem;
        text-align: center;
        text-shadow: none;
    }

    p {
        font-size: clamp(0.65rem, 3vw, 0.75rem);
        white-space: normal;
        overflow-wrap: break-word;
    }

    span {
        font-size: 2.4rem;
    }

    .winner {
        width: 113%;
        
    }

    .winner.show {
        visibility: visible;
    }

    .winner p {
        gap: 12px;
        flex-wrap: wrap;
    }

    .IA,
    .you {
        font-size: 1.3rem;
    }
}



