@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=UnifrakturMaguntia&display=swap');

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html,
body {
    font-family: 'Lexend', sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

h2 {
    margin: 35px 0;
    font-size: 2rem;
}

hr {
    border: 0;
    width: 100%;
    height: 5px;
    background: #000000;
    margin: 20px 0;
    border-radius: 5px;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    max-width: 100%;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
}

.hero-text {
    color: white;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    z-index: 1;
}

.hero-text h1 {
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 3.5rem;
    margin-bottom: 10px;
    background: red;
    width: fit-content;
    padding: 20px;
    margin: 7% auto;
    border: 5px solid darkred;
}

.hero-text a {
    color: rgb(255, 255, 255);
    text-decoration: underline;
    margin-top: 20px;
    display: inline-block;
    transition: color 0.3s ease;
}

.hero-text a:hover {
    color: rgb(99, 172, 255);
}


.hero-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    position: absolute;
    z-index: -1;
}

/* content */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    width: 100%;
    margin: 20px 0;
}

#introduction hr {
    border: 0;
    height: 1px;
    background: #ccc;
    margin: 20px 0;
}

.text-and-image {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 1.1rem;
}

.text-and-image img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.text-and-image img:hover {
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.text-and-image p {
    flex: 1;
    line-height: 1.6;
}

/* status cards */
.current-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.status-cards {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.status-card {
    background: rgb(238, 238, 238);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 35px;
    text-align: center;
    transition: transform 0.3s ease;
    width: 400px;
    height: 350px;
    color: black;
}

.status-card:hover {
    transform: translateY(-10px);
}

.status-card h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.status-card img {
    width: 150px;
    height: 150px;
}

/* navbar stuff */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: red;
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.navbar-brand a {
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.navbar-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.navbar-item {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.navbar-item:hover::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* trip planner */
.trip-planner {
    margin: 50px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.trip-planner h2 {
    text-align: center;
    color: #e74c3c;
    margin: 15px;
}

.planner-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.planner-form {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group select,
.form-group input[type="range"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

#budget-display {
    font-weight: bold;
    color: #e74c3c;
    margin-left: 10px;
}

.plan-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
    font-size: 14px;
}

.plan-btn:not(.secondary) {
    background: #e74c3c;
    color: white;
}

.plan-btn:not(.secondary):hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.plan-btn.secondary {
    background: #95a5a6;
    color: white;
}

.plan-btn.secondary:hover {
    background: #7f8c8d;
}

.planner-results {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-height: 300px;
}

.results-placeholder {
    text-align: center;
    color: #7f8c8d;
    margin-top: 50px;
}

#plan-warning {
    color: #e74c3c;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
}

.trip-plan {
    animation: fadeIn 0.5s ease-in;
}

.trip-plan h3 {
    color: #e74c3c;
    margin-bottom: 15px;
}

.day-plan {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.day-plan h4 {
    color: #e74c3c;
    margin-bottom: 10px;
}

.activity {
    margin: 8px 0;
    padding: 8px 12px;
    background: white;
    border-radius: 5px;
    font-size: 14px;
}

/* fun facts */
@keyframes factReveal {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fun-fact-generator {
    margin: 50px 0;
    padding: 30px;
    background: rgb(238, 238, 238);
    border-radius: 15px;
    color: rgb(0, 0, 0);
    text-align: center;
}

.fun-fact-container {
    max-width: 800px;
    margin: 0 auto;
}

.fun-fact-btn {
    background: white;
    color: #55adff;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


.fun-fact-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.fun-fact-display.loading {
    opacity: 0.6;
    transform: scale(0.98);
}

.fun-fact-display.fact-revealed {
    animation: factReveal 0.5s ease-out;
}

#fun-fact-text {
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
    font-weight: 400;
}

/* footer */
footer {
    background: red;
    color: white;
    text-align: center;
    padding: 20px;
    position: relative;
    margin-top: 100px;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

footer ul li {
    display: inline;
}

footer ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer-buildings {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('/assets/buildings.png') repeat-x center center;
    background-size: auto 100%;
    z-index: 1;
}

/* responsive things */
@media (max-width: 768px) {
    .planner-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .checkbox-group {
        flex-direction: column;
    }

    .navbar-menu,
    .fun-fact-generator {
        padding: 20px;
    }

    .navbar-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-item {
        font-size: 1.2rem;
        margin: 20px 0;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

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

    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .fun-fact-generator {
        margin: 30px 0;
    }

    .fun-fact-generator h2 {
        font-size: 1.8rem;
    }

    .fun-fact-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .fun-fact-display {
        padding: 20px;
        min-height: 100px;
    }

    #fun-fact-text {
        font-size: 1rem;
    }
}