/* #region base */

/* Hide scrollbar for a cleaner look */
/* Chrome, Edge, and Safari */
html {
    overflow: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE & Edge */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

body {
    background-color: #181a20; /* Default dark mode background */
    font-family: K2D; /* Apply K2D font */
    margin: 0;
    color: white; /* Default text color */
    transition-duration: 0.2s; /* Smooth transition for theme changes */
}

body section {
    padding-left: 3vb; /* Add padding to sections */
}

/* Light mode styles */
.lightmode {
    background-color: rgb(248, 250, 252);  /* Light gray background for light mode */
    color: #181a20; /* Dark text color for light mode */
}
/* #endregion base */

/* #region topnav */
/* Styles for the top navigation bar */
.topnav {
    transition-duration: 0.2s; /* Smooth transition for hover effects */
    display: flex; /* Flexbox layout for navigation items */
    background-color: rgba(30, 30, 35, 0.95); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Add blur effect for a modern look */
    align-items: center; /* Center items vertically */
    position: fixed; /* Fix navigation bar at the top */
    z-index: 999; /* Ensure it stays above other elements */
    justify-content: center; /* Center items horizontally */
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.3); /* Add subtle shadow */
    top: 0;
    width: 100%;
    padding: 8px 0; /* Add padding for spacing */
}

.topnav a {
    color: #e2e8f0;
    text-align: center;
    padding: 12px 20px;
    height: auto;
    align-content: center;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0 4px;
}

.topnav a:hover {
    background-color: rgba(99, 102, 241, 0.2);
    color: #a78bfa;
    transform: translateY(-1px);
}

.topnav a.current {
    background-color: rgba(99, 102, 241, 0.3);
    color: #c4b5fd;
}

.topnav a svg {
    overflow: visible;
    filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.topnav a svg path {
    fill: #e2e8f0;
    stroke: none;
    transition: fill 0.3s ease;
}

.topnav a:hover svg path {
    fill: #a78bfa;
}

.topnav a.current svg path {
    fill: #c4b5fd;
}

/* #region topnav lightmode */
.lightmode .topnav {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

.lightmode .topnav a {
    color: #2c3e50;
}

.lightmode .topnav a:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.lightmode .topnav a.current {
    background-color: rgba(52, 152, 219, 0.15);
    color: #2980b9;
}

.lightmode .topnav a.current.duck {
    background-color: rgba(228, 179, 16, 0.284);
    color: #2980b9;
}

.lightmode .topnav a svg {
    filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.1));
}

.lightmode .topnav a svg path {
    fill: #2c3e50;
}

.lightmode .topnav a:hover svg path {
    fill: #3498db;
}

.lightmode .topnav a.current svg path {
    fill: #b92929;
}
/* #endregion topnav lightmode */
/* #endregion topnav */

