/*
**	File:		theme.css
**	Purpose:	Contains styles for the site
**	Theme:		theme
**	Author:		toycardesign.com
**  
*/


/* ------------------ General ------------------ */
/* --- CSS VARIABLES & RESET --- */
:root {
    --christmas-red: #a52714;
    --christmas-green: #165b33;
    --gold: #d7c14f;
    --snow: #f8f8ff;
    --text-dark: #333;
    --bg-overlay: rgba(255, 255, 255, 0.98);
}

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

body {
    font-family: 'Georgia', serif;
    background-color: var(--christmas-red);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

p {
    margin-bottom: 1rem;
}

/* --- SNOW ANIMATION --- */
.snowflake {
    color: #fff;
    font-size: 3em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px #000;
    position: fixed;
    top: -10%;
    z-index: 9999;
    user-select: none;
    cursor: default;
    pointer-events: none;
    animation-name: snowflakes-fall, snowflakes-shake;
    animation-duration: 10s, 3s;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-play-state: running, running;
}
@keyframes snowflakes-fall { 0% { top: -10%; } 100% { top: 100%; } }
@keyframes snowflakes-shake { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(80px); } }
.snowflake:nth-of-type(0) { left: 1%; animation-delay: 0s, 0s; }
.snowflake:nth-of-type(1) { left: 10%; animation-delay: 1s, 1s; }
.snowflake:nth-of-type(2) { left: 20%; animation-delay: 6s, .5s; }
.snowflake:nth-of-type(3) { left: 30%; animation-delay: 4s, 2s; }
.snowflake:nth-of-type(4) { left: 40%; animation-delay: 2s, 2s; }
.snowflake:nth-of-type(5) { left: 50%; animation-delay: 8s, 3s; }
.snowflake:nth-of-type(6) { left: 60%; animation-delay: 6s, 2s; }
.snowflake:nth-of-type(7) { left: 70%; animation-delay: 2.5s, 1s; }
.snowflake:nth-of-type(8) { left: 80%; animation-delay: 1s, 0s; }
.snowflake:nth-of-type(9) { left: 90%; animation-delay: 3s, 1.5s; }

/* --- NAVIGATION --- */
.navbar {
    position: sticky;
    top: 0;
    background-color: var(--christmas-green);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    flex-wrap: wrap;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: var(--christmas-red);
    border: none;
    cursor: pointer;
    padding: 1rem;
    gap: 6px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 30px;
    right: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 1001;
}

.hamburger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--snow);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
    position: absolute;
}

.hamburger span:nth-child(1) {
    top: 19px;
}

.hamburger span:nth-child(2) {
    top: 26px;
}

.hamburger span:nth-child(3) {
    top: 33px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 27px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 27px;
}

.navbar-menu {
    display: flex;
    gap: 0;
    width: 100%;
    justify-content: center;
}

.navbar a {
    color: var(--snow);
    text-decoration: none;
    padding: 1rem 1.5rem;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar a:hover {
    background-color: var(--christmas-red);
    border-bottom-color: var(--gold);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .navbar-menu {
        display: none;
        flex-direction: column;
        width: 100vw;
        position: fixed;
        bottom: 0;
        left: 0;
        gap: 0;
        background-color: var(--christmas-green);
        z-index: 1000;
        overflow-y: auto;
        max-height: 80vh;
        transform: translateY(100%);
        transition: transform 0.3s ease-out;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.3);
    }
    
    .navbar-menu.active {
        display: flex;
        transform: translateY(0);
    }
    
    .navbar a {
        padding: 1rem 1.5rem;
        font-size: 1.2rem;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(248, 248, 255, 0.2);
    }
}

@media (max-width: 480px) {
    .hamburger {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 15px;
    }
    
    .hamburger span {
        width: 22px;
    }
    
    .navbar-menu {
        background-color: var(--christmas-red);
    }
    
    .navbar a {
        padding: 0.9rem 1.2rem;
        font-size: 1.65rem;
    }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* --- LAYOUT --- */
.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

header {
    text-align: center;
    color: var(--snow);
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--christmas-green), #0f3d22);
    border-bottom: 5px solid var(--gold);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

header p {
    font-family: "Festive", cursive;
    font-weight: 400;
    font-size: 1.85rem;
    font-style: normal;
}

.card {
    background: var(--bg-overlay);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

h1, h2, h3 {
    font-family: "Mountains of Christmas", serif;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
}

h2 {
    color: var(--christmas-green);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- SECTIONS --- */
.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.date-box {
    background-color: #f0f8ff;
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: 8px;
}

.date-box h3 {
    color: var(--christmas-red);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.map-container {
    position: relative;
    width: 100%;
    background-color: #ddd;
    border: 4px solid var(--christmas-green);
    border-radius: 4px;
}

.route-info {
    margin-top: 1rem;
    background-color: #e8f5e9;
    padding: 1rem;
    border-left: 5px solid var(--christmas-green);
}

.tips ul {
    list-style-type: none;
    padding-left: 0;
}

.tips li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23c41e3a"><path d="M12 2L15 9L22 9L16 14L18 21L12 17L6 21L8 14L2 9L9 9L12 2Z"/></svg>') no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 0.8rem;
}

footer {
    text-align: center;
    color: var(--snow);
    padding: 2rem;
    font-size: 0.9rem;
}

footer a {
    color: var(--gold);
    text-decoration: none;
}

/* --- BUTTON STYLES --- */
.map-nav-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.nav-button {
    padding: 10px 20px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

.nav-button:hover {
    opacity: 0.9;
}

.nav-button-green {
    background-color: var(--christmas-green);
}

.nav-button-red {
    background-color: var(--christmas-red);
}

.nav-button-gold {
    background-color: var(--gold);
    color: var(--text-dark);
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    header h1 { font-size: 2rem; }
}