/* @import url(//db.onlinewebfonts.com/c/b2e75c336df191233b3096682c9ee6be?family=PixelarRegularW01-Regular); */


@font-face {
    font-family: PixelarRegular;
    src: url("../fonts/font.woff") format("woff");
}

#canvas {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 400px;
height: 600px;
border: 1px solid white;

}

body{
    background-color: black;
}

p{
    color: white;
    font-family: PixelarRegular;
}

/* Mobile control buttons */
.mobile-controls {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    gap: 10px;
    z-index: 100;
}

.control-btn {
    width: 70px;
    height: 70px;
    border: 2px solid #63DBBD;
    background-color: rgba(0, 0, 0, 0.7);
    color: #63DBBD;
    font-size: 28px;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.control-btn:active {
    background-color: #63DBBD;
    color: black;
}

/* Footer */
.controls-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-family: PixelarRegular;
    font-size: 16px;
    color: #63DBBD;
    z-index: 100;
}

.controls-footer span {
    opacity: 0.8;
}

.mobile-hint {
    display: none;
}

.control-btn-small {
    display: none;
}

/* Mobile viewport */
@media (max-width: 600px), (pointer: coarse) {
    .mobile-controls {
        display: flex;
        gap: 8px;
    }

    .pc-controls {
        display: none;
    }

    .mobile-hint {
        display: inline;
    }

    #canvas {
        position: fixed;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 24px);
        max-width: 400px;
        height: calc(100dvh - 122px);
        max-height: 600px;
    }

    .control-btn-small {
        display: block;
        position: fixed;
        right: 10px;
        bottom: 30px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.modal-content {
    background-color: #1a1a1a;
    border: 2px solid #63DBBD;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    font-family: PixelarRegular;
    color: white;
    max-width: 320px;
    width: 90%;
}

.modal-content h2 {
    color: #63DBBD;
    margin: 0 0 20px 0;
    font-size: 32px;
}

.modal-content p {
    font-size: 20px;
    margin: 10px 0;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    font-family: PixelarRegular;
    font-size: 20px;
    text-align: center;
    text-transform: uppercase;
    background-color: #000;
    border: 2px solid #63DBBD;
    color: #63DBBD;
    border-radius: 4px;
    margin: 15px 0;
    box-sizing: border-box;
}

.modal-content input:focus {
    outline: none;
    border-color: white;
}

.modal-content input::placeholder {
    color: #4a9a8a;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
}

.modal-btn {
    padding: 12px 20px;
    font-family: PixelarRegular;
    font-size: 16px;
    border: 2px solid #63DBBD;
    border-radius: 4px;
    cursor: pointer;
    background-color: transparent;
    color: #63DBBD;
    transition: all 0.2s;
}

.modal-btn:hover {
    background-color: #63DBBD;
    color: black;
}

.modal-btn.primary {
    background-color: #63DBBD;
    color: black;
}

.modal-btn.primary:hover {
    background-color: white;
    border-color: white;
}

.modal-btn.secondary {
    font-size: 14px;
    margin-top: 10px;
    border-color: #4a9a8a;
    color: #4a9a8a;
}

.modal-btn.secondary:hover {
    background-color: #4a9a8a;
    color: black;
}

.modal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Leaderboard Table */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: PixelarRegular;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #333;
}

.leaderboard-table th {
    color: #63DBBD;
    font-size: 16px;
}

.leaderboard-table td {
    color: white;
    font-size: 18px;
}

.leaderboard-table tr:first-child td {
    color: #FFD700;
}

.leaderboard-table tr:nth-child(2) td {
    color: #C0C0C0;
}

.leaderboard-table tr:nth-child(3) td {
    color: #CD7F32;
}
