*, *::before, *::after {
    box-sizing: border-box;
}

html {
    height: 100vh;
}

body {
    display: flex;
    position: absolute;
    justify-content: center;
    margin: 0;
    padding: 0;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(#cbcbd2, #ffffff);
    height: 100%;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

#counter {
    position: absolute;
    top: 0;
    right: 0.2em;
    font-family: 'League Spartan', sans-serif;
}

.container {
    display: flex;
    user-select: none;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    transition: opacity 0.2s ease;
    opacity: 1;         
}

.title-box {
    position: absolute;
    top: 0em;
    margin: 0;
    font-size: 2.5em;
    text-align: center;
    font-family: "Fredoka", sans-serif;
    font-weight: 500;
}

#title-symbol {
    display: inline;
    width: 19px;
    margin: 0;
    padding: 0;
    font-weight: bold;
}

.era-text {
    font-size: 0.5em;
}

.audio-clip {
    margin-top: 3.5em;
    text-align: center;
    height: 65px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 0;
}

@media (orientation: landscape) {

    .audio-clip {
        height: 65px;
    }

}

.text-instructions {
    font-family: 'League Spartan', sans-serif;
    font-weight: 500;
    font-size: min(1.3em,2.3vh);
}

audio {
    width: min(max(55vw,130px),210px);
    height: 4vh;
}

.word-box {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    height: 50vh;
    width: min(90%,45vh);
}

.container-box {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    height: 90%;
    bottom: 0;
}

div[class|=row] {
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 14%;
    transition: all 0.3s ease;
}

span[id|=box] {
    display: none;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    width: 12%;
    border: 2px solid rgb(160, 157, 157);
    border-radius: 10%;
    font-family: 'League Spartan', sans-serif;
    font-size: 1.5em;
    color:#f0f8ff;
}

.message-box {
    display: none;
    align-items: center;
    font-family: 'League Spartan', sans-serif;
    font-weight: 400;
    font-size: min(1.3em,2.3vh);
    width: fit-content;
    height: 20px;
    background: #f5f5f5;
    border:1px solid rgb(63, 63, 63);
    border-radius: 10px;
    transform: scaleX(1.2);
    z-index: 2;
}

.message-box2 {
    display: flex;
    align-items: center;
    font-family: 'League Spartan', sans-serif;
    font-weight: 400;
    font-size: min(1.3em,2.3vh);
    width: fit-content;
    height: 20px;
    background: #e2e1e1;
    border:1px solid rgb(63, 63, 63);
    border-radius: 10px;
    transform: scaleX(1.2);
    transition: all 0.1s ease;
    z-index: 2;
    cursor: pointer;
}

.message-box2:hover {
    transform: scale(1.3, 1.08);
}

.message {
    transform: scaleX(0.83);
}

.finish {
    display: none;
    font-family: 'League Spartan', sans-serif;
    font-weight: 400;
    font-size: min(1.3em,2.3vh);
    text-align: center;
    height: 3vh;
}

#link {
    text-decoration: underline;
}

.keyboard {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: "Fredoka", sans-serif;
    font-weight: 400;
    width: min(100%, 85vh);
    height: 17vh;
}

.keyboard > div {
    height: 31%;
    display: flex;
    justify-content: space-around;
}

#bksp, #enter {
    width: max(8.5%,20px);
}

.keyboard > div > div {
    cursor: pointer;
    background:rgb(223, 221, 221);
    border: 1px solid #707072;
    border-radius: 5%;
    padding: 2px;
    width: 9%;
}

.Backspace, .Enter {
    display: flex;
    padding: 0;
    justify-content: center;
}

.credits {
    display: flex;
    justify-content: center;
    font-size: min(max(10px,1vh),3vh);
    font-family: "Fredoka", sans-serif;
    font-weight: 400;
}

#github-logo {
    width: 13px;
}

@keyframes green {
    0% {background: rgb(65, 179, 4, 0);}
    100% {background: rgb(125,183,0); color: #f0f8ff;}
}

@keyframes yellow {
    
    0% {background: rgba(224, 196, 11,0);}
    100% {background: rgba(224, 196, 11,1);color: #f0f8ff;}
}

@keyframes grey {
    0% {background: rgba(84, 81, 74,0);}
    100% {background: rgba(84, 81, 74,1);color: #f0f8ff;}
}

@keyframes zoom-in-out {
    0% {}
    100% {transform: scale(1.1);} 
}