* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #07090d;
    --panel: #101318;

    --text: #d8dde6;
    --muted: #8b95a3;

    --white: #f2f5f8;
    --grey: #59616d;

    --red: #ff3f4f;
    --red-soft: rgba(255, 63, 79, 0.25);

    --blue: #7ab8ff;
    --blue-soft: rgba(122, 184, 255, 0.22);

    --green: #00ff9f;
}

body {
    width: 100vw;
    height: 100vh;

    background:
        radial-gradient(circle at top, #1a2028, #07090d 70%);

    font-family: Arial, sans-serif;
    color: var(--text);

    overflow: hidden;
}

#app {
    width: 100%;
    height: 100%;

    display: grid;
    grid-template-columns: 280px 1fr 280px;
}

aside {
    background: black;

    border-right:
        1px solid rgba(255, 255, 255, 0.12);

    padding: 20px;

    overflow-y: auto;
}

#right-panel {
    border-right: none;

    border-left:
        1px solid rgba(255, 255, 255, 0.12);
}

.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo img {
    max-width: 210px;
    height: auto;
}

.panel-section {
    margin-bottom: 30px;
}

.panel-section h2 {
    font-size: 0.9rem;

    color: var(--white);

    margin-bottom: 10px;

    letter-spacing: 2px;
    text-transform: uppercase;
}

button,
select,
input {
    width: 100%;

    margin-bottom: 10px;

    padding: 12px;

    background: #151922;

    border: 1px solid rgba(255, 255, 255, 0.16);

    color: var(--text);

    cursor: pointer;

    transition: 0.2s;
}

#play-alliance.selected,
#play-pirates.selected,
#vs-ai-btn.selected {
    border: 2px solid #ff3b3b;
    background: rgba(255, 59, 59, 0.18);
    box-shadow: 0 0 12px rgba(255, 59, 59, 0.5);
}

button:hover {
    background: rgba(255, 63, 79, 0.14);

    border-color: rgba(255, 63, 79, 0.55);

    box-shadow:
        0 0 12px rgba(255, 63, 79, 0.25);
}

#start-game-btn {
    background: rgba(0, 255, 159, 0.08);

    border-color: var(--green);

    color: var(--green);

    font-weight: bold;
}

#start-game-btn:hover {
    box-shadow:
        0 0 15px rgba(0, 255, 159, 0.45);
}

.footer {
    margin-top: 18px;
    font-size: 11px;
    color: var(--muted);
    text-align: center;
}

.hidden {
    display: none !important;
}

.mobile-logo {
    display: none;
}

/* Responsive Design */
/* Laptop & Small Screens */
@media (max-width: 1600px) {

    #app {
        grid-template-columns:
            230px
            1fr
            230px;
    }

    aside {
        padding: 14px;
    }

    .logo img {
        max-width: 180px;
        height: auto;
    }

    .footer {
        font-size: 10px;
    }
}


/* Tablet */
@media (max-width: 1100px) {

    body {
        height: auto;
        min-height: 100vh;

        overflow-x: hidden;
        overflow-y: auto;
    }

    #app {
        width: 100%;

        height: auto;
        min-height: 100vh;

        grid-template-columns:
            minmax(0, 1fr);

        grid-template-areas:
            "right"
            "center"
            "left";
    }

    #left-panel {
        grid-area: left;

        border-right: none;

        border-top:
            1px solid
            rgba(255, 255, 255, 0.12);
    }

    #game-area {
        grid-area: center;

        width: 100%;

        padding:
            20px 0 24px;
    }

    #right-panel {
        grid-area: right;

        border-left: none;

        border-bottom:
            1px solid
            rgba(255, 255, 255, 0.12);
    }

    aside {
        max-height: none;
    }

    .logo,
    .footer {
        display: none;
    }
}


/* Phone */
@media (max-width: 700px) {

    aside {
        padding: 12px;
    }

    .panel-section {
        margin-bottom: 20px;
    }

    .panel-section h2 {
        font-size: 0.75rem;
    }

    button,
    select,
    input {
        padding: 8px;
        font-size: 0.8rem;
    }

    #game-area {
        padding:
            12px 0 18px;
    }

    .logo,
    .footer {
        display: none;
    }
}

/*Logo - Tablet & Small Screen */
@media (max-width: 1100px) {

    #app {
        grid-template-columns: 1fr;

        grid-template-areas:
            "mobile-logo"
            "right"
            "center"
            "left";
    }

    .mobile-logo {
        grid-area: mobile-logo;

        display: flex;

        justify-content: center;
        align-items: center;

        width: 100%;

        padding:
            14px 10px
            8px;

        background: black;
    }

    .mobile-logo img {
        display: block;

        width: auto;
        height: auto;

        max-width: 190px;
        max-height: 72px;
    }

    .logo {
        display: none;
    }
}

/* Logo - Phone */
@media (max-width: 700px) {

    .mobile-logo {
        padding:
            10px 8px
            6px;
    }

    .mobile-logo img {
        max-width: 165px;
        max-height: 62px;
    }
}