:root {
    --principalColor: white;
}

body {
    background-color: #25272E;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

header {
    background: var(--principalColor);
    padding: 20px;
}

header h1, h2{
    color: #25272E;
    text-align: center;
}

header #nombreUser { text-transform: capitalize; }

header .partidaNumber {
    font-weight: 700;
    text-align: center;
}

.container_Score {
    margin: 1.3rem auto;
    border: 3px solid var(--principalColor);
    border-radius: 4px;
    text-align: center;
    width: 10rem;
    color: var(--principalColor);
    font-size: 46px;
    padding: 15px 20px;
    position: relative;
}

.badge {
    background: #E2584D;
    color: var(--principalColor);
    font-size: 1rem;
    padding: 2px 10px;
}

#user-label {
    position: absolute;
    top: 30px;
    left: -25px;
}

#computer-label {
    position: absolute;
    top: 30px;
    right: -30px;
}

.result {
    font-size: 40px;
    color: var(--principalColor);
}

.result > p {
    text-align: center;
    font-weight: bold;
}

.choices {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.margenTop {
    margin-top: -15% !important;
}

.choices img {
    width: 80px;
    border: 4px solid var(--principalColor);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.choices img:hover {
    cursor: pointer;
    background: #09090b;
}

#action-message {
    color: var(--principalColor);
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    margin-top: 3%;
}

.green-glow {
    border: 4px solid green !important;
    box-shadow: 0 0 10px #31b43a;
}

.red-glow {
    border: 4px solid red !important;
    box-shadow: 0 0 10px #d01115;
}

.gray-glow {
    border: 4px solid rgb(186, 99, 167) !important;
    box-shadow: 0 0 10px rgb(219, 21, 176);
}

/* ! Estilos para el modal de bienvenida */

.modalContainer {
    display: none; 
    position: fixed; 
    z-index: 1;
    left: 0;
    top: 25%;
    width: 100%;
    height: 100%; 
    overflow: auto;
}

.modalContainer .modal-content {
    background: rgb(255, 255, 255);
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    border-top: 10px solid #4e5778;
    width: 60%;
}

.modalContainer h2 {
    text-align: center;
    text-decoration: underline;
}

.modalContainer form, .form{
    display: flex;
    flex-direction: column;
}

.modalContainer form #name { margin-top: 1%; }

.modalContainer form input[type="text"] {
    border: none;
    border-bottom: 1px solid #4d5059;
}

.modalContainer form input::-webkit-input-placeholder {
    font-size: 0.8rem;
    margin: auto;
    font-weight: 200;
}

.modalContainer form input::-moz-placeholder {
    font-size: 0.8rem;
    margin: auto;
    font-weight: 200;
}

.modalContainer form input:-ms-input-placeholder {
    font-size: 0.8rem;
    margin: auto;
    font-weight: 200;
}

.modalContainer form input::-ms-input-placeholder {
    font-size: 0.8rem;
    margin: auto;
    font-weight: 200;
}

.modalContainer form input::placeholder {
    font-size: 0.8rem;
    margin: auto;
    font-weight: 200;
}

.optionesPatidas input[type="button"] {
    width: 100%;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    margin: auto;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 3px;
    background: #9ca1a5;
    margin-top: 10%;
    font-weight: 700;
    padding: 10px;
    color: rgb(62, 57, 57);
}

.optionesPatidas input[type="button"]:focus { border-radius: 16px; }

.optionesPatidas input[type="button"]:hover { color: white; }

.optionesPatidas {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
}

.optionesPatidas > div {
    display: flex;
    justify-content: end;
    width: 50%;
}

.optionesPatidas p {  margin-top: 5%; }

.modalContainer .close:hover, .modalContainer .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.footer {
    width: 100%;
    margin-top: 3%;
    display: flex;
    justify-content: center;
}

.footer button {
    text-decoration: none;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    background-color:  green;
    color: #fff;
    border-radius: 5px;
    box-shadow: 7px 6px 28px 1px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    outline: none;
    transition: 0.2s all;
    width: 100%;
}

.footer button:active {
    transform: scale(0.98);
    box-shadow: 3px 2px 22px 1px rgba(0, 0, 0, 0.24);
}

#mensajeFinal {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 2%;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--principalColor);
}

/*! Modo Responsive */

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .margenTop {
        margin-top: -50% !important;
    }

    header h1 {
        margin-top: -5%;
        font-size: 1.2rem;
    }

    #mensajeFinal {
        width: 80%;
        margin: auto;
        font-size: 1.8rem;
        text-align: center;
    }

    .result {
        width: 70;
        margin: auto;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    .margenTop {
        margin-top: -30% !important;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .margenTop {
        margin-top: -26% !important;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .margenTop {
        margin-top: -22% !important;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .margenTop {
        margin-top: -16% !important;
    }
}