@font-face{
    font-family:aaaink_traps;
    src:url(https://cdn.aaa.org.hk/_assets/fonts/aaa-inktraps.woff2) format("woff2"),url(https://cdn.aaa.org.hk/_assets/fonts/aaa-inktraps.woff) format("woff"),url(https://cdn.aaa.org.hk/_assets/fonts/aaa-inktraps.ttf) format("truetype"),url(https://cdn.aaa.org.hk/_assets/fonts/aaa-inktraps.svg#aaaink_traps) format("svg");
    font-weight:400;
    font-style:normal
}
@font-face{
    font-family:aaadisplay;
    src:url(https://cdn.aaa.org.hk/_assets/fonts/aaa-display.woff2) format("woff2"),url(https://cdn.aaa.org.hk/_assets/fonts/aaa-display.woff) format("woff"),url(https://cdn.aaa.org.hk/_assets/fonts/aaa-display.ttf) format("truetype"),url(https://cdn.aaa.org.hk/_assets/fonts/aaa-display.svg#aaadisplay) format("svg");
    font-weight:400;
    font-style:normal
}
@font-face{
    font-family:avenirnext;
    src:url(fonts/AvenirNextLTPro-Regular.otf);
    font-size: 1em;
    font-style:normal;

}
body {
    margin: 0;
    font-family: avenirnext, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #E6361E; /* Match the red tone from the logo */
}

#menu {
    position: sticky;
    top: 0;
    background: white;
    height: 100px; /* Increased height */
    padding: 0 20px;
    border-bottom: 2px solid #E6361E; /* Add accent color */
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#menu .logo {
    height: 80px; /* Adjust logo size */
}

#menu .controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

#menu select {
    padding: 8px 32px 8px 12px;
    border: 2px solid rgba(233, 93, 79, 0.15); /* Light red border */
    border-radius: 4px;
    font-size: 14px;
    background: white url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23E95D4F' viewBox='0 0 16 16'><path d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat;
    background-position: calc(100% - 8px) center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    color: #333;
    transition: all 0.2s ease;
}

#menu select:hover {
    border-color: #E6361E; /* Darker red when hovered */
}

#menu select:focus {
    border-color: #E6361E;
    outline: none;
    
}

#menu .info-icon {
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight:500;
    color: #E6361E;
    cursor: pointer;
    border: 2px solid #E6361E;
    border-radius: 50%;
    background: #fff;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

#menu .info-icon:hover {
    opacity: 0.7;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Darkened overlay */
    z-index: 1000;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
    backdrop-filter: blur(3px);
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    line-height: 1.6;
    font-size: 14px;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 85vh; /* Limit height to 85% of viewport height */
    overflow-y: auto; /* Enable scrolling if content is too tall */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #E6361E;
    font-weight: bold;
    font-family:aaaink_traps;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    color: #bbb;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #E6361E;
}

#loading {
    position: fixed;
    top: 50%; /* Center vertically */
    left: 50%;
    transform: translate(-50%, -50%); /* Center both horizontally and vertically */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-align: center;
}

#loading .progress-bar {
    position: relative;
    width: 100px;
    height: 10px;
    background: #e0e0e0;
    overflow: hidden;
    border-radius: 5px;
    margin-left: 10px;
}

#loading .progress-bar .progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #E6361E;
    transition: width 0.3s;
}

#gallery {
    display: flex;
    gap: 10px;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out; /* Smooth transition for loading */
}

.column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-item {
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid #e0e0e0; /* Light grey border */
    border-radius: 3px; /* Slight rounding for polished look */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.gallery-item:hover {
    transform: scale(1.03); /* Slight hover effect */
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: opacity 0.3s ease-in-out; /* Smooth hover effect */
}

.gallery-item:hover img {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .column {
        flex: 0 0 calc(25% - 10px); /* Each column is 25% of the container width, minus gap */
    }
    .modal-content {
        width: 70%; /* Adjust width to 80% for mobile screens */
    }

    #menu {
        flex-direction: column; /* Stack elements vertically */
        align-items: flex-start; /* Align items to the left */
        height: auto; /* Adjust height dynamically */
    }

    #menu .logo {
        position: relative; /* Allow positioning of the icon relative to the logo */
        height: 50px; /* Adjust size for mobile */
        margin-bottom: 10px; /* Add spacing below the logo */
    }

    #menu .info-icon {
        position: absolute;
        right: 10px; /* Position icon near the right edge */
        top: 10px; /* Align icon with the top of the menu */
        width: 24px; /* Increase size slightly for better visibility */
        height: 24px;
        font-size: 14px;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1001; /* Ensure icon appears above other elements */
        background: #fff; /* Add a background for better contrast */
        border-radius: 50%; /* Make it circular */
        border: 2px solid #E6361E; /* Match your theme */
    }

    #menu .controls {
        width: 100%; /* Dropdowns take full width */
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }

    #menu select {
        width: calc(50% - 10px); /* Dropdowns are side-by-side */
        font-size: 14px;
    }
            
}

@media (max-width: 480px) {
    .column {
        flex: 0 0 calc(25% - 10px); /* Same for smaller screens */
    }

    #menu {
        padding: 5px;
    }

    #menu .info-icon {
        top: 5px; /* Adjust position for smaller screens */
        right: 10px;
    }

    #menu select {
        width: 100%; /* Full-width dropdowns for smaller screens */
        margin-bottom: 10px;
    }
          
}