* {
    box-sizing: border-box;
}

body {
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #071f1f;
    color: #e5f0ec;
}


/* HEADER */

header {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 70px;

    padding: 15px 70px;

    background: #0a2928;

    border-bottom:
        1px solid #1c4743;
}

header h1 {
    margin: 0;

    font-size: 24px;

    color: #e5f0ec;

    text-align: center;
}


/* HEADER BUTTONS */

#menu-button,
#search-button {
    position: absolute;

    top: 50%;

    width: 42px;
    height: 42px;

    padding: 0;

    transform: translateY(-50%);

    background: transparent;

    border: none;

    border-radius: 6px;

    color: #8fc7b5;

    font-size: 23px;

    cursor: pointer;

    transition:
        background 0.15s,
        color 0.15s;
}

#menu-button {
    left: 15px;
}

#search-button {
    right: 15px;
}

#menu-button:hover,
#search-button:hover {
    background: #123a37;

    color: #e5f0ec;
}


/* MAIN */

main {
    width: 100%;

    max-width: 1000px;

    margin: 0 auto;

    padding:
        25px 20px 40px;
}


/* SEARCH */

.search-container {
    margin-bottom: 25px;
}

.search-container[hidden] {
    display: none;
}

#search {
    width: 100%;

    padding:
        14px 16px;

    background: #0d302e;

    color: #e5f0ec;

    border:
        1px solid #1c4743;

    border-radius: 8px;

    font-size: 16px;

    outline: none;
}

#search::placeholder {
    color: #71908a;
}

#search:focus {
    border-color: #2c7465;
}


/* STATUS */

#status {
    margin-bottom: 15px;

    color: #91aaa3;

    font-size: 14px;
}


/* GAME LIST */

#game-list {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


/* GAME */

.game {
    display: block;

    padding:
        16px 18px;

    background: #0d302e;

    border:
        1px solid #1c4743;

    border-radius: 8px;

    text-decoration: none;

    color: inherit;

    transition:
        background 0.15s,
        border-color 0.15s,
        transform 0.15s;
}

.game:hover {
    background: #123a37;

    border-color: #2c7465;

    transform: translateY(-1px);
}

.game-name {
    margin:
        0 0 8px;

    font-size: 19px;

    font-weight: bold;

    color: #e5f0ec;
}

.game-info {
    display: flex;

    flex-wrap: wrap;

    gap:
        8px 16px;

    color: #91aaa3;

    font-size: 14px;
}


/* BACK BUTTON */

.back-button {
    display: inline-block;

    margin-bottom: 25px;

    color: #91aaa3;

    text-decoration: none;

    font-size: 14px;
}

.back-button:hover {
    color: #8fc7b5;
}


/* GAME HEADER */

#game-header {
    margin-bottom: 25px;

    padding-bottom: 20px;

    border-bottom:
        1px solid #1c4743;
}

#game-title {
    margin-bottom: 8px;

    font-size: 32px;

    font-weight: bold;

    color: #e5f0ec;
}

#game-year {
    color: #91aaa3;

    font-size: 16px;
}


/* PORT LIST */

#port-list {
    display: flex;

    flex-direction: column;

    gap: 15px;
}


/* PORT CARD */

.port {
    padding: 20px;

    background: #0d302e;

    border:
        1px solid #1c4743;

    border-radius: 8px;
}

.port-title {
    margin:
        0 0 18px;

    font-size: 21px;

    color: #e5f0ec;
}


/* PORT INFO */

.port-info {
    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-bottom: 18px;
}

.port-info-row {
    display: flex;

    flex-wrap: wrap;

    gap:
        5px 10px;

    font-size: 14px;
}

.port-info-label {
    color: #91aaa3;

    min-width: 190px;

    text-transform: uppercase;
}

.port-info-value {
    color: #c8dad5;
}


/* NOTES */

.port-notes {
    margin-top: 15px;

    padding-top: 15px;

    border-top:
        1px solid #1c4743;

    color: #a9c0ba;

    font-size: 14px;

    line-height: 1.5;
}

.port-notes p {
    margin:
        7px 0 0;
}


/* PORT LINK */

.port-link {
    display: inline-block;

    margin-top: 18px;

    padding:
        10px 15px;

    background: #123a37;

    border:
        1px solid #2c7465;

    border-radius: 6px;

    color: #e5f0ec;

    text-decoration: none;

    font-size: 14px;

    transition:
        background 0.15s,
        border-color 0.15s;
}

.port-link:hover {
    background: #2c7465;

    border-color: #8fc7b5;

    color: #ffffff;
}


/* NO RESULTS */

.no-results {
    padding: 30px;

    text-align: center;

    color: #91aaa3;

    background: #0a2928;

    border:
        1px solid #1c4743;

    border-radius: 8px;
}


/* ERROR */

