body {
    font-family: 'Pompiere', sans-serif;
    background-color: #243645;
    color: #ffffff;
    text-align: center;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    width: 100%;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Sticky, translucent header */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    background-color: rgba(36, 54, 69, 0.8); /* reduced opacity for balance */
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.fade-in {
    animation: logoFadeIn 1s ease-in-out;
}

.logo {
    height: 100px;
    transition: height 0.3s ease, margin 0.3s ease;
    display: block;
    margin-top: auto;
    margin-bottom: auto;
}

a:link, a:active, a:visited {
    color: #ffffff;
    background-color: transparent;
    text-decoration: none;
}

a:hover {
    color: #B9A35B;
}

.header-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 20px;
    row-gap: 0;
    font-size: 26px;
    color: #ffffff;
    min-width: auto;
    flex-grow: 1;
    max-width: 500px
}

@media (max-width: 600px) { /* Adjust breakpoint as needed */
    .header-links {
        flex-direction: column; /* Stacks menu items vertically */
        align-items: flex-end; /* Right-aligns the stacked items */
    }
}

.cta {
    font-size: 35px;
    margin: 50px;
    margin-top: 40px;
    margin-bottom: 75px;
    text-align: center;
}

.app-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Allows flexibility */
    max-width: 900px; /* Allows all six icons to fit in one row */
    gap: 50px; /* Adjust spacing as needed */
    justify-content: center;
    margin: 0 auto;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Flexible column sizing */
    grid-auto-rows: 150px; /* Adjusted to ensure consistent spacing */
    gap: 5px; /* Space between images */
    max-width: 100vw; /* Keeps images within browser window width */
    margin: auto;
    padding: 10px;
}

/* Define different image sizes */
.photo-item {
    width: 100%;
    height: auto; /* Adjusted to maintain aspect ratio */
    object-fit: contain; /* Ensures the full image is visible without cropping */
}

.photo-item:nth-child(2n) { grid-column: span 2; grid-row: span 1; } /* Wider images */
.photo-item:nth-child(3n) { grid-column: span 1; grid-row: span 2; } /* Taller images */
.photo-item:nth-child(5n) { grid-column: span 2; grid-row: span 2; } /* Large images */

@media (max-width: 900px) {
    .app-container {
        grid-template-columns: repeat(3, minmax(100px, 1fr));
    }
}

@media (max-width: 600px) {
    .app-container {
        grid-template-columns: repeat(2, minmax(100px, 1fr));
    }
}

.app-icon-inactive {
    width: 100px;
    height: 100px;
    transition: transform 0.3s ease;
    animation: pulse 2s infinite ease-in-out;
}

.app-icon {
    width: 100px;
    height: 100px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.app-icon:hover {
    width: 100px;
    height: 100px;
    cursor: pointer;
    transform: scale(1.1);
}

@keyframes pulse {
    0% { opacity: 0.0; }
    50% { opacity: 1; }
    100% { opacity: 0.0; }
}

.buttons {
    font-size: 18px;
    padding: 12px 24px;
    background-color: #2c3339;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    
}

.buttons:hover {
    font-size: 18px;
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 300px;
    margin: 10% auto;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

footer {
    margin-top: auto;
    padding-top: 30px;
    padding-bottom: 50px;
}
