html{
    font-family: cursive;
    background: #ffffff;
    background: linear-gradient(35deg, rgb(255, 255, 255) 0%, rgba(200, 244, 246, 0.305) 46%, rgb(215, 245, 253) 100%);
}
.logo {
    max-width: 66px;
    padding: 0px;
    margin: 0px;
}

header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 1rem;

    /*  top bar */
    background: linear-gradient(150deg,#39ddda9f,#6fc2d172);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    border-radius: 1rem ;
}

 /* index.html uses h1, keep margin reset for header titles */
header h1{
    margin: 0;
    font-size: 1.25rem;
    color: #16aeae  ;

}

header h2{
    margin: 0;
    font-size: 1.25rem;
}

nav ul{
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav a{
    text-decoration: none;
    color: inherit;
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border-radius: 0.5rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid transparent;
    transition: background-color 180ms ease, box-shadow 200ms ease, transform 120ms ease;
    font-weight: 500;
}

/* animated "light up" on hover / focus */
nav a:hover,
nav a:focus{
    background: rgba(255,255,255,0.14);
    box-shadow: 0 6px 18px rgba(46,139,58,0.18), 0 0 10px rgba(255,255,255,0.12);
    transform: translateY(-2px);
    outline: none;
}

/* different look for active/current page */
.active :first-child{
    background: #ffffff;
    color: #267b77;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* pressed state */
nav a:active{
    transform: translateY(0);
    box-shadow: none;
}

/* keyboard focus visible */
nav a:focus-visible{
    box-shadow: 0 0 0 3px rgba(255,255,255,0.15);
}

/* responsive: stack on very narrow viewports */
@media (max-width: 520px){
    header{
        flex-direction: column;
        align-items: stretch;
    }
    nav ul{
        justify-content: flex-start;
        gap: 0.5rem;
        padding-top: 0.5rem;
    }
}

/* Favorite games list */
.section-title{
    margin: 1rem auto 0.5rem;
    max-width: 1100px;
    padding: 0 1rem;
    color: #fff;
    font-size: 1.25rem;
}

.games{
    max-width: 1100px;
    margin: 0.5rem auto 2rem;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game{
    display: flex;
    align-items: flex-start; /* changed from center so taller portrait images align to top */
    gap: 1rem;
    background: rgba(255,255,255,0.03);
    padding: 0.75rem;
    border-radius: 0.6rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* image block */
.game-img{
    width: 220px;           /* fixed display width */
    aspect-ratio: 2 / 3;    /* preserves the 600x900 portrait ratio */
    object-fit: cover;
    border-radius: 0.5rem;
    flex: 0 0 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* description block */
.game-content{
    flex: 1 1 auto;
    min-width: 0; /* allow long text to wrap inside flex item */
}
.game-content h3{
    margin: 0 0 0.35rem;
    color: #16aeae;
    font-size: 1.1rem;
}
.game-content p{
    margin: 0;
    color: #16aeae;
    line-height: 1.35;
}

/* alternate image side for every even item */
.games .game:nth-child(even){
    flex-direction: row-reverse;
}

/* responsive: stack image above description on narrower screens */
@media (max-width: 720px){
    .game{
        flex-direction: column;
        align-items: stretch;
    }
    .game-img{
        width: 100%;
        height: 200px;
        flex: none;
    }
    .section-title, .games{
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}
footer{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(150deg,#59dbec4a,#6fbfd172);
    color: #16aeae;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    padding: 1px 15px 1px 15px;
    border-radius: .5rem ;
    
}
footer a{
    text-decoration: none;
    color: inherit;
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border-radius: 0.5rem;
    background: rgba(28, 194, 209, 0.397);
    border: 1px solid transparent;
    transition: background-color 180ms ease, box-shadow 200ms ease, transform 120ms ease;
    font-weight: 500;
}
footer a:hover,
footer a:focus{
    background: rgba(255,255,255,0.14);
    box-shadow: 0 6px 18px rgba(6, 69, 68, 0.18), 0 0 10px rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    outline: none;
}
h5,h1 {
    display: flex;
    color: #16aeae;
    border-radius: 50px;
    border-color: #68ffff;
    border-style:none;
    background: #ffffff;
    background: linear-gradient(180deg, rgb(220, 246, 255) 0%, rgba(49, 237, 247, 0.305) 46%, rgba(17, 181, 226, 0.111) 100%);
    padding: 10px;

}