.error {
    padding: 20px;

    color: #ffb4b4;

    background: #321a1d;

    border:
        1px solid #71333a;

    border-radius: 8px;
}


/* FOOTER */

footer {
    padding:
        25px 20px;

    text-align: center;

    color: #66817a;

    font-size: 13px;

    border-top:
        1px solid #173b38;
}


/* MOBILE */

@media (max-width: 600px) {

    header {
        min-height: 60px;

        padding:
            12px 60px;
    }

    header h1 {
        font-size: 19px;
    }

    #game-title {
        font-size: 25px;
    }

    .port {
        padding: 16px;
    }

    .port-info-label {
        min-width: 100%;

        margin-bottom: 2px;
    }

    #menu-button,
    #search-button {
        width: 38px;
        height: 38px;

        font-size: 21px;
    }

}


/* SIDE MENU */

#side-menu {
    position: fixed;

    top: 0;
    left: 0;

    width: 280px;
    height: 100vh;

    padding:
        25px 20px;

    background: #0a2928;

    border-right:
        1px solid #1c4743;

    transform:
        translateX(-100%);

    transition:
        transform 0.2s ease;

    z-index: 1000;

    overflow-y: auto;
}


/* OPEN MENU */

#side-menu.open {
    transform:
        translateX(0);
}


/* CLOSE BUTTON */

#menu-close {
    display: block;

    margin-left: auto;

    background: transparent;

    border: none;

    color: #8fc7b5;

    font-size: 30px;

    cursor: pointer;
}

#menu-close:hover {
    color: #e5f0ec;
}


/* MENU TITLE */

#side-menu h2 {
    margin:
        20px 0;

    color: #e5f0ec;

    font-size: 22px;
}


/* MENU OVERLAY */

#menu-overlay {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background:
        rgba(0, 15, 15, 0.7);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.2s ease;

    z-index: 999;
}


/* OPEN OVERLAY */

#menu-overlay.open {
    opacity: 1;

    visibility: visible;
}


/* PLATFORM LIST */

#platform-list {
    display: flex;

    flex-direction: column;

    gap: 5px;
}


/* PLATFORM BUTTONS */

.platform-button {
    width: 100%;

    padding:
        10px 12px;

    background: transparent;

    border: none;

    border-radius: 6px;

    color: #b8d0c9;

    text-align: left;

    font-size: 15px;

    cursor: pointer;

    transition:
        background 0.15s,
        color 0.15s;
}

.platform-button:hover {
    background: #123a37;

    color: #e5f0ec;
}


/* MENU SEPARATORS */

.menu-separator {
    margin-top: 15px;

    margin-bottom: 5px;

    padding:
        8px 12px;

    color: #71908a;

    font-size: 12px;

    font-weight: bold;

    text-align: left;

    border-top:
        1px solid #1c4743;
}


/* GAMES USING APP */

.games-using-app {
    margin-top: 30px;
}


/* COLLAPSIBLE HEADER */

.games-using-app-toggle {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        12px 14px;

    background: #0a2928;

    border:
        1px solid #1c4743;

    border-radius: 6px;

    color: #e5f0ec;

    text-align: left;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;

    transition:
        background 0.15s,
        border-color 0.15s;
}

.games-using-app-toggle:hover {
    background: #123a37;

    border-color: #2c7465;
}


/* ARROW */

.games-using-app-arrow {
    margin-left: 10px;

    color: #8fc7b5;

    font-size: 13px;
}


/* GAME LIST */

.games-using-app-list {
    display: flex;

    flex-direction: column;

    gap: 6px;

    margin-top: 8px;
}


/* GAME LINKS */

.games-using-app-item {
    display: block;

    padding:
        10px 12px;

    background: #0a2928;

    border:
        1px solid #1c4743;

    border-radius: 6px;

    color: #b8d0c9;

    text-decoration: none;

    transition:
        background 0.15s,
        color 0.15s,
        border-color 0.15s;
}

.games-using-app-item:hover {
    background: #123a37;

    border-color: #2c7465;

    color: #e5f0ec;
}

.games-using-app-list[hidden] {
    display: none;
}


/* GAME FILES LINK */

.game-files-link {
    margin-top: 30px;

    text-align: center;

    color: #91aaa3;
}

.game-files-link a {
    color: #8fc7b5;

    text-decoration: underline;
}

.game-files-link a:hover {
    color: #e5f0ec;
}


/* CLICKABLE HEADER */

.header-link {
    display: block;

    color: #e5f0ec;

    text-decoration: none;
}

.header-link:hover {
    color: #e5f0ec;

    text-decoration: none;
}

.header-link:visited {
    color: #e5f0ec;

    text-decoration: none;
}

.header-link:active {
    color: #e5f0ec;

    text-decoration: none;
}

.header-link h1 {
    color: #e5f0ec;

    text-decoration: none;
}
