html, body, #body.geek, #board-geek {
    height: 100%;
    margin: 0;
    padding: 0;
}

#home-page {
    height: 100%;
    width: 100%;
    background-image: url(../images/typeinvasion-v2.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#play {
    font-size: clamp(2rem, 4vw, 5vh);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: #7A2D35;
    position: absolute;
    left: 40vw;
    top: 53vh;
    text-decoration: none;
    color: #fff;
    text-shadow: 1px 1px 5px black;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 15px;
}



#play:hover {
    background: #A5A364;
    transform: scale(1.05);
}

#juega {
    font-size: clamp(2rem, 4vw, 5vh);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: #7A2D35;
    position: absolute;
    left: 20vw;
    top: 53vh;
    text-decoration: none;
    color: #fff;
    text-shadow: 1px 1px 5px black;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 15px;
}

#juega:hover {
    background: #F53F52;
    transform: scale(1.05);
}

#geek {
    font-size: clamp(2rem, 4vw, 5vh);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: #7A2D35;
    position: absolute;
    left: 55vw;
    top: 53vh;
    text-decoration: none;
    color: #fff;
    text-shadow: 1px 1px 5px black;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 15px;
}

#geek:hover {
    background: #36647A;
    transform: scale(1.05);
}

body {
    background-color: #FAF9D7;
    margin: 0;
}

#body-geek {
    background-color: #1F1F1F;
    margin: 0;
}

#board {
    width: 100%;
    height: 100%;
    /* border: 9px solid #513578; */
    overflow: hidden;
    position: relative;
    padding: 0;
    box-sizing: border-box;
}

#board-geek {
    width: 100%;
    height: 100%;
    /* border: 9px solid #513578; */

    overflow: hidden;
    position: relative;
    padding: 0;
    box-sizing: border-box;
}

.word {
    /* font-size: clamp(5rem, 4vw, 2rem); */
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: lighter;
    color: #513578;
    position: absolute;
    white-space: nowrap;
}

.wordGeek {
    /* font-size: clamp(5rem, 4vw, 2rem); */
    font-family: 'Courier New', Courier, monospace;
    font-weight: lighter;
    color: #513578;
    position: absolute;
    white-space: nowrap;
}

#user-input {
    width: 20vw;
    height: 5vh;
    font-size: 3vh;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    border: 6px solid #828248;
    background-color: #FFFE95;
    position: absolute;
    top: 90vh;
    left: 40vw;
}

/*
#score {
    font-size: clamp(1rem, 4vw, 5vh);
    ;
    position: absolute;
    margin: 2vh;
    top: 2vh;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

#xp {
    font-size: clamp(1rem, 4vw, 5vh);
    color: #FAF9D7;
    position: absolute;
    margin: 2vh;
    top: 2vh;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

#lives {
    font-size: clamp(1rem, 4vw, 5vh);
    position: absolute;
    margin: 2vh;
    top: 2vh;
    left: 82vw;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}


#hp {
    font-size: clamp(1rem, 4vw, 5vh);
    color: #FAF9D7;
    position: absolute;
    margin: 2vh;
    top: 2vh;
    left: 82vw;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
    

#difficulty {
    font-size: clamp(1rem, 4vw, 5vh);
    position: absolute;
    margin: 2vh;
    top: 2vh;
    left: 40vw;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

#level{
    font-size: clamp(1rem, 4vw, 5vh);
    color: #FAF9D7;
    position: absolute;
    margin: 2vh;
    top: 2vh;
    left: 40vw;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
*/

#page-gameover {
    height: 100%;
    width: 100%;
    background-image: url('../images/gameOver.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    color: #FAF9D7;
}

#page-gameover-geek {
    height: 100%;
    width: 100%;
    background-image: url('../images/GameoverRetro.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    color: #FAF9D7;
}


#play-again {
    font-size: clamp(2rem, 8vw, 10vh);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: #7A2D35;
    position: absolute;
    left: center;
    top: 69vh;
    text-decoration: none;
    color: #fff;
    text-shadow: 1px 1px 5px black;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 15px;
}

#play-again:hover {
    background: #36647A;
    transform: scale(1.05);
}

#final-score {
    font-size: clamp(2rem, 8vw, 10vh);
    ;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: #7A2D35;
    position: absolute;
    left: center;
    top: 20vh;
    text-decoration: none;
    padding: 5px;
}

.explode {
    animation: pop 0.4s forwards;
}

@keyframes pop {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.word.green {
    text-shadow: 0 0 10px lime;
    transform: scale(1.05);
}

#hud {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1rem;
    color: #fff;
    text-shadow: 1px 1px 5px black;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 15px;
}

#hud div {
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: 0.2s;
}

#hud div:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

#board-geek {
    background: linear-gradient(135deg, #0a0a0a, #194404);
    background-size: 300% 300%;
    animation: bgMove 8s ease infinite;
}

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

.animated-bg {
  background: linear-gradient(120deg, #FAF9D7, #D7EEFA, #F1F0D0, #9fe1ed);
  background-size: 300% 300%;
  animation: bgShift 12s ease infinite;
}
@keyframes bgShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


@media (prefers-reduced-motion: reduce) {
  .animated-bg { animation: none; }
}

.forbidden {
    color: red !important;
    text-shadow: 0 0 10px red, 0 0 20px crimson;
    animation: forbiddenPulse 1s infinite;
}

@keyframes forbiddenPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

#instructions {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-align: center;
    position: absolute;
    top: 70vh;
    left: 25vw
}

#instrucciones {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-align: center;
    position: absolute;
    top: 70vh;
    left: 50vw;
}