@font-face {
    font-family: "rainy";
    src: url("assets/rainyhearts.ttf") format("truetype");
}

body {
    font-family: "rainy", serif;
}

body{

    margin:0;

    font-family:"rainy",sans-serif;

    color:white;

    background:url("assets/sky.jpg");
    background-size:cover;
    background-position:center;
    background-attachment:fixed;
}

/* ---------- HEADER ---------- */

.site-header{

    position:sticky;
    top:0;
    z-index: 100;
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:10px 30px;

    background:rgba(64, 64, 66, 0.192);

    backdrop-filter:blur(10px);

    border-bottom:1px solid rgba(255,255,255,.1);
}

.logo{

    display:flex;
    align-items:center;
    gap:12px;

    font-size:1.5rem;
    font-weight:800;
}

.logo img{

    height:40px;
}

nav{

    display:flex;
    gap:25px;
}

nav a{

    color:rgb(192, 190, 190);
    text-decoration:none;
    font-weight:600;
}

nav a:hover,
nav .active{

    color:#ffffff;
}

/* ---------- HERO ---------- */

.hero{

    min-height:30vh;

    display:flex;
    flex-direction:column;
    justify-content:baseline;
    align-items:center;

    text-align:center;
}

.hero h1{

    font-size:4rem;

    margin-bottom:10px;
}

.card {
    max-width: 800px;      /* Maximum width */
    width: 100%;           /* Fill available space */
    margin: 2rem auto;     /* Center horizontally */
    padding: 24px;         /* Space inside the card */

    background: rgba(20, 20, 20, 0.75);
    backdrop-filter: blur(8px);

    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);

    box-sizing: border-box;
}

.hero p{

    font-size:2rem;

    margin-bottom:30px;
}

.game-card {
    width: 100%;
    max-width: 552px;
}

.iframe-wrapper {
    width: 100%;
}

.iframe-wrapper iframe {
    width: 100%;
    height: 167px;
    border: none;
}
.itch-wrapper {
    width: 100%;
    overflow-x: auto;
}

.itch-wrapper iframe {
    display: block;
}
/* ---------- BUTTONS ---------- */

.buttons{

    display:flex;
    gap:20px;
}

.button{

    background:#2e2d2d73;

    color:white;

    text-decoration:none;

    padding:12px 24px;

    border-radius:8px;

    transition:.2s;
}

.button:hover{

    background:#a1a2a3d5;
}

.secondary{

    background:#2e2d2d73;
}

/* ---------- PAGES ---------- */

.page{

    max-width:900px;

    margin:60px auto;

    padding:30px;
}

img {
  border-radius: 10%;
  max-width: 150px;
  max-height: 200px;
  margin-top: 20px;
}
/* ---------- CARDS ---------- */

.card{

    background:rgba(20,20,20,.75);

    padding:25px;

    border-radius:15px;

    backdrop-filter:blur(8px);
}


@media (max-width: 768px) {

    .site-header {
        flex-direction: column;
        align-items: center;
        padding: 15px;
        font-size: 1.5rem;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        margin-top: 10px;
    }

    .hero {
        padding: 30px 20px;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .hero p {
        font-size: 1.8rem;
    }

    .buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }

    .button {
        text-align: center;
    }

    .page {
        margin: 20px;
        padding: 20px;
    }
}