
body{
    padding: 0;
    justify-content: center;
    align-items: center;
    background: #F5E8AA;
}

.how-to-play p {
    margin: 4px 0;
}

@font-face {
    font-family: 'WillyWonka';
    font-style: normal;
    font-weight: normal;
    src: url('Wonderbar-pALD.woff') format('woff');
    }


h1 {
    margin: 0;
    text-align: center;
    color: #EE9096;
    font-family: WillyWonka, script;
}

.container {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, min(10vh, 10vw));
    grid-template-rows: repeat(6, min(10vh, 10vw));
    justify-content: center;

}

.sidebar {
    position: absolute;
    top: 20px;

    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    left: 60px;
}

.side-item {
    background: rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: default;
}

.back-button {
    background-color: #EE9096;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 3px 30px;
    text-decoration: none;
    transition: 0.1s;

    position: fixed;
    top: 60vh;
    left: 60px;
}

.next-level-button {
    position: fixed;
    right: 60px;
    background-color: #EE9096;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 3px 30px;
    display: inline-block;
    transition: transform 0.1s;
    text-decoration: none;
    font-family: WillyWonka;
    top: 60vh;
}

.next-level-button:hover {
    transform: scale(1.1);
}

.next-level-button.enter {

}

.back-button:hover {
    transform: scale(1.1);
}

.bubble{
    width: 100%;
    height: 100%;
    border: 1px white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3vw;
    background: white;
    border-radius: 50%;
    font-family: Georgia, script;
    user-select: none;
}

.flex-container {
    position: fixed;
    gap: 18px;

    right: 4%;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    top: 20px;
}

.info {
    position: static;
    z-index: 100;

}

.toggle {
    background: #EE9096;
    font-size: large;
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
}

#toggle {
    display: none;
}

.how-to-play {
    display: none;
    position: fixed;
    top: 22%;
    right: 4%;

    width: 220px;
    padding: 10px;
    border-radius: 10px;

    background: #EE9096;
    opacity: 50%
    /*background: rgba(112, 193, 225, 0.3);*/
}

#toggle:checked ~ .how-to-play {
    display: block;
}

.grid {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.keyboard-row {
    width: 600px;

    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    background-color: #F5E8AA;
}

.key-tile {
    width: 56px;
    height: 60px;
    margin: 1px;
    border: 1px solid lightgray;
    background: white;
    border-radius: 10px;
    transition: transform 0.05s ease-out;

    /* Text */
    font-size: 40px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

.is-pressed {
    transform: scale(0.90);
}

.key-tile:hover {
    background: #EE9096;
}

.enter-key-tile {
    width: 116px;
    height: 60px;
    margin: 1px;
    border: 1px solid lightgray;
    border-radius: 10px;
    background: white;
    cursor: not-allowed;

    /* Text */
    font-size: 30px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

.enter-key-tile.available:hover{
}

.available{
    box-shadow: inset 0 0 0 5px #EE9096;
    cursor: pointer;
}

.login-button {
    position: static;
    background-color: #EE9096;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 6px 30px;
    display: inline-block;
    text-decoration: none;
    font-family: WillyWonka;
}

.logout-button {
    position: static;
    background-color: #EE9096;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 6px 30px;
    display: inline-block;
    transition: transform 0.1s;
    text-decoration: none;
    font-family: WillyWonka;
}

.correct{
    background: #6aaa64;
    color: white;
}

.wrong-position{
    background:  #c9b458;
    color: white;
}

.wrong{
    background: #787c7e;
    color: white;
    cursor: default;
}

.timer-container {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.timer {
    font-size: 32px;
    font-family: "Courier New", monospace;
    color: #EE9096;
    background: rgba(255, 255, 255, 0.4);
    padding: 10px 20px;
    border-radius: 12px;
}


.start-timer-btn {
    background: #EE9096;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.15s ease, background 0.2s ease;
}

.start-timer-btn:hover {
    transform: scale(1.05);
    background: #e67f85;
}