/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    position: relative;
    z-index: 1;
    opacity: 1;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Default fallback wallpaper */
#wallpaper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('/images/uptothesky.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* This setting applies for larger screens */
    opacity: 0.20;
    z-index: -1;
}

/* Dynamic city-specific wallpaper */
@media screen and (min-width: 0px) {
    #wallpaper.city-specific {
        background-image: url('/images/default.webp');
    }
}

/* Adjust background behavior on smaller devices */
@media screen and (max-width: 768px) {
    #wallpaper {
        background-attachment: scroll; /* Allow the background to scroll on smaller screens */
    }
}
/* Default fallback wallpaper */
#wallpaper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('/images/uptothesky.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* This setting applies for larger screens */
    opacity: 0.20;
    z-index: -1;
}

/* Dynamic city-specific wallpaper */
@media screen and (min-width: 0px) {
    #wallpaper.city-specific {
        background-image: url('/images/default.webp');
    }
}

/* Adjust background behavior on smaller devices */
@media screen and (max-width: 768px) {
    #wallpaper {
        background-attachment: scroll; /* Allow the background to scroll on smaller screens */
    }
}
/* Default fallback wallpaper */
#wallpaper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('/images/uptothesky.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* This setting applies for larger screens */
    opacity: 0.20;
    z-index: -1;
}

/* Dynamic city-specific wallpaper */
@media screen and (min-width: 0px) {
    #wallpaper.city-specific {
        background-image: url('/images/default.webp');
    }
}

/* Adjust background behavior on smaller devices */
@media screen and (max-width: 768px) {
    #wallpaper {
        background-attachment: scroll; /* Allow the background to scroll on smaller screens */
    }
}

/* Floating Header */
.floating-header {
    background-color: transparent;
    padding: 0;
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

/* Center Menu Items */
.menu-container {
    display: flex;
    justify-content: center;
    padding: 0;
    margin-top: 1rem;
}

/* Menu Items */
.menu-item {
    font-size: calc(1rem + 1vw);
    color: blue;
    margin: 0 1.5rem; /* Horizontal spacing between items */
    padding: 1rem 0;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

/* Adjust the spacing for small screens */
@media screen and (max-width: 480px) {
    .menu-item {
        margin: 0 0.5rem; /* Reduce horizontal spacing on smallest screens */
    }
}

/* Adjust the spacing for medium screens */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .menu-item {
        margin: 0 1rem; /* Slightly wider spacing on medium screens */
    }
}


.menu-item:hover {
    color: darkblue;
    text-decoration: underline;
}

/* Top of Page Padding */
top-of-page-pad {
    height: 4rem;
    margin-top: 0;
}

/* Headline Class for Title */
.headline {
    font-size: 1.8rem; /* Larger default size for desktop */
    margin-top: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Description */
.description {
    font-style: italic;
    margin-top: 4ch;
    margin-bottom: 5ch;
    padding: 0.5rem;
    width: 80%;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
}

/* Link Table Container */
.link-table-container {
    width: 64%;
    margin: 0 auto;
    padding-top: 1rem;
}

/* Grid Container for Link Table */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14ch, 1fr));
    gap: 1ch;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
}

/* Grid Item */
.grid-item {
    text-align: left;
    white-space: nowrap;
    padding: 10px;
    background-color: transparent;
    border: none;
}

.grid-item a {
    color: blue;
    text-decoration: none;
}

.grid-item a:hover {
    color: darkblue;
}

/* Footer Styles */
footer.ad-placeholder {
    width: 100%;
    background-color: rgba(204, 204, 204, 0.10);
    height: 100px;
    margin-top: 110px;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

footer.ad-placeholder a {
    pointer-events: auto;
    color: blue;
    text-decoration: none;
}

footer.ad-placeholder a:hover {
    text-decoration: underline;
}

/* Responsive Styles */

/* Media query for small phones */
@media screen and (max-width: 480px) {
    .menu-item,
    .headline {
        font-size: 1rem; /* Smaller for small devices */
    }
    .link-table-container {
        width: 100%;
    }
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5ch;
    }
}

/* Media query for medium phones */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .menu-item,
    .headline {
        font-size: 1.2rem; /* Slightly larger for medium phones */
    }
    .link-table-container {
        width: 100%;
    }
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75ch;
    }
}

/* Media query for iPads and computers */
@media screen and (min-width: 769px) {
    .menu-item,
    .headline {
        font-size: 1.8rem; /* Larger size for iPads and computers */
    }
    .link-table-container {
        width: 69%;
    }
    .grid-container {
        grid-template-columns: repeat(5, 1fr);
        gap: 1ch;
    }
}

/* News Styles */
.news-container {
    width: 80%;
    margin: 2rem auto;
}

.news-item {
    margin-bottom: 1.5rem;
}

.news-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.news-item p {
    font-size: 1rem;
    line-height: 1.5;
}

.news-item a {
    color: blue;
    text-decoration: none;
}

.news-item a:hover {
    text-decoration: underline;
}
/* For larger screens and iPads */
.main_link_table {
    width: 69%;
    margin: 0 auto; /* Center the table */
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns by default */
    gap: 20px; /* Spacing between items */
}

/* For medium screens (e.g., tablets in portrait mode) */
@media screen and (max-width: 1024px) {
    .main_link_table {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on medium screens */
    }
}

/* For small screens (e.g., phones) */
@media screen and (max-width: 768px) {
    .main_link_table {
        width: 100%; /* Full width on small screens */
        grid-template-columns: 1fr; /* Single column layout */
    }
}


.main_button {
  width: 13ch;
  padding: 1rem;
  text-align: center;
  font-size: 1rem;
  background-color: #e0e0e0;
  border: 2px solid #ccc;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.main_button.up {
  background-color: #f0f0f0;  /* Button up state */
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.main_button.down {
  background-color: #d0d0d0; /* Button down (pressed) state */
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.4); /* Depressed look */
}

.button-grid {
  display: grid;
  grid-template-columns: 13ch 13ch 13ch;
  gap: 13ch;
  justify-content: center;
}

