/* ==========================================================================
   1. Fonts & Globale Stijlen
   ========================================================================== */

@font-face {
    font-family: 'Burbank Small Medium';
    src: url('/assets/font/BurbankSmall-Medium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0587C5;
    font-family: 'Burbank Small Medium', Arial, 'Helvetica Neue', Helvetica, sans-serif;
    color: white;
    overflow-x: hidden;
}

/* ==========================================================================
   2. Layout & Containers
   ========================================================================== */

.main-container {
    max-width: 1400px;
    margin: auto;
}

main {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

main#content {
    position: relative;
}

/* ==========================================================================
   3. Header & Navigatie
   ========================================================================== */

.site-header {
    background-color: #1065D4;
    padding: 10px 0;
    border-bottom: 3px solid #00a2f2;
}

.site-header .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo img {
    width: 180px;
    transition: 0.3s ease-in-out;
}

.header-logo img:hover {
    transform: scale(1.05);
}

.main-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: .5rem .75rem;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    border-bottom: 3px solid transparent;
    transition: border-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.main-nav .nav-link:hover {
    border-bottom-color: #fdd206;
    text-color: #fdd206;
    transform: scale(1.05);
}

.main-nav .nav-link::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.nav-link.register::before {
    background-image: url('/assets/img/penguin-icon.png');
}

.nav-link.help::before {
    background-image: url('/assets/img/badge-icon.png');
}

/* ==========================================================================
   4. Knoppen & Algemene Componenten
   ========================================================================== */

.btn-play-now {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 25px 8px 15px;
    background-color: #fdd206;
    color: #0d466b;
    font-weight: 700;
    font-size: 1.4rem;
    text-decoration: none;
    border: 3px solid white;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-play-now:hover {
    background-color: #ffde4f;
    color: #0d466b;
    transform: scale(1.05);
}

.btn-play-now .btn-icon {
    height: 30px;
    width: auto;
}

/* ==========================================================================
   5. Pagina Secties
   ========================================================================== */

#hero-carousel {
    margin-top: 2rem;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

#hero-carousel:hover {
    transform: scale(1.05);
}

#hero-carousel .carousel-control-prev,
#hero-carousel .carousel-control-next {
    display: none;
}

#hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: #fff;
    border: none;
    border-radius: 50%;
    opacity: 0.5;
}

#hero-carousel .carousel-indicators .active {
    opacity: 1;
}

.features-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 2rem 0;
}

.more-features-section {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 20px;
    align-items: stretch;
    padding: 2rem 0;
}

/* ==========================================================================
   6. Kaart Componenten
   ========================================================================== */

.feature-card {
    display: flex;
    flex-direction: column;
    background-color: #005082;
    border: 3px solid #00a2f2;
    border-radius: 15px;
    text-align: center;
    overflow: hidden;
    transition: 0.3s ease-in-out;
}

.feature-card:hover {
    transform: scale(1.05);
}

.feature-card .image-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 62.5%; /* 16:10 aspect ratio */
    overflow: hidden;
}

.feature-card .image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-card .text-content {
    padding: 15px;
}

.feature-card h5 {
    font-family: 'Burbank Small Medium', Arial, sans-serif;
    font-size: 1.2rem;
}

.feature-card p {
    padding: 0 10px;
    color: #aaddff;
    font-size: 0.9rem;
}

.more-features-card {
    display: flex;
    background-color: #005082;
    border: 3px solid #00a2f2;
    border-radius: 15px;
    overflow: hidden;
    z-index: 12;
    transition: transform 0.3s ease;
}

.more-features-card:hover {
    transform: scale(1.05);
}

.more-features-card .card-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
}

.more-features-card .card-image {
    width: 60%;
    flex-shrink: 0;
    object-fit: cover;
}

.card-overlay-container {
    position: relative;
    flex-direction: column;
    justify-content: flex-end;
}

