@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;900&display=swap');

html, body {
    font-family: 'Roboto', sans-serif;
    background-color: #111111;
    margin: 0;
    padding: 0;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: 1px solid #aaaaaa;
    z-index: 3;
}

.leftSide {
    float: left;
    margin-left: 10px;
}

.rightSide {
    float: right;
    margin-right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.logo {
    color: #eeeeee;
    font-size: 1.5em;
}

.menu {
    color: #eeeeee
}

.menu > a {
    color: #eeeeee;
    text-decoration: none;
    font-size: 1em;
    transition: .2s color ease-in-out;
}

.menu > a:hover {
    color: #489e5d;
}

.modal {
    display: none;
    position: fixed;
    z-index: 3;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    opacity: 0;
    transition-duration: 0.5s;
}

.warnModal {
    display: block;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition-duration: 0.5s;
    pointer-events: none;
}

.statsModal {
    display: none;
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition-duration: 0.5s;
}

.modal.active {
    display: block;
    opacity: 1;
}

.warnMoal.active {
    display: block;
    opacity: 1;
}

.statsModal.active {
    display: block;
    opacity: 1;
}

.m-container {
    background-color: #222222;
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 0%);
    opacity: 0;
    max-width: 500px;
    height: auto;
    max-height: 550px;
    border-radius: 10px;
    color: #eeeeee;
    font-size: 14.5px;
    transition-duration: 0.25s;
    transition-timing-function: ease-in-out;
    overflow-y: auto;
}

.wm-container {
    background-color: #222222;
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    opacity: 0;
    width: auto;
    height: auto;
    border-radius: 10px;
    color: #eeeeee;
    font-size: 14.5px;
    transition-duration: 0.25s;
    transition-timing-function: ease-in-out;
}

.sm-container {
    background-color: #222222;
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    opacity: 0;
    width: auto;
    height: auto;
    border-radius: 10px;
    color: #eeeeee;
    font-size: 14.5px;
    transition-duration: 0.25s;
    transition-timing-function: ease-in-out;
}

.m-container.active {
    transform: translate(-50%, -50%);
    opacity: 1;
}

.wm-container.active {
    transform: translate(-50%, -100%);
    opacity: 1;
}

.sm-container.active {
    transform: translate(-50%, -50%);
    opacity: 1;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

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

.guessDis > div {
    display: flex;
    margin-top: 5px;
    font-size: 22px;
    font-weight: 700;
    margin-right: 20px;
}

.guessDis > div > div {
    background-color: #489e5d;
    display: inline;
    height: 15px;
    width: 90%;
    font-size: 12px;
    text-align: right;
    padding: 3px 3px;
    padding-right: 5px;
    margin-left: 10px;
}

.board {
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    width: 30vw;
    height: auto;
    border-radius: 5px;
    display: block;
    justify-content: space-between;
    align-items: center;
    zoom: 0.65;
    -moz-transform: scale(0.65);
}

@media (min-width: 1600px) {
    .board {
        width: 20vw;
    }
    .alpha {
        height:50px;
        line-height: 50px;
    }
    #enter {
        height: 50px;
        line-height: 50px;
    }
    #back {
        height: 50px;
        line-height: 50px;
    }
}

@media (min-width: 1440px) {
    .board {
        width: 20vw;
    }
    .alpha {
        height:50px;
        line-height: 50px;
    }
    #enter {
        height: 50px;
        line-height: 50px;
    }
    #back {
        height: 50px;
        line-height: 50px;
    }
}

@media (min-width: 1300px) {
    .board {
        width: 25vw;
    }
    .alpha {
        height:50px;
        line-height: 50px;
    }
    #enter {
        height: 50px;
        line-height: 50px;
    }
    #back {
        height: 50px;
        line-height: 50px;
    }
}

@media (min-width: 1080px) {
    .board {
        width: 30vw;
    }
    .alpha {
        height:50px;
        line-height: 50px;
    }
    #enter {
        height: 50px;
        line-height: 50px;
    }
    #back {
        height: 50px;
        line-height: 50px;
    }
}

@media (max-width: 1080px) {
    .board {
        width: 35vw;
    }
    .alpha {
        height:50px;
        line-height: 50px;
    }
    #enter {
        height: 50px;
        line-height: 50px;
    }
    #back {
        height: 50px;
        line-height: 50px;
    }
}

