html {
    overflow-y: scroll;
}
:root {
    --primary-color: #2c3e50;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --header-height: 80px;

    /* City Theme Colors */
    --munich-color: #33b4d3;
    --vienna-color: #7dc1a0;
    --dresden-color: #f9e074;
    --enschede-color: #f44336;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
h4 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}


header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 5%;
    height: var(--header-height);
    display: flex;
    align-items: center;
}


.main-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: black;
}

.logo-icon img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}


.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-links a {
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    border: 1px solid #000000;
}

.nav-links a:hover {
    background: none;
    color: rgb(255, 255, 255);
}

/* Home */
.nav-links li:nth-child(1) a:hover {
    background: #000000;
}

/* Munich */
.nav-links li:nth-child(2) a:hover {
    background: #33b4d3;
}

/* Vienna */
.nav-links li:nth-child(3) a:hover {
    background: #7dc1a0;
}

/* Dresden */
.nav-links li:nth-child(4) a:hover {
    background: #f9e074;
}

/* Enschede */
.nav-links li:nth-child(5) a:hover {
    background: #f44336;
}

.nav-links a.active {
    background: black;
    color: white;
}

.nav-links a.activeMunich {
    background: #33b4d3;
    color: white;
}

.nav-links a.activeVienna {
    background: #7dc1a0;
    color: white;
}

.nav-links a.activeDresden {
    background: #f9e074;
    color: white;
}

.nav-links a.activeEnschede {
    background: #f44336;
    color: white;
}

.hero {
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
    padding: 6rem 2rem;
    text-align: center;
    flex-shrink: 0;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.explore-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.3s ease;
}


footer {
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
    padding: 4rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: #666;
    line-height: 1.8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.footer-section a:hover {
    color: #333;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .cities-grid,
    .features {
        grid-template-columns: 1fr;
    }
}

#city-title {
    padding: 1rem;
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
}

#city-title span {
    display: inline;
}



#mapYearSelect {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 150px;
    z-index: 1000;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.756);
    color: #ffffff;
    border: 4px solid #000000ea;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 16px;
}

#mapYearSelect:hover {
    background-color: rgba(0, 0, 0, 0.85);
    border-color: #333333;
    box-shadow: 0 6px 9px rgba(85, 85, 85, 0.707);
}

/* FIXED Fullscreen button styles */
#fullscreen-control-map2 {
    position: absolute;
    top: 10px;
    right: 55px;
    z-index: 900;
}

#fullscreen-toggle {
    cursor: pointer;
    background-color: white;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
    border-radius: 4px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

#fullscreen-toggle .symbol {
    font-size: 18px;
    line-height: 1;
    user-select: none;
}

#fullscreen-toggle:hover {
    background-color: #f4f4f4;
    border-color: rgba(0, 0, 0, 0.3);
}

#fullscreen-toggle:active {
    background-color: #e8e8e8;
}

/* Fullscreen styles for the main container */
main:fullscreen,
main:-webkit-full-screen,
main:-moz-full-screen,
main:-ms-fullscreen {
    width: 100%;
    height: 100%;
    background: white;
}

/* Ensure map container takes full height in fullscreen */
main:fullscreen #mapContainer,
main:-webkit-full-screen #mapContainer,
main:-moz-full-screen #mapContainer,
main:-ms-fullscreen #mapContainer {
    height: 100vh !important;
}

#map1,
#map2 {
    cursor: move !important;
    position: relative;
}

h1 {
    margin: 20px;
}

#citySelect {
    margin-bottom: 10px;
    padding: 5px;
    font-size: 16px;
}

#mapContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60vh;
}

.map {
    flex: 1;
    height: 100%;
    position: relative;
}

.cursor {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 0, 0, 0.293);
    border: 4px solid red;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1000;
    cursor: none;
}

#city-content {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

#city-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
}