@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

* {
    font-family: 'VT323', monospace;
    font-size: xx-large;
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow: hidden;
    background-color: #000;
    color: #fff;
    position: relative;
}

.hidden {
    display: none !important;
}

#toggleButton {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 100;
    background-color: #0aad02;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

/* Mobile Touch Controls */
.mobile-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    z-index: 1000;
    pointer-events: none;
}

.controls-left,
.controls-right {
    display: flex;
    gap: 15px;
    pointer-events: all;
}

.control-btn {
    width: 70px;
    height: 70px;
    border: 3px solid #fff;
    background-color: rgba(10, 173, 2, 0.7);
    color: white;
    font-size: 28px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.control-btn:active {
    background-color: rgba(10, 173, 2, 1);
    transform: scale(0.95);
}

.jump-btn {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    font-size: 20px;
}

.enter-btn {
    width: 80px;
    height: 60px;
    font-size: 18px;
}

/* Show mobile controls on touch devices and in landscape */
@media screen and (max-width: 768px),
       screen and (orientation: landscape) and (max-height: 500px) {
    .mobile-controls {
        display: flex !important;
    }
}

/* Landscape orientation for mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .modal {
        margin-top: 20px;
        width: 80%;
        max-width: 500px;
    }
    
    .info-container {
        top: 5px;
        right: 5px;
    }
    
    h3 {
        font-size: large;
        margin: 2px 0;
    }
    
    #toggleButton {
        top: 5px;
        left: 5px;
        padding: 5px 10px;
        font-size: large;
    }
    
    .mobile-controls {
        height: 120px;
        padding: 10px;
        display: flex !important;
    }
    
    .control-btn {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .jump-btn {
        width: 75px;
        height: 75px;
        font-size: 18px;
    }
    
    .enter-btn {
        width: 70px;
        height: 50px;
        font-size: 16px;
    }
}

/* Portrait orientation for mobile */
@media screen and (max-width: 768px) and (orientation: portrait) {
    .modal {
        margin-top: 50px;
    }
    
    .mobile-controls {
        height: 180px;
        display: flex !important;
    }
    
    .control-btn {
        width: 80px;
        height: 80px;
    }
    
    .jump-btn {
        width: 100px;
        height: 100px;
    }
}

/* Desktop - hide mobile controls by default */
@media screen and (min-width: 769px) {
    .mobile-controls.hidden {
        display: none !important;
    }
}