@media (max-width: 900px) {
    .board {
        width: 40vw;
    }
    .alpha {
        height:50px;
        line-height: 50px;
    }
    #enter {
        height: 50px;
        line-height: 50px;
    }
    #back {
        height: 50px;
        line-height: 50px;
    }
}

@media (max-width: 700px) {
    .board {
        width: 50vw;
    }
    .alpha {
        height:55px;
        line-height: 55px;
    }
    #enter {
        height: 55px;
        line-height: 55px;
    }
    #back {
        height: 55px;
        line-height: 55px;
    }
}

@media (max-width: 540px) {
    .board {
        width: 65vw;
    }
    .alpha {
        height:65px;
        line-height: 65px;
    }
    #enter {
        height: 65px;
        line-height: 65px;
    }
    #back {
        height: 65px;
        line-height: 65px;
    }
}

@media (max-width: 400px) {
    .board {
        width: 100vw;
    }
    .alpha {
        height:65px;
        line-height: 65px;
    }
    #enter {
        height: 65px;
        line-height: 65px;
    }
    #back {
        height: 65px;
        line-height: 65px;
    }
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 8px;
}

.exampleRow {
    display: flex;
    justify-content: left;
    align-items: left;
    gap: 5px;
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 8px;
    max-width: 75%;
}

.letter {
    position: relative;
    outline: 1px solid #aaaaaa;
    width: 17%;
    padding-bottom: 17%;
    line-height: 15%;
    border-radius: 5px;
    transition: transform 2s;
}

.letter.bop {
    transform: translate(0, 50%);
}

.letter:after {
    content: "";
    display: block;
}

.content {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    text-align: center;
    margin-top: 50%;
    margin-bottom: 50%;
    font-size: 40px;
    font-weight: 600;
    color: #eeeeee;
}

.exLetter {
    outline: 1px solid #aaaaaa;
    min-width: 45px;
    height: 45px;
    line-height: 45px;
    border-radius: 5px;
    text-align: center;
    font-size: 1.5em;
    font-weight: 600;
    transition: transform 0.8s;
}

#correct {
    background-color: #489e5d;
    outline: 1px solid #489e5d;
    transform: rotateX(360deg);
}

.alpha.correct {
    background-color: #489e5d;
    outline: 1px solid #489e5d;
}

#spot {
    background-color: #c29c34;
    outline: 1px solid #c29c34;
    transform: rotateX(360deg);
}

.alpha.spot {
    background-color: #c29c34;
    outline: 1px solid #c29c34;
}

#invalid {
    background-color: #777777;
    outline: 1px solid #777777;
    transform: rotateX(360deg);
}

.alpha.invalid {
    background-color: #777777;
    outline: 1px solid #777777;
}

.keyboard {
    z-index: 2;
    width: 100%;
    position: fixed;
    bottom: 0;
    zoom: 0.9;
    -moz-transform: scale(0.9);
}

.keyRow {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.alpha {
    background-color: #aaaaaa;
    width: 50px;
    border-radius: 5px;
    text-align: center;
    color: white;
    transition: .1s background-color ease-in-out;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.alpha:hover {
    background-color: #eeeeee;
    cursor: pointer;
}

#enter {
    background-color: #aaaaaa;
    width: 80px;
    border-radius: 5px;
    text-align: center;
    color: white;
    transition: .1s background-color ease-in-out;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#enter:hover {
    background-color: #eeeeee;
    cursor: pointer;
}

#back {
    background-color: #aaaaaa;
    width: 80px;
    border-radius: 5px;
    text-align: center;
    color: white;
    transition: .1s background-color ease-in-out;
}

#back:hover {
    background-color: #eeeeee;
    cursor: pointer;
}

.buttons {
    margin-top: 10px;
    display: none;
    justify-content: space-between;
    gap: 8px;
}

.buttons > div {
    background-color: #489e5d;
    width: 100%;
    text-align: center;
    line-height: 50px;
    height: 50px;
    border-radius: 5px;
    transition: .2s background-color ease-in-out;
}

.buttons > div:hover {
    background-color: #4bb967;
    cursor: pointer;
}

.newHS {
    animation: shake 0.5s; 
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}
