body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: rgb(157, 203, 214);
    overflow: hidden;
}
#container {
    display: flex;
    height: 100vh;
}
#sidebar {
    width: 200px;
    overflow-y: auto;
    background: rgb(125, 161, 170);
    border-right: 1px solid rgb(157, 203, 214);
    padding: 40px;

    box-shadow: 4px 0 10px rgb(0, 0, 0);

    display: flex;
    flex-direction: column;
    gap: 12px;
}
.country {
    width: 100%;
    cursor: grab;

    background: rgb(125, 161, 170);
    border: 2px solid transparent;
    border-radius: 14px;

    padding: 8px;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}
.country:hover {
    transform: scale(1.05);

    border-color: rgb(0, 0, 0);

    box-shadow:
        0 6px 14px rgba(0,0,0,0.12);
}
.country:active {
    cursor: grabbing;
}
.disabled-country {
    opacity: 0.35;
    pointer-events: none;
    filter: grayscale(100%);
}
#gameArea {
    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    position: relative;
}
#gameArea h2 {
    margin-bottom: 20px;

    font-size: 42px;
    color: rgb(31, 31, 31);

    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
#gamer {
    border: 4px solid #1e293b;
    border-radius: 18px;

    background: rgb(157, 203, 214);

    box-shadow:
        0 12px 30px rgba(0,0,0,0.18);

    display: block;
}
#bgToggle {
    position: absolute;
    top: 20px;
    right: 20px;

    z-index: 1000;

    padding: 14px 22px;

    background: linear-gradient(to bottom, #22c55e, #16a34a);

    color: white;
    border: none;
    border-radius: 12px;

    font-size: 18px;
    font-weight: bold;

    cursor: pointer;

    box-shadow:
        0 4px 10px rgba(0,0,0,0.15);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}
#bgToggle:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 18px rgba(0,0,0,0.2);
}
#dragPreview {
    position: absolute;
    pointer-events: none;
    display: none;
    opacity: 0.75;
    z-index: 9999;
}

.menu-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.menu-box h1 {
    margin-top: 0;
    margin-bottom: 40px;

    font-size: 56px;

    color: rgb(31, 31, 31);

    text-shadow:
        0 2px 4px rgba(255,255,255,0.3);
}

.play-button {
    display: inline-block;

    padding: 18px 42px;

    background: linear-gradient(to bottom, #22c55e, #16a34a);

    color: white;

    text-decoration: none;

    border-radius: 14px;

    font-size: 28px;
    font-weight: bold;

    box-shadow:
        0 6px 14px rgba(0,0,0,0.2);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.play-button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 22px rgba(0,0,0,0.25);
}

.play-button:active {
    transform: translateY(0px);
}

.top-buttons {
    position: absolute;
    top: 20px;
    right: 20px;

    display: flex;
    gap: 10px;

    z-index: 1000;
}

.home-button {
    display: inline-block;

    padding: 14px 22px;

    background: linear-gradient(to bottom, #3b82f6, #2563eb);

    color: white;

    text-decoration: none;

    border-radius: 12px;

    font-size: 18px;
    font-weight: bold;

    box-shadow: 0 4px 10px rgba(0,0,0,0.15);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.home-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

.home-button:active {
    transform: translateY(0px);
}

.site-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;

    padding: 14px 0;

    text-align: center;

    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);

    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
}

.tutorial-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 5000;

    backdrop-filter: blur(4px);
}

.tutorial-box {
    width: 500px;
    max-width: 90%;

    max-height: 85vh;
    overflow-y: auto;

    padding: 32px;

    border-radius: 22px;

    background: #94b0b8;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.25);

    text-align: center;
}

.tutorial-box h2 {
    margin-top: 0;
    margin-bottom: 20px;

    font-size: 34px;

    color: rgb(31, 31, 31);
}

.tutorial-box ul {
    text-align: left;

    padding-left: 24px;

    line-height: 1.8;

    color: rgb(45, 45, 45);

    font-size: 18px;
}

.tutorial-box button {
    margin-top: 24px;

    padding: 14px 26px;

    border: none;
    border-radius: 12px;

    background: linear-gradient(to bottom, #22c55e, #16a34a);

    color: white;

    font-size: 18px;
    font-weight: bold;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;

    box-shadow:
        0 4px 12px rgba(0,0,0,0.18);
}

.tutorial-box button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 18px rgba(0,0,0,0.22);
}

.tutorial-step {
    display: flex;
    flex-direction: column;

    align-items: center;
    text-align: center;

    gap: 12px;

    margin-bottom: 18px;

    padding: 18px;

    border-radius: 14px;

    background: rgba(0, 0, 0, 0.04);
}

.tutorial-step img {
    width: 100%;
    max-width: 240px;
    max-height: 1800px;

    object-fit: contain;
}

#countryTooltip {
    position: fixed;

    display: none;

    padding: 8px 14px;

    background: rgba(20, 20, 20, 0.92);

    color: white;

    font-size: 15px;
    font-weight: bold;

    border-radius: 10px;

    pointer-events: none;

    z-index: 99999;

    box-shadow:
        0 4px 12px rgba(0,0,0,0.25);

    transform: translate(-50%, -120%);

    white-space: nowrap;
}

#countrySearch {
    width: 100%;

    padding: 10px 12px;

    margin-bottom: 16px;

    border-radius: 10px;

    border: 1px solid rgba(0,0,0,0.2);

    outline: none;

    font-size: 14px;

    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

#countrySearch:focus {
    border-color: #22c55e;

    box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
}
