@font-face {
    font-family: 'Rye Regular';
    src: url('https://fonts.googleapis.com/css2?family=Rye&display=swap');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rye', 'Georgia', serif;
}

html, body {
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}

body {
    margin: 0; 
    padding: 0; 
    font-family: 'Courier New', monospace;
    background: linear-gradient(to bottom, #1a0f0a, #2d1810);
    min-height: 100vh;
    color: #3d2817;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: relative;
}

header {
    width: 100%;
    height: 85px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 16px;
    background: linear-gradient(135deg, #D7BE82, #D7BE82);
    padding: 8px 20px 8px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    order: -1;
    flex-shrink: 0;
    z-index: 100;
}

.header-board {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo-block {
    background: linear-gradient(#BDA97A);
    padding: 42px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-height: 65px;
    overflow: hidden;
}

.logo-block h1 {
    font-size: 28px;
    color: #000000;
    margin: 0;
    font-weight: bold;
}

.logo-block p {
    font-size: 14px;
    color: #000000;
    margin: 3px 0 0 0;
}

.nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-board-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-board-item:hover {
    transform: scale(1.05);
}

.nav-board-img {
    width: 140px;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.nav-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000000;
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    z-index: 20;
    white-space: nowrap;
}

.burgermenu {
    display: none;
}

.buttoncntr{
    width:65vw;
    height:100%;
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:space-evenly;
    gap:10vw;
    position:absolute;
    right:0%;
}

#table1{
    position:absolute;
    left:2.5%;
    top:-30%;
    width:95vw;
    height:95vw;
    background-color:#e14f22b5;
    z-index:0;
    border-radius:100%;
    outline-offset: -6.8vh;
    outline:#7E3615 2.5vw solid;
    display:flex; 
    align-items:center; 
    justify-content:center; 
    box-shadow: 5vw 5vw 5vw #00000081;
}

#table2{
    width:87vw;
    height:87vw;
    background-color:#515A47;
    border-radius:100%;
    outline-offset:-1.5vw;
    outline:#c1ac77 1.5vw solid;
}

#kaarten{
    position:absolute;
    top:45%;
    left:22%;
    height:50vh;
    perspective: 1000px;
}

.card-container {
    width: 11vw;
    height: 16vw;
    position: relative;
    margin-right: 1vw;
    cursor: pointer;
    perspective: 1000px;
    display: inline-block;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-container:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    outline: solid 0.2vw black;
}
.card-front {
    background-color: transparent;
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-back {
    background: linear-gradient(135deg, #ffffff, #ffffff);
    transform: rotateY(180deg);
    gap: 15px;
    padding: 10px;
}

.card-back h3 {
    font-size: 16px;
    color: #3d2817;
    margin: 0;
    text-align: center;
}

.card-back img {
    width: 60%;
    height: 50%;
    object-fit: contain;
}

.card-back button {
    padding: 8px 20px;
    background: #3d2817;
    color: #d4af7a;
    border: 2px solid #d4af7a;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.card-back button:hover {
    background: #d4af7a;
    color: #3d2817;
}

#card-intro-container {
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

#card-intro {
    background: #829073;
    border: 3px solid #829073;
    border-radius: 20px;
    padding: 25px 40px;
    max-width: 600px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
}

#card-intro h2 {
    font-size: 36px;
    margin: 0 0 15px 0;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#card-intro p {
    font-size: 16px;
    margin: 0;
    color: #f0f0f0;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Card navigation arrows (visible on mobile only) */
.card-nav-container {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    width: 100%;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 1000;
}

.card-nav-btn {
    pointer-events: auto;
    background: #829073;
    color: white;
    border: 3px solid #ffffff;
    width: 55px;
    height: 55px;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-nav-btn:hover {
    background: #6b7a5e;
    transform: scale(1.1);
}

.card-nav-btn:active {
    transform: scale(0.95);
}

/* Card carousel animation (mobile only) */
@media (max-width: 768px) {
    .card-container {
        opacity: 0;
        transform: scale(0.8);
        transition: all 0.4s ease;
        pointer-events: none;
    }

    .card-container.active-card {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
        z-index: 10;
    }

    .card-container.slide-left {
        animation: slideOutLeft 0.4s ease;
    }

    .card-container.slide-right {
        animation: slideOutRight 0.4s ease;
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(-100px) scale(0.8);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(100px) scale(0.8);
    }
}

/*KEEP THIS AT THE BOTTOM*/

@media (min-width:1281px) and (max-width:1600px) { /*PC size*/
    /*Header*/
    .logo-block {
        padding: 40px 25px;
    }
    
    .logo-block h1 {
        font-size: 26px;
    }
    
    .logo-block p {
        font-size: 13px;
    }
    
    /* Table adjustments */
    #table1 {
        width: 90vw;
        height: 90vw;
    }
    
    #table2 {
        width: 82vw;
        height: 82vw;
    }
    
    /* Card intro */
    #card-intro {
        padding: 20px 35px;
        max-width: 550px;
    }
    
    #card-intro h2 {
        font-size: 32px;
    }
}