.card-overlay-container .card-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.card-bottom-overlay {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.card-bottom-overlay .overlay-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.card-bottom-overlay .separator-line {
    width: 3px;
    height: 50px;
    background-color: #fdd206;
    flex-shrink: 0;
}

.card-bottom-overlay .text-content {
    text-align: left;
}

.card-bottom-overlay h5 {
    font-family: 'Burbank Small Medium', Arial, sans-serif;
    font-size: 1.5rem;
    margin: 0;
}

.card-bottom-overlay p {
    color: #aaddff;
    font-size: 1rem;
    margin: 0;
}

/* ==========================================================================
   7. Footer
   ========================================================================== */

.site-footer {
    position: relative;
    margin-top: 400px;
}

.site-footer::before {
    content: '';
    position: absolute;
    bottom: 70%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 600px;
    background-image: url('/assets/img/crab-bg.png');
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: -1;
}

.footer-main-content {
    background-color: #005082;
}

.footer-content {
    padding: 2rem 0;
    border-bottom: 1px solid #0073b3;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1140px;
    margin: auto;
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col.logo-col {
    align-items: center;
    text-align: center;
}

.footer-col .logo img {
    max-width: 250px;
}

.footer-logo1 {
    transition: 0.3s ease-in-out;
}

.footer-logo1:hover {
    transform: scale(1.05);
}

.footer-col a {
    color: white;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

.footer-col a:hover {
    transform: scale(1.05);
}

.footer-col .btn {
    background-color: #0073b3;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
}

.lang-selector {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.lang-selector .globe-icon {
    width: 20px;
    height: 20px;
}

.footer-disclaimer {
    padding: 20px 0;
    color: #aaddff;
    text-align: center;
    font-size: 0.8rem;
}

/* ==========================================================================
   8. Animaties & Effecten
   ========================================================================== */

@keyframes floatAnimation {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

.floating-coins-container {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 220px;
    pointer-events: none;
}

.coin {
    position: absolute;
    background-image: url('/assets/img/coin.png');
    background-size: contain;
    background-repeat: no-repeat;
    animation: floatAnimation ease-in-out infinite;
}

.coin.c1 {
    width: 70px;
    height: 70px;
    bottom: 100px;
    left: 40%;
    animation-duration: 6s;
}

.coin.c2 {
    width: 45px;
    height: 45px;
    bottom: 45px;
    left: 54%;
    animation-duration: 8s;
    animation-delay: 1.5s;
}


/* ==========================================================================
   9. Game & Client Specifieke Stijlen
   ========================================================================== */

#D_F_GameSection {
    width: 100%;
    height: 100%;
    z-index: 12;
}

#cp_flash, #mp_client {
    display: block;
    aspect-ratio: 800 / 550;
}

#cp_flash {
    width: 99vw;
    height: 99vh;
}

#mp_client {
    width: 95vw;
    height: 95vh;
}

main section#D_F_GameSection #mp_client {
    position: absolute;
    top: 53px;
    left: 0px;
    transform: scale(var(--scale-value));
}

body.affiliate.mplarge main section#D_F_GameSection #mp_client,
body.affiliate.mpsmall main section#D_F_GameSection #mp_client {
    top: 108px;
}

/* ==========================================================================
   10. Foutmelding & Modals
   ========================================================================== */

main #error {
    position: absolute;
    top: 40px;
    left: 50%;
    margin-left: -378px; /* helft van de breedte */
    width: 760px;
    height: 480px;
    background-image: url(/assets/img/expressinstall.png);
    z-index: 1000;
}

main #error .errorText {
    position: relative;
    top: 100px;
    left: 320px;
    width: 330px;
}

main #error h1 {
    margin-bottom: 20px;
    font-size: 18px;
}

main #error span {
    display: block;
    margin-bottom: 10px;
    color: #222;
    font-size: 14px;
    line-height: 1.3;
}

main #error span a {
    color: #00adef;
}

#modal-overlay,
#modal-loading,
#modal-window,
#modal-close,
#modal-content {
    display: none !important;
}

/* ==========================================================================
   11. Help Pagina
   ========================================================================== */

.help-container {
    max-width: 1400px;
    margin: 20px auto 0;
    padding: 20px;
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 10px;
}

.help-frame {
    padding: 20px;
    background-color: #fff;
    border: 5px solid #439ede;
    border-radius: 10px;
}

.help-title-2 {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #3194d9;
    font-size: 24px;
    font-weight: bold;
}

.help-badge-icon img {
    width: 30px;
    height: 30px;
}

.help-title-seperator {
    width: 2px;
    height: 30px;
    margin: 0 10px;
    background-color: #3194d9;
}

.help-content {
    margin-top: -150px;
    position: relative;
    z-index: 2;
}

.help-container-section {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
}

.help-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #3194d9;
    font-size: 22px;
    font-weight: bold;
}

.help-box {
    padding: 20px;
    background-color: #eef7ff;
    border: 2px solid #cce4f7;
    border-radius: 10px;
}

.help-header {
    color: #000;
    font-size: 20px;
    font-weight: bold;
}

.help-text {
    margin: 10px 0;
    color: #439ede !important;
}

.help-head-back-btn {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    background-color: #3194d9;
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    border: none;
    border-radius: 5px;
}

.help-penguin-img {
    display: flex;
    align-items: flex-end;
    margin-top: -180px;
}

.help-contact-us-section {
    margin-top: 30px;
    text-align: center;
}

.help-contact-us-section .nav-tabs .nav-link {
    color: #3194d9;
    font-weight: bold;
}

