@font-face {
    font-family: 'poppins';
    src: url('/static/striker/Poppins-Bold-08c20a487911694291bd8c5de41315ad.ttf');
}

canvas {
    background: linear-gradient(#0b1a2b, #001019);
    display: block;
    border: 4px solid #0d2433;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.7);
    width: 100%;
    height: auto;
}

#startScreen, #gameOverScreen {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    background: rgba(0, 0, 0, 0.85);
    flex-direction: column;
    gap: 12px;
    padding-bottom: 100px;
}

#startScreen {
    padding-bottom: 300px;
}

h1 {
    margin: 0 0 10px 0;
    font-size: 36px;
    color: #fff;
    text-align: center;
}

h2 {

    font-size: 36px;
}

.small {
    font-size: 18px;
    color: #ccc;
    margin-top: 4px;
    text-align: center;
}

#keytogbox {
    text-align: center;
    margin: 0 auto;
    margin-top: 5px;
    width: 50%;
    display: none;
}

#toolbox {
    height: fit-content;
    width: 100%;
}

#gameWrap {
    position: relative;
    width: 100%;
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0px;
}

#canvas-container {
    position: relative;
    /*width:100%;*/
    /*max-width:900px;*/
    /*flex-grow: 1; !* Allow it to grow to fill available space *!*/
}

#virtual-keyboard {
    display: none;
    width: 100%;
    max-width: 900px;
    margin-top: 15px;
    background: rgba(30, 40, 60, 0.8);
    border-radius: 10px;
    padding: 10px;
    box-sizing: border-box;
    overflow-x: auto;
    margin: 0 auto;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
    flex-wrap: nowrap;
}

.keyboard-key {
    min-width: 30px;
    width: auto;
    flex: 1;
    max-width: 50px;
    height: 40px;
    margin: 0 2px;
    background: #4a6fa5;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    padding: 0 5px;
}

#highScoresList {
    background: #333333;
    border: 3px solid #CCCCCC;
    min-width: 50%;
    height: 300px;
    overflow-y: scroll;
    margin-top: 20px;
    padding: 20px;
}

#highScores {
    text-align: left;
    max-width: 90%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }

    #ui {
        font-size: 16px;
        padding: 6px 12px;
    }

    button {
        padding: 8px 14px;
        font-size: 14px;
    }

    .keyboard-key {
        height: 35px;
        font-size: 14px;
        margin: 0 1px;
        min-width: 25px;
        padding: 0 3px;
    }

    #virtual-keyboard {
        padding: 8px;
        height: 90%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }

    #ui {
        font-size: 14px;
    }

    .keyboard-key {
        height: 30px;
        font-size: 12px;
        margin: 0 1px;
        min-width: 22px;
        padding: 0 2px;
    }

}

@media (max-width: 360px) {
    .keyboard-key {
        font-size: 11px;
        min-width: 20px;
        height: 28px;
    }

}