* {
    margin: 0 auto;
    box-sizing: border-box
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url('img/startbackground/desert-1052092_1920.jpg');
    width: 100%;
    max-width: 100vw;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100%;
    min-height: 100vh;
    position: relative;
}

.intro-container {
    display: flex;
    flex-direction: column;

    position: relative;
    align-items: center;
    justify-content: center;
}

.content {
    position: relative;
}

.buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 999;
    gap: 15px;
}

.button1 {
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: white;
    border: none;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.01s ease;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.shadow {
    color: rgb(4, 16, 1) !important;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.81);
}

.button1:hover {
    background: linear-gradient(135deg, #ff5722, #ff9800);
    transform: scale(1.05);
}

.button1:active {
    transform: scale(0.95);
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    background: #ffcc00;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-family: 'Comic Sans MS', cursive;
    border: 4px solid #ff6600;
    box-shadow: 0px 0px 20px rgba(255, 102, 0, 0.8);
}

.modal h2 {
    margin-top: 0;
    color: #8b0000;
    font-size: 26px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.modal p {
    font-size: 20px;
    margin: 10px 0;
    color: #5a2d0c;
}

.close-btn {
    margin-top: 10px;
    padding: 8px 15px;
    cursor: pointer;
    border: none;
    background: #8b0000;
    color: white;
    border-radius: 8px;
    font-size: 18px;
    font-family: 'Comic Sans MS', cursive;
}

.close-btn:hover {
    background: #ff0000;
}

.icon {
    font-size: 24px;
    margin-right: 5px;
}

:fullscreen {
    z-index: 99 !important;
}

h1 {
    font-size: 80px;
    font-family: 'Jacques Francois Shadow';
    margin: 0;
}

.intro-logo {
    width: 720px;
    height: 480px;
}

canvas {
    background-color: black;
    display: block;
}

.end-buttons {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
}

.restart-button,
.home-button {
    width: 140px;
    text-align: center;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    color: #ffcc00;
    background: linear-gradient(180deg, #ff9900, #cc6600);
    border: 2px solid #ffcc00;
    border-radius: 10px;
    cursor: pointer;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease-in-out;
}

.restart-button:hover,
.home-button:hover {
    background: linear-gradient(180deg, #ffaa00, #dd7700);
    transform: scale(1.05);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.5);
}

.restart-button:active,
.home-button:active {
    transform: scale(0.95);
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.3);
}

.restart-button {
    margin-right: 10px;
}

.fullscreen {
    width: 100vw;
    height: 100vh;
}

#mainContent {
    display: block;
}

#rotate-message {
    display: none;
}

.footer {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 20px;
    font-family: 'Lato';
}

.footer a {
    color: #ffb347;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #ff8c00;
    text-decoration: underline;
}

.spanStyleFooter {
    color: #f5d79f;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

#rotate-message p {
    animation: pulse 1.5s infinite alternate;
}

@keyframes shake {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(10deg);
    }

    75% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(5deg);
    }
}

.shake {
    display: inline-block;
    animation: shake 1s infinite alternate ease-in-out;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spin {
    display: inline-block;
    animation: spin 2s linear infinite;
}

#fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-size: 20px;
    z-index: 9999;
}

.mobile-controls {
    display: none;
    position: fixed;
    bottom: 5px;
    left: 10px;
    width: 100%;
    justify-content: space-between;
    z-index: 1000;
}

.right-controls {
    display: none;
}

.mobile-controls.active {
    display: flex;
}

.right-controls.active {
    display: flex;
}

.mobile-controls.active {
    display: flex;
    position: fixed;
    bottom: 5px;
    left: 10px;
    width: 100%;
    justify-content: space-between;
    z-index: 1000;
}

.fullscreen-message {
    background: #ff9800;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.right-controls.active {
    display: flex;
}