.help-contact-us-section .nav-tabs .nav-link.active {
    color: #fff;
    background-color: #3194d9;
}

.help-tab-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    text-align: left;
}

.help-tab-text {
    max-width: 60%;
}

.help-tab-title {
    color: #3194d9;
    font-size: 20px;
    font-weight: bold;
}

.help-tab-description {
    margin: 10px 0;
    color: black;
}

.help-tab-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3194d9;
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
}

.help-game-help {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 960px;
    margin: 30px auto 0;
    padding: 20px;
    background-color: #eef7ff;
    border-radius: 10px;
}

.help-game-help-image {
    position: relative;
}

.help-mod-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.help-safety-tips {
    padding: 20px;
    margin-top: 30px;
    background-color: #3194d9;
    color: white;
    text-align: center;
    border-radius: 10px;
}

.help-safety-title {
    font-size: 22px;
    font-weight: bold;
}

.help-rules {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 960px;
    margin: 20px auto 0;
}

.help-rules-text ul {
    padding-left: 20px;
}

.help-rules-title {
    margin-top: 10px;
    color: #3194d9;
    font-size: 18px;
    font-weight: bold;
}

.help-rule {
    color: black;
}

.help-rule li {
    list-style-type: disc;
}

/* ==========================================================================
   12. Spelregels Pagina (Rules)
   ========================================================================== */

.rules-container {
    max-width: 1400px;
    margin: 20px auto 0;
    padding: 20px;
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 10px;
}

.rules-frame {
    min-height: 500px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 5px solid #48a9e4;
    border-radius: 10px;
}

.rules-header-2 {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #2b82c2;
    font-size: 24px;
    font-weight: bold;
}

.rules-badge-icon img {
    width: 30px;
    height: auto;
}

.rules-title-seperator {
    width: 2px;
    height: 30px;
    margin: 0 10px;
    background-color: #2b82c2;
}

.rules-content {
    text-align: center;
}

.rules-title {
    font-family: 'Burbank Big Wide Bold', sans-serif;
    font-size: 32px;
    color: #2b82c2;
    margin-bottom: 20px;
}

.rules-tabs-ref .nav-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: none;
}

.rules-tabs-ref .nav-link {
    width: 130px;
    height: 130px;
    padding: 0;
    background-color: #fff;
    background-size: cover;
    border: 7px solid #fff;
    border-radius: 15px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
}

.rules-tabs-ref .nav-link:hover {
    border-color: #fdd206;
    transform: scale(1.05);
}

.rules-tabs-ref .nav-link.active {
    border-color: #1065D4;
    transform: scale(1.1);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.rules-tabs-ref .rule-1 { background-image: url('/assets/img/rulesicon1.png'); }
.rules-tabs-ref .rule-2 { background-image: url('/assets/img/rulesicon2.png'); }
.rules-tabs-ref .rule-3 { background-image: url('/assets/img/rulesicon3.png'); }
.rules-tabs-ref .rule-4 { background-image: url('/assets/img/rulesicon4.png'); }

.rules-rule {
    position: relative;
    width: 760px;
    margin: 40px auto 0;
    padding: 25px;
    background-color: #e6f5ff;
    border: 4px solid #48a9e4;
    border-radius: 20px;
}

.rules-rule::before {
    content: '';
    position: absolute;
    top: -24px;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 20px solid #e6f5ff;
    filter: drop-shadow(0 -4px 0 #48a9e4);
    transition: left 0.3s ease-in-out;
}

.rules-rule::after {
    display: none;
}

#rule-1-pane.active .rules-rule::before { left: 19%; transform: translateX(-50%); }
#rule-2-pane.active .rules-rule::before { left: 40%; transform: translateX(-50%); }
#rule-3-pane.active .rules-rule::before { left: 60%; transform: translateX(-50%); }
#rule-4-pane.active .rules-rule::before { left: 81%; transform: translateX(-50%); }

.rules-rule-title {
    color: #1065D4;
    font-size: 28px;
    font-weight: bold;
}

.rules-rule-text {
    margin-top: 10px;
    color: #333;
    font-size: 20px;
}

.rules-sub-text {
    margin-top: 25px;
    color: #1c6aa4;
    font-size: 18px;
    font-weight: bold;
}

/* ==========================================================================
   13. Media Queries (Responsive Design)
   ========================================================================== */

@media (max-width: 992px) {
    .features-section,
    .more-features-section,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .site-header .container-fluid,
    .header-left {
        flex-direction: column;
        gap: 10px;
    }

    .features-section,
    .more-features-section,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .more-features-card {
        flex-direction: column;
    }

    .more-features-card .card-image {
        width: 100%;
        height: 200px;
    }

    .site-footer::before {
        background-size: cover, 150% 150%;
    }
}