@media (min-width:769px) and (max-width:1280px){ /*Tablet / Small PC + S20 landscape*/
    /*Header*/
    header {
        height: 80px;
        padding: 8px 15px 8px 0;
        flex-wrap: nowrap;
    }
    
    .header-board {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .logo-block {
        padding: 35px 18px;
        max-height: 60px;
        flex-shrink: 0;
    }
    
    .logo-block h1 {
        font-size: 24px;
    }
    
    .logo-block p {
        font-size: 12px;
    }
    
    .nav {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav-board-img {
        width: 110px;
    }
    
    .nav-button {
        font-size: 14px;
    }
    
    /*Body / Table*/
    #table1 {
        width: 130vw;
        height: 130vw;
        left: -15vw;
        top: -20%;
    }
    
    #table2 {
        width: 115vw;
        height: 115vw;
    }
    
    /*Card Intro*/
    #card-intro-container {
        margin-bottom: 30px;
    }
    
    #card-intro {
        padding: 20px 30px;
        max-width: 500px;
    }
    
    #card-intro h2 {
        font-size: 30px;
    }
    
    #card-intro p {
        font-size: 14px;
    }
    
    /*Cards*/
    #kaarten {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding: 20px;
        margin-top: 10px;
    }
    
    .card-container {
        position: relative;
        width: 160px;
        height: 220px;
        margin-right: 0;
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }
    
    .card-container#card1,
    .card-container#card2,
    .card-container#card3,
    .card-container#card4,
    .card-container#card5 {
        position: relative;
        rotate: 0deg;
        bottom: auto;
        left: auto;
    }
    
    .card-back h3 {
        font-size: 15px;
    }
    
    .card-back button {
        padding: 7px 18px;
        font-size: 13px;
    }
    
    /* Hide navigation arrows on tablet */
    .card-nav-container {
        display: none;
    }
}

@media (min-width:481px) and (max-width:768px) { /*Phone Landscape Mode*/
    /*Header*/
    body {
        overflow-x: hidden;
        padding: 0;
    }
    
    header {
        height: auto;
        min-height: 65px;
        padding: 6px 10px 6px 0;
        flex-wrap: nowrap;
    }
    
    .header-board {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 10px;
    }
    
    .logo-block {
        padding: 22px 12px;
        max-height: 50px;
        flex-shrink: 0;
    }
    
    .logo-block h1 {
        font-size: 18px;
    }
    
    .logo-block p {
        font-size: 10px;
    }
    
    .nav {
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .nav-board-img {
        width: 85px;
    }
    
    .nav-button {
        font-size: 11px;
    }
    
    /*Body / Table - Show smaller version*/
    #table1 {
        width: 100vw;
        height: 100vw;
        left: 0;
        top: 15%;
        outline-width: 2vw;
    }
    
    #table2 {
        width: 90vw;
        height: 90vw;
        outline-width: 1.2vw;
    }
    
    /*Card Intro*/
    #card-intro-container {
        margin-top: 10px;
        margin-bottom: 20px;
        z-index: 10;
    }
    
    #card-intro {
        padding: 18px 25px;
        max-width: 90%;
    }
    
    #card-intro h2 {
        font-size: 26px;
    }
    
    #card-intro p {
        font-size: 13px;
    }
    
    /*Cards*/
    #kaarten {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 15px;
        padding: 20px 10px;
        margin-top: 30px;
        margin-bottom: 80px;
        z-index: 10;
    }
    
    .card-container {
        position: relative;
        width: 140px;
        height: 190px;
        margin: 0;
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }
    
    .card-container#card1,
    .card-container#card2,
    .card-container#card3,
    .card-container#card4,
    .card-container#card5 {
        rotate: 0deg;
    }
    
    .card-back h3 {
        font-size: 14px;
    }
    
    .card-back img {
        width: 65%;
        height: 48%;
    }
    
    .card-back button {
        padding: 6px 16px;
        font-size: 12px;
    }
    
    /* Hide navigation arrows on landscape */
    .card-nav-container {
        display: none;
    }
}

@media (max-width: 480px) { /*Phone (small phone) - iPhone mode*/
    /*Header*/
    body {
        overflow-x: hidden;
    }
    
    header {
        height: auto;
        min-height: 60px;
        padding: 5px 8px 5px 0;
        flex-wrap: nowrap;
    }
    
    .header-board {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 8px;
    }
    
    .logo-block {
        padding: 20px 10px;
        max-height: 45px;
        flex-shrink: 0;
    }
    
    .logo-block h1 {
        font-size: 16px;
    }
    
    .logo-block p {
        font-size: 9px;
    }
    
    .nav {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: flex-end;
        max-width: 60%;
    }
    
    .nav-board-img {
        width: 70px;
    }
    
    .nav-button {
        font-size: 10px;
    }
    
    /*Body / Table - Show on iPhone*/
    #table1 {
        display: flex;
        width: 110vw;
        height: 110vw;
        left: -5vw;
        top: 20%;
        outline-width: 2.5vw;
    }
    
    #table2 {
        display: block;
        width: 100vw;
        height: 100vw;
        outline-width: 1.8vw;
    }
    
    /*Card Intro*/
    #card-intro-container {
        margin-top: 15px;
        margin-bottom: 15px;
        padding: 0 10px;
        z-index: 10;
    }
    
    #card-intro {
        padding: 15px 20px;
        max-width: 95%;
        border-radius: 15px;
    }
    
    #card-intro h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    #card-intro p {
        font-size: 12px;
        line-height: 1.5;
    }
    
    /*Cards*/
    #kaarten {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: 230px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 15px;
        margin-top: 40px;
        margin-bottom: 100px;
        z-index: 10;
    }
    
    .card-container {
        position: absolute;
        width: 150px;
        height: 210px;
        margin: 0;
    }
    
    .card-container#card1,
    .card-container#card2,
    .card-container#card3,
    .card-container#card4,
    .card-container#card5 {
        rotate: 0deg;
    }
    
    .card-back h3 {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .card-back img {
        width: 70%;
        height: 45%;
    }
    
    .card-back button {
        padding: 6px 14px;
        font-size: 11px;
    }
    
    /* Show navigation arrows on iPhone */
    .card-nav-container {
        display: flex;
    }
    
    .card-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}