body{
    margin: 0;
}

.main-container{
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('img/Plattform/2background/Background.png');
    background-repeat: no-repeat;
    background-size: cover;
    flex-direction: column;
}

.impressum-page {
    background-image: url('img/Plattform/2background/Background.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}





#mobile-controls-left {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

#mobile-controls-right {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

#mobile-controls-left,
#mobile-controls-right {
    display: none;
}

#keyboard-controls {
    margin-top: 10px;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 8px;
}



.control-button {
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    touch-action: none; 
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

.footer {
    position: absolute;
    bottom: 5px;
    width: 100%;
    text-align: center;
    font-size: 18px;
    color: white;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.impressum-box {
    background-color: rgba(255, 255, 255, 0.8);
    color: #222;
    max-width: 700px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.impressum-box h1 {
    margin-top: 0;
}

.impressum-box a {
    color: #0044cc;
    text-decoration: none;
}

.impressum-box a:hover {
    text-decoration: underline;
}
.button-container {
    margin-top: 20px;
    text-align: center;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0044cc;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-family: Arial, sans-serif;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #002a80;
}

#rotate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.9);
    color: white;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    font-size: 18px;
    font-family: Arial, sans-serif;
}

.rotate-message {
    max-width: 300px;
}
.collectable-info {
    margin-top: 10px;
    font-size: 14px;
    color: white;
    text-align: center;
}
.collectable-info img {
    width: 30px;
    height: auto;
    vertical-align: middle;
    margin-right: 8px;
}


.collectable-info p {
    margin: 5px 0;
}

.control-button {
    
}


@media only screen and (max-width: 1367px)  {
    .main-container {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        height: 100vh;
        
    }

    canvas {
        width: 98vw;
        height: auto;
        max-height: 73vh;
    }
    #mobile-controls-left,
#mobile-controls-right {
    display: flex;
}
#keyboard-controls {
        display: none;
    }

}


@media only screen and (max-width: 720px) and (orientation: landscape) {
    .main-container {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        height: 100vh;
        
    }

    canvas {
        width: 98vw;
        height: auto;
        max-height: 73vh;
    }
    #mobile-controls-left,
#mobile-controls-right {
    display: flex;
}
#keyboard-controls {
        display: none;
    }

}

@media only screen and (max-height: 480px) {
    canvas {
        height: 100vh;
    }
}
