/* ----HER STARTER GLOBALE INDSTILLINGER & VARIABLER--- */
:root {
    --max-width: 1200px;
    --mint: #79D9C7;
    --pink: #FF94C4;
    --soft-blue: #89D0F0;
    --mustard: #FFD686;
    --bg: #F7F7F3;
    --card-bg: #ffffff;
    --text: #111;

    --heading-font: 'Londrina Solid', sans-serif;
    --nav-font: 'Zalando Sans Expanded', sans-serif;
    --body-font: "Inter", system-ui, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body-font);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
}

a {
    text-decoration: none;
    color: #000;
}
/* ---HER SLUTTER GLOBALE INDSTILLINGER & VARIABLER--- */


/* ----HER STARTER HEADER & NAVIGATION--- */
.site-header {
    background: var(--mint);
    box-shadow: 0 2px 0 rgba(0,0,0,0.04);
}

.logo-img {
    height: 60px;
    border-radius: 8px;
}

/* Tilpasning af Bootstraps nav-links */
.navbar-nav .nav-link {
    font-family: var(--nav-font);
    color: #000000 !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin: 0 10px;
}

/* Book Bord knappen */
.book-btn {
    background: var(--pink);
    color: #000000;
    padding: 8px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 2px 0 rgba(0,0,0,0.06);
    white-space: nowrap;
    display: inline-block;
    transition: transform 0.2s;
}

.book-btn:hover {
    transform: scale(1.05);
}
/* ---HER SLUTTER HEADER & NAVIGATION--- */


/* ----HER STARTER FORSIDE (TITEL & KORT)--- */
.brand {
    font-size: 4rem; /* Mobil størrelse */
    letter-spacing: -2px;
}

@media (min-width: 768px) {
    .brand { font-size: 7rem; /* Desktop størrelse */ }
}

.dash {
    font-weight: 800;
    margin-left: 6px;
}

.sub {
    font-family: var(--nav-font);
    margin: 6px 0 0;
    font-size: 24px;
    color: #444;
}

@media (min-width: 768px) {
    .sub { font-size: 30px; }
}

/* Det roterende kort ved titlen */
.tilt-card {
    position: absolute;
    right: 10%;
    top: -8px;
    width: 100px;
    transform: rotate(12deg);
    transition: transform 0.2s;
}

@media (min-width: 992px) {
    .tilt-card { width: 140px; right: 8%; }
}

.tilt-card:hover {
    transform: scale(1.05) rotate(-2deg);
}

/* Feature Kort (De 4 farvede bokse) */
.custom-card {
    position: relative;
    overflow: visible;
    border-radius: 14px;
    padding: 24px 12px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    transition: transform 0.2s;
    color: #000;
}

.custom-card:hover {
    transform: translateY(-5px);
}

/* Farver til kortene */
.card-1 { background:#FFD686; }
.card-2 { background:#79D9C7; }
.card-3 { background:#89D0F0; }
.card-4 { background:#FF94C4; }

.custom-card h3 {
    text-align: right;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 10px;
    width: 100%;
}

.pawn-img {
    position: absolute;
    top: -22px;
    left: 13px;
    width: 60px;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 8px 6px rgba(0,0,0,0.12));
}

@media (min-width: 992px) {
    .pawn-img { width: 72px; }
}
/* ---HER SLUTTER FORSIDE (TITEL & KORT)--- */


/* ----HER STARTER MENU KNAP & MODAL--- */
.menuknap {
    font-family: var(--heading-font);
    font-weight: 900;
    font-size: 60px;
    line-height: 1;
    color:black;
    background: transparent;
    border: none;
    cursor: pointer;
    text-shadow: 4px 4px 0px #FF85C1;
    transition: transform 0.2s;
    max-width: 100%;
    margin-top: 20px;
    display: inline-block;
}

@media (min-width: 768px) {
    .menuknap {
        font-size: 100px;
        text-shadow: 6px 6px 0px #FF85C1;
    }
}

.menuknap:hover {
    transform: scale(1.05) rotate(-2deg);
    text-decoration: none;
}

/* Modal (Popup vindue) */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
}

.modal-content-wrapper {
    position: relative;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.modal-content-img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    animation: zoom 0.3s;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close-btn:hover { color: var(--pink); }

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}
/* ---HER SLUTTER MENU KNAP & MODAL--- */


/* ----HER STARTER SPILBIBLIOTEK (SØGNING, FILTRE & GRID)--- */
/* Promo boksen */
.promo-inner {
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    border: 4px solid var(--mint);
    box-shadow: 0 6px 16px var(--pink);
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 24px;
    text-align: center;
    display: inline-block;
}

@media (min-width: 768px) {
    .promo-inner { font-size: 40px; padding: 24px 36px; }
}

/* Søgefelt */
#searchBar {
    border: 4px solid var(--mint) !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    box-shadow: 0 0 20px -5px var(--pink) !important;
    font-family: var(--nav-font);
    font-size: 1.1rem;
    color: #333;
}

#searchBar:focus {
    box-shadow: 0 0 25px -2px var(--pink) !important;
    outline: none !important;
}

/* Filter Knapper */
.filter-buttons {
    font-family: var(--nav-font);
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #79D9C7;
    border-radius: 20px;
    background-color: #fff;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

.filter-btn:hover {
    transform: translateY(-2px);
    background-color: #89D0F0;
    box-shadow: 4px 4px 0px rgb(255, 214, 134);
}

/* Spil Grid & Kort */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.game-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.game-title {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.game-info {
    font-family: var(--nav-font);
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: bold;
}

.game-desc {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 20px;
    flex-grow: 1; /* Skubber tags ned i bunden */
}

.game-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    align-self: flex-start;
}
/* ---HER SLUTTER SPILBIBLIOTEK (SØGNING, FILTRE & GRID)--- */


/* ----HER STARTER GALLERI (BARSELSTILBUD)--- */
.gallery-wrapper {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.main-display {
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

#main-img {
    width: 100%;
    height: 400px;
    object-fit: contain; /* Viser hele billedet */
    display: block;
    transition: opacity 0.3s ease;
}

.image-text {
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.image-text h2 {
    color: var(--mint);
    margin-bottom: 10px;
}

.image-text p {
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.thumbnails {
    cursor: grab;
    scrollbar-width: thin;
}

.thumb {
    width: 100px;
    height: 70px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    border: 3px solid transparent;
}

.thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumb.active {
    opacity: 1;
    border-color: var(--pink);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    #main-img { height: 250px; }
    .thumb { width: 80px; height: 60px; }
}
/* ---HER SLUTTER GALLERI (BARSELSTILBUD)--- */


/* ----HER STARTER FOOTER--- */
.site-footer {
    background: #bfeeea;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    font-family: var(--nav-font);
    font-size: 0.95rem;
}

.footer-brand {
    font-weight: 800;
    font-size: 1.2rem;
}

.social {
    color: #000;
    font-size: 1.8rem;
    transition: transform 0.2s, color 0.2s;
}

.social:hover {
    transform: scale(1.1);
    color: var(--pink);
}
/* ---HER SLUTTER FOOTER--- */