body {
    background: hsl(21, 29%, 77%);
    margin: 0;
    display: flex;
    min-height: 100vh;
    position: relative;
}
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('images/dragon.png') no-repeat;
    background-size: 1860px 1064px;
    background-position: calc(50% + 6vw) top;
    top: 6em;
    opacity: 0.24;
    z-index: 0;
    pointer-events: none;
}
.sidebar, .main-content {
    position: relative;
    z-index: 1;
}
.sidebar {
    width: 12.5vw; /* 1/8 of viewport width */
    min-width: 120px;
    background: #b97a57;
    height: 100vh;
    box-shadow: 8px 0 24px rgba(0,0,0,0.2);
    padding-top: 2em;
}
.navigation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
}
.navigation a {
    color: #fff;
    text-decoration: none;
    font-family: 'Chelsea Market', cursive;
    font-size: 1.2em;
    padding: 0.5em 1em;
    border-radius: 8px;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.navigation a:hover {
    background-color: hsl(21, 43%, 49%);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.enjoy-row {
    display: flex;
    gap: 2em;
    margin-top: 2em;
    justify-content: center;
    flex-wrap: wrap;
}
.enjoy-color-box {
    width: 160px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Chelsea Market', cursive;
    font-size: 1em;
    color: #fff;
    border-radius: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 1px 1px #355070, 2px 2px #355070, 3px 3px #355070, 4px 4px #355070, 5px 5px #355070, 6px 6px #355070, 7px 7px #355070, 8px 8px #355070, 0 8px 24px rgba(0,0,0,0.25);
}
.enjoy-color-box:hover {
    transform: translateY(-5px);
    box-shadow: 1px 1px #355070, 2px 2px #355070, 3px 3px #355070, 4px 4px #355070, 5px 5px #355070, 6px 6px #355070, 7px 7px #355070, 8px 8px #355070, 0 12px 32px rgba(0,0,0,0.3);
}
.enjoy-color-box a {
    color: inherit;
    text-decoration: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.box-gaming { background: #355070; }
.box-reading { background: #6d597a; }
.box-navy { background: #b56576; }
.box-technology { background: #e56b6f; }
.enjoy-box {
    background: hsl(21, 43%, 49%);
    color: #355070;
    font-size: 1.5em;
    margin-top: 1em;
    padding: 1em 2em;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    font-family: 'Rubik Dirt', cursive;
    box-shadow: 1px 1px #355070, 2px 2px #355070, 3px 3px #355070, 4px 4px #355070, 5px 5px #355070, 6px 6px #355070, 7px 7px #355070, 8px 8px #355070, 0 8px 24px rgba(0,0,0,0.25);
}
.centered-title {
    text-align: center;
    font-family: 'Chelsea Market', cursive;
    margin-top: 2em;
    color: #355070;
    border: 6px solid #355070;
    border-radius: 16px;
    padding: 0.5em 1em;
    font-size: 4em;
    background: hsl(29, 44%, 44%);
    box-shadow: 1px 1px #355070, 2px 2px #355070, 3px 3px #355070, 4px 4px #355070, 5px 5px #355070, 6px 6px #355070, 7px 7px #355070, 8px 8px #355070, 0 12px 32px rgba(0,0,0,0.3);
}
.profile-image {
    width: 25%;
    height: auto;
    margin-top: 1em;
    border-radius: 50%;
    /* Match the layered shadow style used by the buttons */
    box-shadow: 1px 1px #355070, 2px 2px #355070, 3px 3px #355070, 4px 4px #355070, 5px 5px #355070, 6px 6px #355070, 7px 7px #355070, 8px 8px #355070, 0 8px 24px rgba(0,0,0,0.25);
}
.section-heading {
    font-family: 'Rubik Dirt', cursive;
    color: #355070;
    font-size: 2em;
    margin: 1.5em 0 0.4em;
    text-align: center;
}
.page-intro {
    max-width: 800px;
    text-align: center;
    margin: 0 1.5em 1.5em;
    font-family: 'Chelsea Market', cursive;
    color: #355070;
}
.game-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    width: min(820px, 90%);
    margin: 0 auto 3em;
}
.game-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #fff;
    background: #355070;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 1px 1px #355070, 2px 2px #355070, 3px 3px #355070, 4px 4px #355070, 5px 5px #355070, 6px 6px #355070, 7px 7px #355070, 8px 8px #355070, 0 8px 24px rgba(0,0,0,0.25);
    transition: transform 0.3s, box-shadow 0.3s;
}
.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 1px 1px #355070, 2px 2px #355070, 3px 3px #355070, 4px 4px #355070, 5px 5px #355070, 6px 6px #355070, 7px 7px #355070, 8px 8px #355070, 0 12px 32px rgba(0,0,0,0.3);
}
.game-card img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    height: auto;
    object-fit: cover;
    object-position: center top;
}
.game-card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.2em;
    padding: 0.6em 0.8em;
    font-family: 'Chelsea Market', cursive;
    font-size: 1.05em;
    text-align: center;
    letter-spacing: 0.5px;
}
@media (max-width: 640px) {
    .game-grid {
        grid-template-columns: 1fr;
    }
}
