* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #211d20;
    background-image: url('../img/A_Background_Topographie.png');
    background-size: contain;
    background-position: center center;
    background-repeat: repeat;
    background-attachment: fixed;
    color: #ffffff;
    line-height: 1.6;
    position: relative;
}

body.details::before {
    content: '';
    position: fixed;
    right: -280px;
    top: 50px;
    width: 600px;
    height: 600px;
    background-image: url(../img/E_sun_02.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
    pointer-events: none;
    transform: translateY(var(--parallax-y2, 0px));
}

body.details::after {
    content: '';
    position: fixed;
    left: -370px;
    bottom: -200px;
    width: 760px;
    height: 760px;
    background-image: url(../img/B_sun_01.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
    pointer-events: none;
    transform: translateY(var(--parallax-y1, 0px));
}

body.details .footer::before {
    content: '';
    position: fixed;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background-image: url(../img/C_Nebula.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
    pointer-events: none;
    transform: translateX(var(--parallax-x3, 0px));
}

body.maere {
    background-image: none;
    background: rgb(33, 28, 31);
}

.katibeh-regular {
    font-family: "Katibeh", serif;
    font-weight: 400;
    font-style: normal;
}

a {
    color: white;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0;
    background-color: #211d20;
    border-bottom: 1px solid #444;
    width: 100%;
    position: relative;
}

.nav-left {
    position: absolute;
    top: 0;
    left: 40px;
    z-index: 10;
}

.nav-left .logo {
    height: 120px;
    width: auto;
    object-fit: contain;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
    padding: 20px 40px;
}

.nav-item {
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
    color: #ffffff;
}

.nav-item:hover {
    color: #ff6b6b;
}

.gde-logo {
    background-color: #ff6b6b;
    color: white;
    padding: 8px 12px;
    font-weight: bold;
    font-size: 12px;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 40px;
}

/* Content Container */
.content-container {
    display: flex;
    align-items: center;
    gap: 60px;
    margin: 80px 0;
}

/* SleepDrift Section */
.sleepdrift-section {
    padding: 10px 20px;
    background-color: rgba(32, 29, 32, .9);
    margin: 100px 0;
    border-radius: 12px;
}

.game-preview {
    flex: 1;
    position: relative;
}

.preview-image {
    width: 300px;
    height: 200px;
    background-color: #f0f0f0;
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gde-watermark {
    background-color: #6b7280;
    color: white;
    padding: 20px 30px;
    font-weight: bold;
    font-size: 18px;
    border-radius: 8px;
}

.game-info {
    flex: 1;
}

.game-info.about {
    flex: 2;
}

.welcome-text {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.game-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.game-description {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 30px;
    line-height: 1.8;
}

.read-more-btn {
    background: transparent;
    color: #D4AF37;
    border: 2px solid #D4AF37;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.read-more-btn::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid #D4AF37;
    pointer-events: none;
}

.read-more-btn:hover {
    background-color: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

/* Our Games Section */
.our-games-section {
    padding: 10px 20px;
    background-color: rgba(32, 29, 32, .9);
    margin: 100px 0;
    border-radius: 12px;
    overflow: hidden;
}

.our-games-section .game-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    overflow: hidden;
}

.our-games-section .game-preview img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.games-info {
    flex: 1;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #fff;
}

.game-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.mbe-text {
    font-size: 36px;
    font-weight: bold;
    color: #ff6b6b;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.number-2 {
    font-size: 48px;
    font-weight: bold;
    color: #ff6b6b;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.games-description {
    font-size: 16px;
    color: #ccc;
    line-height: 1.8;
}

/* Connect Section */
.connect-section {
    padding: 10px 20px;
    background-color: rgba(32, 29, 32, .9);
    margin: 100px 0;
    border-radius: 12px;
}

.connect-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.connect-description {
    font-size: 16px;
    color: #ccc;
    line-height: 1.8;
}

.social-buttons {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.social-btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.social-icon {
    font-size: 24px;
}

.buttons-label {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Media Container Section */
.media-container-section {
    padding: 10px 20px;
    background-color: rgba(32, 29, 32, .9);
    margin: 100px 0;
    border-radius: 12px;
}

.media-row {
    display: flex;
    flex-direction: column;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.media-item {
    width: 100%;
}

.media-content {
    display: flex;
    align-items: center;
    gap: 60px;
    min-height: 300px;
}

.media-content.reverse {
    flex-direction: row-reverse;
}

.media-image {
    flex: 0 0 350px;
    width: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 350px;
    height: 250px;
    background-color: #f0f0f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gde-watermark, .age-watermark {
    background-color: #6b7280;
    color: white;
    padding: 20px 30px;
    font-weight: bold;
    font-size: 18px;
    border-radius: 8px;
}

.media-text {
    flex: 1;
    position: relative;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.media-subtitle {
    font-size: 16px;
    color: #fbbf24;
    font-weight: bold;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.media-title {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.media-description {
    font-size: 16px;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 20px;
}

.media-description-bottom {
    font-size: 16px;
    color: #ccc;
    line-height: 1.8;
}

.large-number {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 120px;
    font-weight: bold;
    color: #ff6b6b;
    opacity: 0.8;
    z-index: 1;
}

.media-item:nth-child(2) .media-text {
    text-align: right;
}

.media-item:nth-child(2) .large-number {
    left: -20px;
    right: auto;
}

/* Team Section */
.team-section {
    padding: 10px 20px;
    background-color: rgba(32, 29, 32, .9);
    margin: 100px 0;
    border-radius: 12px;
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.team-header {
    text-align: center;
    margin-bottom: 60px;
}

.team-subtitle {
    font-size: 16px;
    color: #fbbf24;
    font-weight: bold;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.team-title {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
}

.team-card {
    background-color: transparent;
    max-width: 400px;
    margin: 0 auto;
}

.team-image {
    margin-bottom: 20px;
}

.team-image img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.team-placeholder {
    width: 100%;
    height: 300px;
    background-color: #f0f0f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.team-watermark {
    background-color: #6b7280;
    color: white;
    padding: 20px 25px;
    font-weight: bold;
    font-size: 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.team-watermark span:first-child {
    color: #ff6b6b;
    font-size: 28px;
}

.watermark-small {
    font-size: 18px;
    color: white;
}

.team-info {
    color: #fff;
}

.team-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

.team-role {
    font-weight: normal;
    color: #fbbf24;
}

.team-description {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}

/* Image Container */
.imageContainer {
    width: 100%;
    height: 380px;
    background-image: url(../img/D_Nebula_bottom.png);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
    margin-top: 80px;
}

/* About Hero Section */
.about-hero {
    height: 450px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -60px;
    padding-top: 80px;
}


.about-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.about-hero-subtitle {
    font-size: 18px;
    font-weight: 500;
    color: #fbbf24;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.about-hero-title {
    font-size: 64px;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Footer */
.footer {
    background-color: rgb(241, 234, 229);
    position: relative;
    padding: 0px 0px 15px 0px;
}

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer a{
    color: #333;
}

.footer-nav-item {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-nav-item:hover {
    color: #ff6b6b;
}

.footer-nav-separator {
    font-size: 14px;
    color: #666;
}

.footer-copyright {
    font-size: 12px;
    color: #666;
    text-align: center;
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .nav-right {
        gap: 20px;
    }

    .content-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .game-title, .connect-title {
        font-size: 36px;
    }

    .preview-image {
        width: 250px;
        height: 160px;
    }

    main {
        padding: 0 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
    }

    .media-content, .media-content.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .media-image {
        flex: none;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .media-text {
        padding: 0 20px;
    }

    .media-item:nth-child(2) .media-text {
        text-align: center;
    }

    .media-title {
        font-size: 28px;
    }

    .large-number {
        position: static;
        transform: none;
        font-size: 80px;
        margin: 20px 0;
    }

    .media-item:nth-child(2) .large-number {
        left: auto;
        right: auto;
    }

    .image-placeholder {
        width: 100%;
        height: 200px;
    }

    /* Team Section Responsive */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 100%;
    }

    .team-card {
        max-width: 100%;
    }

    .team-title {
        font-size: 36px;
    }

    .team-image img {
        max-width: 280px;
    }

    /* About Hero Responsive */
    .about-hero {
        height: 250px;
        margin-top: -60px;
        padding-top: 60px;
    }

    .about-hero-title {
        font-size: 42px;
    }

    .about-hero-subtitle {
        font-size: 16px;
    }

    /* Image Container Responsive */
    .imageContainer {
        height: 290px;
    }

    /* Footer Responsive */
    .footer {
        padding: 40px 20px 30px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }

    .footer-nav-separator {
        display: none;
    }

    .footer-copyright {
        font-size: 10px;
        padding: 0 20px;
    }
}

/* MÄRE Page Styles */
.maere-hero {
    padding: 100px 0 50px;
    text-align: center;
    background: transparent;
    margin: 0;
    border-radius: 0;
}

.maere-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.maere-logo {
    margin-bottom: 60px;
}

.maere-title-image {
    max-width: 400px;
    width: 100%;
    height: auto;
}

.maere-social-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.star-border-left,
.star-border-right {
    height: 60px;
    width: auto;
}

.maere-social-icons {
    display: flex;
    align-items: center;
    gap: 30px;
}

.social-icon-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-icon-link:hover {
    transform: scale(1.1);
}

.social-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.maere-content-section {
    padding: 10px 20px;
    background-color: rgba(32, 29, 32, .9);
    margin: 100px 0;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background-image: url(../img/F_Trees.png);
    background-blend-mode: darken;
}

.maere-content-section::before {
    content: '';
    position: absolute;
    top: -93px;
    left: 0;
    right: 0;
    height: 40px;
    box-shadow: 0 69px 66px 55px rgba(33, 28, 31, 1);
    z-index: 3;
    pointer-events: none;
}

.maere-content-section::after {
    content: '';
    position: absolute;
    bottom: 111px;
    left: 0;
    right: 0;
    height: 80px;
    box-shadow: 0 147px 34px 10px rgba(33, 28, 31, 1);
    z-index: 3;
    pointer-events: none;
}

.maere-content-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.maere-text-content {
    max-width: 600px;
    padding: 40px 0;
}

.maere-subtitle {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.maere-section-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #ffffff;
}

.maere-description {
    font-size: 16px;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 20px;
}

.maere-trees-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-image: url('../img/F_Trees.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    opacity: 0.4;
}

.trees-image {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .maere-title-image {
        max-width: 300px;
    }

    .maere-social-row {
        gap: 20px;
    }

    .star-border-left,
    .star-border-right {
        height: 40px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .maere-social-icons {
        gap: 20px;
    }

    .maere-section-title {
        font-size: 36px;
    }

    .trees-image {
        height: 200px;
    }
}

h1 {
    font-size: 48px !important;
}

h2 {
    font-size: 48px !important;
}

h3 {
    font-size: 48px !important;
}

/* Katibeh font for all headings and titles */
h1, h2, h3, h4, h5, h6,
.game-title,
.section-title,
.connect-title,
.media-subtitle,
.media-title,
.team-subtitle,
.team-title,
.about-hero-subtitle,
.about-hero-title,
.maere-subtitle,
.maere-section-title {
    font-family: 'Katibeh', cursive;
}
body{
    overscroll-behavior: none;
    overflow-x: hidden;
}
