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

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0e27;
    color: #e0e0e0;
}

.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.landing-header {
    text-align: center;
    margin-bottom: 60px;
}

.landing-header h1 {
    font-size: 3em;
    color: #4a9eff;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(74, 158, 255, 0.3);
}

.landing-header p {
    font-size: 1.2em;
    color: #b8c5d6;
}

.options-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    width: 100%;
}

.option-card {
    background: linear-gradient(145deg, #1a1f3a, #2a3f5f);
    border: 2px solid #4a9eff;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(74, 158, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.3);
    border-color: #7ec8ff;
}

.option-card:hover::before {
    opacity: 1;
}

.option-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.option-card h2 {
    color: #4a9eff;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.option-card p {
    color: #b8c5d6;
    line-height: 1.6;
}

.slideshow-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
}

.slideshow-container.active {
    display: block;
}

#slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#slide {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

.arrow-btn, .play-pause-btn, .back-btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    transition: background .12s, transform .06s;
    border: none;
    padding: 0;
}

.arrow-btn {
    top: 90%;
    transform: translateY(-50%);
    width: calc(8vh + 8px);
    height: calc(8vh + 8px);
}

.arrow-btn:active {
    transform: translateY(-50%) scale(.98);
    background: rgba(0, 0, 0, 0.4);
}

.arrow-left {
    left: calc(1.5vw + 2px);
}

.arrow-right {
    right: calc(1.5vw + 2px);
}

.arrow-btn img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.play-pause-btn {
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(5vh + 5px);
    height: calc(5vh + 5px);
}

.play-pause-btn:active {
    transform: translate(-50%, -50%) scale(.98);
    background: rgba(0, 0, 0, 0.4);
}

.play-pause-btn svg {
    width: 50%;
    height: 50%;
    fill: white;
}

.back-btn {
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(74, 158, 255, 0.3);
    border: 2px solid #4a9eff;
}

.back-btn:hover {
    background: rgba(74, 158, 255, 0.5);
}

.back-btn svg {
    width: 50%;
    height: 50%;
    fill: white;
}

.gallery-container {
    display: none;
    min-height: 100vh;
    padding: 20px;
}

.gallery-container.active {
    display: block;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #1a1f3a;
    border-radius: 10px;
}

.gallery-header h1 {
    color: #4a9eff;
    font-size: 2em;
}

/* Search Bar Styles */
.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
    margin: 0 30px;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-container i {
    position: absolute;
    left: 14px;
    color: #7ec8ff;
    font-size: 1em;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: #0a0e27;
    border: 2px solid #2a3f5f;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 15px rgba(74, 158, 255, 0.2);
}

.search-input::placeholder {
    color: #6a7a8a;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: #1a1f3a;
    border: 2px solid #4a9eff;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 500;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.search-dropdown.active {
    display: block;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #2a3f5f;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover,
.search-dropdown-item.highlighted {
    background: #2a3f5f;
}

.search-dropdown-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 14px;
    background: #0a0e27;
}

.search-dropdown-item-info {
    flex: 1;
}

.search-dropdown-item-name {
    color: #4a9eff;
    font-weight: 600;
    font-size: 1em;
    margin-bottom: 2px;
}

.search-dropdown-item-id {
    color: #8a9aaa;
    font-size: 0.85em;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #8a9aaa;
    font-style: italic;
}

.gallery-back-btn {
    display: inline-flex; /* Aligns the icon and text nicely */
    align-items: center; /* Centers items vertically */
    background: #4a9eff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-back-btn:hover {
    background: #7ec8ff;
    transform: translateY(-2px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    background: #1a1f3a;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.gallery-item img {
    width: 100%;
    object-fit: contain;
    display: block;
    background: #0a0e27;
    flex: 1; /* Image takes available space */
}

.gallery-item-info {
    padding: 5px;
    margin-top: auto; /* Pushes info to bottom */
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: #4a9eff;
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.3);
}

.gallery-item-info h3 {
    color: #4a9eff;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.gallery-item-info p {
    color: #b8c5d6;
    font-size: 0.9em;
}

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

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
}

.modal-content {
    background: #1a1f3a;
    border-radius: 0;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 0 0;
}

.modal-header h2 {
    color: #4a9eff;
    font-size: 1.8em;
    margin: 0;
    flex: 1;
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.4em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(74, 158, 255, 0.5);
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 0;
    display: block;
    background: #000;
}

.modal-info {
    padding: 0 30px 20px 30px;
}

.info-section {
    margin-bottom: 10px;
}

.info-section:first-child {
    margin-top: 15px;
}

.info-section h3 {
    color: #7ec8ff;
    font-size: 1.15em;
    margin-bottom: 0;
    display: inline;
}

.info-section p {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 1em;
    display: inline;
}

.info-section.fun-facts h3 {
    display: block;
    margin-bottom: 8px;
}

.info-section.fun-facts ul {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 1em;
    list-style-position: inside;
    padding-left: 20px;
}

.info-section.fun-facts li {
    margin-bottom: 5px;
}

.no-info {
    color: #ffd700;
    font-style: italic;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .landing-header h1 {
        font-size: 2em;
    }

    .options-container {
        grid-template-columns: 1fr;
    }

    .gallery-header {
        flex-wrap: wrap;
        gap: 15px;
        position: relative;
    }

    .gallery-header h1 {
        width: 100%;
        text-align: center;
        font-size: 1.5em;
    }

    .search-wrapper {
        order: 3;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .gallery-back-btn {
        order: 2;
        position: absolute;
        top: 20px;
        right: 20px;
        padding: 10px 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .modal-content {
        margin: 0;
    }
}
