 @font-face {
    font-family: 'Plain';
    src: url('fonts/Plain-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plain';
    src: url('fonts/Plain-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plain';
    src: url('fonts/Plain-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

body, html {
    font-family: 'Plain';
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gamecard-container {
    perspective: 1000px;
}
body {
    background: linear-gradient(122deg, #616161, #000000);
    background-size: 400% 400%;

    -webkit-animation: AnimationName 30s ease infinite;
    -moz-animation: AnimationName 30s ease infinite;
    animation: AnimationName 30s ease infinite;
}

@-webkit-keyframes AnimationName {
    0%{background-position:96% 0%}
    50%{background-position:5% 100%}
    100%{background-position:96% 0%}
}
@-moz-keyframes AnimationName {
    0%{background-position:96% 0%}
    50%{background-position:5% 100%}
    100%{background-position:96% 0%}
}
@keyframes AnimationName {
    0%{background-position:96% 0%}
    50%{background-position:5% 100%}
    100%{background-position:96% 0%}
}
h1 {
    font-size: clamp(1.5rem, 5vw, 2.4rem);
    line-height: 100%;
    letter-spacing: -0.09rem;
    font-weight: bold;
}
.gamecard {
    width: 500px;
    height: 700px;
    transform-style: preserve-3d;
    transition: transform 0.7s;
}

.card-side {
    backface-visibility: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    border-radius: 15px;
    padding: 50px;
    box-sizing: border-box;
}

@media(max-width: 700px) {
    .gamecard {
        width: 360px;
        height: 500px;
    }
    .card-side {
        padding: 20px;
    }
}

.front {
    background: linear-gradient(153deg, rgba(226,226,226,1) 8%, rgba(255,255,255,1) 38%);
}

.back {
    background: #f0f0f0;
    transform: rotateY(180deg);
}

.gamecard.flipped {
    transform: rotateY(180deg);
}

.verde {
    background-color: #48631c; /* O cualquier color verde que prefieras */
    color: #fff;
    
}
.card-side.verde {
    animation: respirarSombrav 0.85s 8;
    transition: background-color 0.2s ease-in-out;
}
@keyframes respirarSombrav {
  50% {
    box-shadow: 0px 0px 10px 2px rgba(72, 99, 28, 0.1); /* verde con 50% de opacidad */
  }
  0%, 100% {
    box-shadow: 0px 0px 800px 240px rgba(124, 163, 49, 0.8); /* verde con 70% de opacidad */
  }
}
.rojo {
    background-color: #510c07; /* O cualquier color rojo que prefieras */
    color: #fff;
}
.card-side.rojo {
    animation: respirarSombrar 2.5s 2;
    transition: background-color 0.2s ease-in-out;
}
@keyframes respirarSombrar {
  50% {
    box-shadow: 0px 0px 10px 2px rgba(81, 12, 7, 0.1); /* verde con 50% de opacidad */
  }
  0%, 100% {
    box-shadow: 0px 0px 800px 240px rgba(204, 27, 23, 0.8); /* verde con 70% de opacidad */
  }
}

.amarillo {
    background-color: #cb9932; /* O cualquier color amarillo que prefieras */
    color:#fff;
}
.card-side.amarillo {
    animation: respirarSombraa 2s 1;
    transition: background-color 0.2s ease-in-out;
}

@keyframes respirarSombraa {
  50% {
    box-shadow: 0px 0px 10px 2px rgba(203, 153, 50, 0.1); /* verde con 50% de opacidad */
  }
  0%, 100% {
    box-shadow: 0px 0px 800px 240px rgba(234, 202, 66, 0.8); /* verde con 70% de opacidad */
  }
}

.card-side {
    box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset, rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}

#answer label, #responses-container p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 400;
    cursor: pointer;
    margin: 0;
    border: 2px dashed #c5c5c5;
    padding: 10px;
    display: block;
}
#answer label:hover {
    border:  2px dashed #000000;
}
#answer input {
    display: none;
}
form#answer, #responses-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;

}
.verde #responses-container p.verde, .rojo #responses-container p.rojo, .amarillo #responses-container p.amarillo {
    border: 2px solid #fff;
    background-color: transparent;
    color:#fff;
}
.menu {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    gap: 4px;
    justify-content: center;
    align-items: center;
    max-width: 236px;
    margin: auto;
}
.menu > li > a {
    color: #fff;
    width: 60px;
    height: 60px;
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px; 
}
.menu > li > a:hover, .menu > li.active > a {
    opacity: 1;
}
.container-menu {
    position: absolute;
    bottom: 0px;
    width: 100%;
    padding: 20px 0;
}
.menu > li > a > img {
    width: 50px;
    height: 50px;
    padding: 8px;
    display: block;
}

.menu {
    background: rgba(255, 255, 255, 0.1); /* Fondo blanco transparente como base */
    backdrop-filter: blur(10px); /* Desenfoque de fondo */
    border-radius: 90px; /* Bordes redondeados para un mejor efecto */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra sutil */
    overflow: hidden; /* Asegurarse de que el contenido interno no se desborde */
    /* Gradiente */
    border: 4px solid rgba(255, 255, 255, 0.2); /* Borde sutil para mejorar el efecto */
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
}

.menu li a {
    transition: all 0.3s ease; /* Transición suave al pasar el cursor sobre los enlaces */
}

.menu li a:hover, .menu li.active {
    background: rgba(255, 255, 255, 0.1); /* Realce sutil al pasar el cursor sobre los enlaces */
}