body {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: 'Rye', 'Open Sans', 'Helvetica Neue', sans-serif;
    background-image: url('./assets/background-img/landscape.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
}

.main-container {
    max-width: 1990px;
    min-height: calc(100vh - 120px);
}

.game-title {
    margin-top: min(50px, 5%);
    margin-bottom: min(50px, 5%);
    font-size: 30px;
    letter-spacing: 3px;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}

.canvas {
    background-color: black;
    border-radius: 20px;
    border: 1px solid white;
    display: block;
}

dialog[open] {
    display: flex;
}

.dialogWindow {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    border: none;
    background-color: transparent;
    transform: translate(-50%, -50%);
}

.canvas-area {
    position: relative;
}

.close-modal {
    visibility: hidden;
    opacity: 0;
}

.settings-hud {
    position: absolute;
    top: 5px;
    right: 5px;
}

.control-hud {
    position: absolute;
    left: 0;
    bottom: 0;
}

.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 130px;
    width: 350px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 20px;
    gap: 20px;
}

.start-btn {
    width: 120px;
    cursor: pointer;
    font-family: 'Rye';
    color: white;
    font-size: 16px;
    background-color: rgb(34, 37, 36);
    border-radius: 20px;
}

.control-display {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.button-row {
    display: none;
    gap: 14px;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.button-control {
    font-family: 'Rye';
    padding: 10px 20px;
    border-radius: 15px;
    background-color: rgba(128, 128, 128, 0.2);
    border: 1px solid rgba(240, 240, 240, 0.5);
    font-size: 16px;
    color: white;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.button-settings {
    font-family: 'Rye';
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 15px;
    background-color: rgba(128, 128, 128, 0.2);
    border: 1px solid rgba(240, 240, 240, 0.5);
    font-size: 16px;
    color: white;
    transition: background-color 0.2s ease;
}

.button-settings:hover {
    background-color: rgba(128, 128, 128, 0.55);
}

.control-img {
    width: 24px;
    height: 24px;
}

.controls-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
}

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hover {
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.55);
}

.footer-link {
    color: black;
    font-size: 20px;
}

.footer-link:hover {
    color: white;
}

.fullscreen-icon {
    width: 24px;
    height: 24px;
}


.svg-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#rotate-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0a0a0f;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
}

#rotate-overlay.active {
    display: flex;
}

.rotate-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    z-index: 1;
}

.phone-wrap {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotatePhone 2.4s cubic-bezier(0.76, 0, 0.24, 1) infinite;
    transform-origin: center center;
    filter: drop-shadow(0 0 18px rgba(99, 255, 200, 0.35));
}

@keyframes rotatePhone {
    0% {
        transform: rotate(0deg);
    }

    35% {
        transform: rotate(90deg);
    }

    65% {
        transform: rotate(90deg);
    }

    100% {
        transform: rotate(90deg);
        opacity: 0.3;
    }
}

@keyframes rotatePhone {
    0% {
        transform: rotate(0deg);
        opacity: 1;
    }

    40% {
        transform: rotate(90deg);
        opacity: 1;
    }

    70% {
        transform: rotate(90deg);
        opacity: 1;
    }

    85% {
        transform: rotate(90deg);
        opacity: 0;
    }

    86% {
        transform: rotate(0deg);
        opacity: 0;
    }

    100% {
        transform: rotate(0deg);
        opacity: 1;
    }
}

.phone-svg {
    width: 56px;
    height: 56px;
}

.arc-wrap {
    position: absolute;
    width: 110px;
    height: 110px;
    animation: fadeArc 2.4s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}

@keyframes fadeArc {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }

    20% {
        opacity: 1;
        transform: scale(1);
    }

    65% {
        opacity: 1;
        transform: scale(1);
    }

    85% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 0;
        transform: scale(0.85);
    }
}

.text-block {
    text-align: center;
}

.rotate-title {

    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}

.rotate-sub {

    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0;
}

.rotate-badge {

    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #63ffc8;
    border: 1px solid rgba(99, 255, 200, 0.3);
    padding: 0.35rem 1rem;
    border-radius: 100px;
    background: rgba(99, 255, 200, 0.05);
}

.demo-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    line-height: 1.8;
}