body {
    margin: 0;
    background-color: #000000;
    font-family: 'Arial Black', sans-serif;
    overflow-x: hidden;
}

.wordlebox {
    display: grid;
    background-color: #000000;
    width: 100%; 
    max-width: 18rem; 
    height: auto; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 0.4rem; 
    padding: 0.3rem;
    margin: 0 auto; 
    touch-action: manipulation;
}

.box-flip {
    animation: rotate 1.3s ease-in-out forwards;
}

@keyframes rotate {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.wordlebox > div {
    border: 2px solid #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem; 
    aspect-ratio: 1;
    transition: transform 2s ease;
    touch-action: manipulation;
}

@media (max-width: 768px) {
    .wordlebox {
        width: 90%; 
        max-width: 18rem; 
        gap: 0.4rem; 
    }

    .wordlebox > div {
        font-size: 2rem; 
        font-weight: bolder;
    }

    .navbar {
        display: none;
    }

    .logo {
        max-width: 22rem;
    }
    .keyboard {
        gap: 0.1rem;
        padding: 0.1rem;
        max-width: 95vw;
    }
    .key {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    .large-key {
        font-size: 1rem;
    }
}

.output {
    display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  color: white;
}

.bigdiv {
    display: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    touch-action: manipulation;
    /* margin-top: -10.4rem; */
}

.startscreen {
    background: rgb(188, 188, 188);
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.startbutton {
    background: rgb(191, 191, 191);
    width: 10rem;
    height: 4rem;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4rem;
    cursor: pointer;
}

.startbutton:hover {
    background: rgb(0, 0, 0);
    color: aliceblue;
}

.start-title {
    text-align: center; 
    font-size: 6rem; 
    color: rgb(255, 255, 255);
}

#title-start {
    position: absolute;
    width:100vw;
    height:100vh;
    z-index: 9000;
    background-color: rgb(0, 0, 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
  }

#difficulty-select {
    position: absolute;
    width:100vw;
    height:100vh;
    z-index: 1000;
    background-color: rgb(0, 0, 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.easyhard {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25rem;
    gap: 2rem;
}

.difficulty-button {
    width: 7rem;
    height: 3rem;
    border-radius: 1rem;
    background-color: rgb(255, 255, 255);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.7rem;
}

.difficulty-button:hover {
    cursor: pointer;
    background-color: rgb(31, 31, 31);
    color: #ffffff;
}

  #visibleInput {
    border: none;              
    outline: none;             
    caret-color: transparent; 
    width: 100%; 
    box-sizing: border-box;
    height: 5rem;
    padding: 0;
    margin: 0;
    font-size: 3rem;
    
}

.logo {
    margin-top: 1rem;
    width: 25rem;
}

.header {
    width: 100vw;
    height: 7rem;
    background-color: rgb(0, 0, 0);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.navbar {
    width: 15rem;
    height: 5rem;
    background-color: #000000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    display:none;
}

#settings {
    width: 2.5rem;
}

.keyboard {
    background-color: rgb(0, 0, 0);
    display: flex;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.15rem;
    touch-action: manipulation;
}
.key {
    border: 2px solid rgb(0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    background-color: grey;
    color: white;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 0.3rem;
    touch-action: manipulation;
}

.large-key {
    border: 2px solid rgb(0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    background-color: grey;
    color: white;
    width: 4rem;
    height: 2.7rem;
    border-radius: 0.3rem;
    touch-action: manipulation;
}

.key:hover {
    background-color: rgb(69, 69, 69);
    color: white;
    cursor: pointer;
}

.large-key:hover {
    background-color: rgb(69, 69, 69);
    color: white;
    cursor: pointer;
}

.user-select-none {
    -webkit-user-select: none; 
    -moz-user-select: none;    
    -ms-user-select: none;     
    user-select: none;        
}

#win-screen {
    position: absolute;
    width:100vw;
    height:100vh;
    background-color: rgb(0, 0, 0);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0rem;
    z-index: 10000;
    display: none;
}

#correct-word {
    font-size: 3rem;
}

.play-again-button {
    background: rgb(56, 56, 56);
    width: 12rem;
    height: 4rem;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4rem;
    cursor: pointer;
    margin-top: 1.5rem;
    }
    
.play-again-button:hover {
    background: rgb(31, 31, 31);
    color: rgb(144, 203, 255);
}