/* #region themetogglebutton */
.themetogglebutton {
    transition-duration: 0.2s;
    padding: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    position: absolute;
    right: 20px;
    background-color: #00000000;
    background-image: linear-gradient(to bottom right, #23223a, #4b4c6d);
    color: #e2e8f0;
    font-size: 1.925rem;
    width: 8vh;
    height: 8vh;
    border: none;
    box-shadow: 0px 0px 0px 2px #4b4c6d;
    border-radius: 100%;
}

.lightmode .themetogglebutton {
    background-image: linear-gradient(to top left, #e0e7ff, #93c5fd);
    color: #2c3e50;
    box-shadow: 0px 0px 0px 2px #60a5fa, 0px 0px 5px 3px #bae6fd;
}
/* #endregion themetogglebutton */

/* #region font-size-buttons */
/* Container for the button group */
.topnav .font-size-btn-div {
    position: absolute;
    right: 110px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 0px 0px 2px #4b4c6d;
}

.font-size-btn {
    transition-duration: 0.2s;
    padding: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    background-color: #00000000;
    background-image: linear-gradient(to bottom right, #23223a, #4b4c6d);
    color: #e2e8f0;
    font-size: .9rem;
    font-weight: bold;
    width: 5vh;
    height: 5vh;
    border: none;
    border-radius: 0;
    cursor: pointer;
    position: relative;
}

/* Left button (A-) */
#font-smaller {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

/* Right button (A+) */
#font-bigger {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.font-size-btn:hover {
    background-image: linear-gradient(to bottom right, #2d2c4a, #5b5c7d);
    z-index: 1;
}

/* Light mode styles */
.lightmode .topnav div {
    box-shadow: 0px 0px 0px 2px #60a5fa;
}

.lightmode .font-size-btn {
    background-image: linear-gradient(to top left, #e0e7ff, #93c5fd);
    color: #2c3e50;
}

.lightmode #font-bigger {
    border-left: 1px solid rgba(44, 62, 80, 0.2);
}

.lightmode .font-size-btn:hover {
    background-image: linear-gradient(to top left, #ddd6fe, #818cf8);
}
/* #endregion font-size-buttons */

/* #region tijdVerspiltTimer */
.tijdVerspiltTimer {
    text-align: center;
    display: flex;
    line-height: 1;
    position: absolute;
    left: 20px;
    font-size: 1.25rem;
    color: #888;
}
/* #endregion tijdVerspiltTimer */

/* #region hero-image */
.hero-image {
    transition-duration: 0.2s;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-image: url('../images/hero/Grave_stadhuis.jpg'), url("../images/onerror/img_not_found.png");
    background-size: 100% auto;
    background-position: center -100px;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0 900px hsla(245, 100%, 4%, 0.749),
                inset 0 0 200px 900px rgb(0,0,0,.5);
    max-width: 100%;
    overflow-x: hidden;
}

.hero-image img,
.hero-image svg {
    transition-duration: 0.2s;
    padding-top: 8%;
    margin-bottom: 0;
    width: 8%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 0 10px hsla(0, 0%, 100%, 0.4));
}

.hero-image svg path {
    fill: white;
}

.hero-image h1 {
    margin-top: 0;
    font-size: 5rem;
    color: white;
    width: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    text-align: center;
    font-weight: 300;
    text-shadow: 0 0 10px hsla(0, 0%, 100%, 0.4);
}

.hero-image .subtitle {
    margin-top: 0;
    font-size: 2rem;
    color: #626B7D;
    width: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-weight: 300;
}

.hero-image .quotetext {
    color: white;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    font-size: 1rem;
    width: auto;
    align-self: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    text-shadow: 0 0 10px hsla(0, 0%, 100%, 0.4);
}

.lightmode .hero-image {
    box-shadow: inset 0 0 0 900px hsla(245, 100%, 20%, 0.251);
}

.lightmode .hero-image img,
.lightmode .hero-image svg {
    filter: none;
}

.lightmode .hero-image svg path {
    fill: #b92929;
}

.lightmode .hero-image h1 {
    color: #FFF8E1;
}

.lightmode .hero-image .subtitle {
    color: hsl(220, 12%, 88%);
    font-weight: 900;
    text-decoration: underline;
}

/* Hero helpers */
.hero-centered {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-caption {
    position: absolute;
    left: 0;
    right: 0;
}

.hero-caption-bottom {
    bottom: 0;
}

.hero-caption-center {
    text-align: center;
}
/* #endregion hero-image */

/* #region section-divider */
.section-divider {
    display: flex;
    align-items: center;
    text-align: center;
    padding: 1%;
}

.section-divider::before,
.section-divider::after {
    content: "";
    flex: 1;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
}

.section-divider:not(:empty)::before {
    margin-right: .75em;
}

.section-divider:not(:empty)::after {
    margin-left: .75em;
}

.section-divider svg {
    width: 75%;
    height: auto;
}

.section-divider svg path {
    fill: #c4b5fd;
}

.lightmode .section-divider svg path {
    fill: #b92929;
}

.lightmode .section-divider::before,
.lightmode .section-divider::after {
    border-bottom: 4px solid rgba(228, 179, 16, 0.284);
}
/* #endregion section-divider */

/* #region footer */
footer {
    color: white;
    display: flex;
    flex-direction: row;
    background-color: hsl(225, 14%, 22%);
    border-top: 2px solid rgb(126, 97, 228);
    justify-content: center;
}

footer div {
    margin: 1%;
}

.footer-navigatie {
    width: 12.5%;
}

.footer-navigatie a {
    color: rgb(172, 234, 255);
    text-align: center;
}

.footer-headers {
    text-align: center;
}

a.icon svg {
    fill: rgb(172, 234, 255);
    width: 13v;
    height: auto;
}
/* #endregion footer */

/* #region top_divider */
.top_divider {
    padding-top: 8.5vh;
    padding-bottom: 6vh;
}
/* #endregion top_divider */

/* #region cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    padding: 0 2rem;
    box-sizing: border-box;
}

.card {
    background-color: rgba(30, 30, 35, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.info h2 {
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.info h3 {
    color: #cbd5e0;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info ul {
    margin: 0.5rem 0;
    padding-left: 1.2rem;
}

.info li {
    margin-bottom: 0.3rem;
    color: #a0aec0;
}

/* Light mode voor sport cards */
.lightmode .card {
    background-color: rgba(248, 250, 252);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.lightmode .info h2 {
    color: #2d3748;
}

.lightmode .info h3 {
    color: #4a5568;
}

.lightmode .info li {
    color: #718096;
}
/* #endregion cards */

/* #region tourisme subpage layout */
.flex-section {
    display: flex;
    gap: 2rem;
    padding: 0 3vb;
    align-items: flex-start;
}

.flex-text {
    flex: 1;
    color: inherit;
}

.top-tip {
    margin-top: 1rem;
}

.flex-image {
    flex: 1;
    min-height: 240px;
    border-radius: 12px;
    overflow: hidden;
}

.flex-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* highlight cards section */
.highlight-section {
    padding: 2rem 3vb;
}

.highlight-cards {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* plan visit & map section */
.plan-section {
    padding: 0 3vb 3rem 3vb;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.plan-info {
    flex: 1;
}

.map-container {
    flex: 1;
}

.map-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 0.5rem;
    color: inherit;
}

.map-wrapper iframe {
    width: 100%;
    height: 200px;
    border-radius: 6px;
    border: none;
}

.map-caption {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
/* #endregion tourisme subpage layout */