@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;
}

body {
    font-family: 'Georgia', serif;
    background: #8b6f47;
    background-image: 
        repeating-linear-gradient(
            90deg,
            #8b6f47 0px,
            #a0826d 2px,
            #8b6f47 4px,
            #7a5c3e 6px,
            #8b6f47 8px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(139, 111, 71, 0.3) 0px,
            rgba(122, 92, 62, 0.3) 100px,
            rgba(139, 111, 71, 0.3) 200px
        );
    padding: 0;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

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: 10px 20px 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    order: -1;
    flex-shrink: 0;
}

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

.logo-block {
    background: linear-gradient(#BDA97A);
    padding: 42px 30px;
    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;
}

.info-board {
    background: 
        linear-gradient(135deg, #2d4a2a 0%, #3d5436 50%, #2d4a2a 100%);
    border: none;
    padding: 40px;
    margin: 0 auto;
    max-width: 1200px;
    width: 95%;
    border-radius: 10px;
    position: relative;
}

.info-board-header {
    background: 
        repeating-linear-gradient(
            90deg,
            #8b6f47 0px,
            #9d7d52 3px,
            #8b6f47 6px
        );
    border: none;
    padding: 25px;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 8px;
    position: relative;
}

.info-board-header h2 {
    font-size: 48px;
    margin-bottom: 10px;
    color: #2c1810;
    font-weight: bold;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 13px;
    font-style: italic;
    display: block;
    color: #3d2817;
    opacity: 0.8;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.info-card {
    background: transparent;
    border: none;
    padding: 25px;
    cursor: pointer;
    position: relative;
    border-radius: 3px;
    perspective: 1000px;
    min-height: 320px;
    display: block;
    width: 100%;
    overflow: visible;
    transition: all 0.3s ease;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 15px;
    background: radial-gradient(ellipse, #8b6f47 0%, transparent 70%);
    opacity: 0.3;
    z-index: 15;
}

.info-card:hover {
    transform: translateY(-8px);
    z-index: 10;
}

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

.info-card.flipped .info-card-inner {
    transform: rotateY(180deg);
}

.card-pin {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: radial-gradient(circle at 35% 35%, #8a8a8a, #2a2a2a);
    border-radius: 50%;
    box-shadow: 
        inset -2px -2px 4px rgba(0,0,0,0.6),
        inset 1px 1px 2px rgba(255,255,255,0.2),
        0 4px 8px rgba(0,0,0,0.4);
    z-index: 15;
}

.card-pin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #1a1a1a;
    border-radius: 50%;
}

.card-footer {
    font-size: 13px;
    margin-top: 15px;
    padding-top: 12px;
    font-style: italic;
    opacity: 0.7;
}

/* Front and Back of Cards */
.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    min-height: 320px;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 35px 25px;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(139, 90, 43, 0.2);
}

.card-front {
    background: linear-gradient(135deg, #D4A86B 0%, #C9A060 50%, #B89055 100%);
    z-index: 2;
    color: #2c1810;
    border: 2px solid rgba(44, 24, 16, 0.2);
}

.card-front h3 {
    font-size: 26px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #2c1810;
}

.card-front p {
    font-size: 14px;
    opacity: 0.85;
    color: #3d2817;
}

.card-back {
    background: linear-gradient(135deg, #8b7355 0%, #7a6245 100%);
    transform: rotateY(180deg);
    z-index: 1;
    color: #f5e6d3;
    padding: 40px 30px;
}

.card-back h3 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #f5e6d3;
}

.card-back p {
    font-size: 15px;
    line-height: 1.8;
    color: #e8d5c4;
}

.card-front h3,
.card-back h3 {
    font-size: 24px;
    margin-bottom: 18px;
}

.card-front p,
.card-back p {
    font-size: 16px;
    line-height: 1.7;
}

/* Tablet Responsiveness */
@media (min-width: 769px) and (max-width: 1024px) {
    header {
        height: 80px;
    }
    
    .logo-block {
        padding: 35px 18px;
        max-height: 60px;
    }
    
    .logo-block h1 {
        font-size: 24px;
    }
    
    .logo-block p {
        font-size: 12px;
    }
    
    .nav-board-img {
        width: 120px;
    }
    
    .nav-button {
        font-size: 14px;
    }
    
    .info-board {
        padding: 40px;
        margin: 40px auto 15px;
    }
    
    .info-board-header {
        padding: 30px;
    }
    
    .info-board-header h2 {
        font-size: 42px;
    }
    
    .info-cards {
        gap: 25px;
    }
    
    .info-card {
        min-height: 280px;
    }
}

/* Mobile and Tablet Responsiveness */
@media (max-width: 768px) {
    body {
        gap: 15px;
    }
    
    header {
        height: auto;
        padding: 8px 15px 8px 0;
    }
    
    .logo-block {
        padding: 30px 15px;
        max-height: 55px;
    }
    
    .logo-block h1 {
        font-size: 20px;
    }
    
    .logo-block p {
        font-size: 11px;
    }
    
    .nav {
        gap: 8px;
    }
    
    .nav-board-img {
        width: 100px;
    }
    
    .nav-button {
        font-size: 13px;
    }
    
    .info-board {
        padding: 30px 20px;
        margin: 30px auto 15px;
        width: 90%;
        border-radius: 20px;
    }
    
    .info-board-header {
        padding: 25px 20px;
        margin-bottom: 30px;
    }
    
    .info-board-header h2 {
        font-size: 36px;
    }
    
    .subtitle {
        font-size: 12px;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .info-card {
        min-height: 260px;
    }
    
    .card-front h3,
    .card-back h3 {
        font-size: 20px;
    }
    
    .card-front p,
    .card-back p {
        font-size: 14px;
    }
}

/* iPhone and Small Phone Responsiveness */
@media (max-width: 480px) {
    body {
        gap: 8px;
        overflow-x: hidden;
    }
    
    header {
        height: auto;
        min-height: 60px;
        padding: 5px 8px 5px 0;
    }
    
    .header-board {
        gap: 8px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .logo-block {
        padding: 20px 12px;
        max-height: 50px;
        flex-shrink: 0;
    }
    
    .logo-block h1 {
        font-size: 16px;
    }
    
    .logo-block p {
        font-size: 9px;
    }
    
    .nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 4px;
        max-width: 60%;
    }
    
    .nav-board-img {
        width: 70px;
    }
    
    .nav-button {
        font-size: 10px;
    }
    
    .info-board {
        padding: 20px 15px;
        margin: 20px auto 10px;
        width: 95%;
        border-radius: 15px;
    }
    
    .info-board-header {
        padding: 20px 15px;
        margin-bottom: 20px;
        border-radius: 12px;
    }
    
    .info-board-header h2 {
        font-size: 28px;
        margin-bottom: 5px;
    }
    
    .subtitle {
        font-size: 11px;
        display: block;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .info-card {
        min-height: 220px;
        border-radius: 15px;
    }
    
    .info-card::before {
        top: 12px;
        width: 30px;
        height: 16px;
    }
    
    .card-front,
    .card-back {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .card-front h3,
    .card-back h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .card-front p,
    .card-back p {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .card-footer {
        font-size: 12px;
        margin-top: 15px;
        padding-top: 12px;
    }
}