@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Noise overlay */
.noise::before {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    content: "";
    opacity: 0.027;
    background: url(https://bigtwistph.github.io/tumblr_widgets/noise.gif);
    z-index: -1;
    pointer-events: none;
}

/* General styles */
body {
    margin: 0;
    font-family: 'IBM Plex Mono', monospace;
    background-color: #1374f2;
    color: white;
    text-align: center;
    cursor: url('https://bigtwistph.github.io/tumblr_widgets/3dwarro.cur'), auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 844px;
    margin: 0 auto;
    padding: 20px;
}

/* Header container with transparent background */
.header-container {
    background-color: transparent;
}

header {
    padding: 20px 0;
    background-color: transparent;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
    margin-bottom: 5px;
    z-index: 1;
}

.default-logo, .hover-logo {
    width: 100%;
    height: auto;
    transition: opacity 0.2s ease-in-out;
}

.hover-logo {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.image-container:hover .hover-logo {
    opacity: 1;
}

.image-container:hover .default-logo {
    opacity: 0;
}

nav {
    margin: 20px 0;
    margin-top: 5px;
    margin-bottom: 40px;
    font-weight: 400;
    font-style: italic;
    z-index: 2;
}

nav a {
    text-decoration: none;
    color: black;
    padding: 10px 20px;
    background-color: white;
    border-radius: 20px;
    margin: 0 10px;
    display: inline-block;
    transition: background-image 0.2s ease;
}

nav a:hover {
    font-weight: 700;
    color: white;
    background-image: url('/logo/gradient.gif');
}

.content {
    border: 2px solid white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    background-color: transparent;
}

.content h1 {
    margin-top: 0;
}

.content img {
    width: 100%;
    height: auto;
    max-width: 400px;
    margin: 20px 0;
}

.content p {
    text-align: left;
    padding: 0 10px;
    line-height: 2;
}

.content .images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    justify-items: center;
}

.content .images img {
    width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}

.content .images img:hover {
    transform: scale(1.08) rotate(2deg);
}

/* News Ticker */
.news-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    background-color: #1374f2;
    color: white;
    font-size: 16px;
    overflow: hidden;
    white-space: nowrap;
    z-index: 100;
}

.news-ticker:hover {
    background-color: white;
}

.news-label {
    background-image: url('/logo/gradient.gif');
    color: white;
    padding: 7px 25px;
    font-size: 18px;
    font-style: italic;
    font-weight: 800;
    flex-shrink: 0;
    z-index: 2;
}

.news-wrapper {
    overflow: hidden;
    flex-grow: 1;
    position: relative;
    display: flex;
}

.news-content {
    font-style: italic;
    display: flex;
    gap: 10px;
    width: max-content;
    animation: scrollNews 60s linear infinite;
}

.news-content:hover {
    animation-play-state: paused;
}

.news-content span {
    display: inline-block;
    white-space: nowrap;
}

.news-content span::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 5px;
    vertical-align: middle;
    background-image: url("https://blob.gifcities.org/gifcities/FLHFF2Q5SKQSBORFAMSB7ZSQXILI5PPH.gif");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.news-content a {
    color: white;
    text-decoration: none;
}

.news-content a:hover {
    text-decoration: underline;
}

.news-ticker:hover .news-content a {
    color: #1374f2;
}


@keyframes scrollNews {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.main-container {
    margin-bottom: 60px;
}

/* Page-specific styles */
.content-wide {
    border: 2px solid white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 1200px;
    background-color: transparent;
}

.image-grid {
    margin-top: 60px;
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 10px;
    grid-row-gap: 120px;
    justify-items: center;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.08) rotate(2deg);
}

.video-container {
    margin-top: 30px;
}

.video-container iframe {
    max-width: 100%;
}

/* Form styles */
input, textarea, select, button {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 16px;
}

.content form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0 auto;
    max-width: 600px;
}

.content form label, .content form input, .content form textarea, .content form select, .content form button {
    width: 100%;
    margin-bottom: 10px;
    font-size: 1rem;
}

.content form input, .content form textarea, .content form select {
    background-color: #1374f2;
    color: white;
    border: 1px solid white;
    border-radius: 2px;
    height: 30px;
    margin-bottom: 40px;
}

.content form textarea {
    height: 100px;
}

.content form button {
    bottom: 20px;
    right: 20px;
    background-color: #1374f2;
    color: white;
    padding: 10px 15px;
    border: 1px solid white;
    border-radius: 20px;
    cursor: pointer;
}

.content form button:hover {
    color: black;
    background-color: white;
}

.top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1374f2;
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: none;
    z-index: 10;
}

.top:hover {
    color: black;
    background-color: white;
}

.ctclnk:link, .ctclnk:visited {
    color: white;
    font-weight: 700;
    text-decoration: none;
}

.ctclnk:hover {
    text-decoration: underline;
}

#site-header .container {
    margin-bottom: 0;
    padding-bottom: 0;
}

.container.main-container {
    margin-top: -20px;
    padding-top: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav a {
        font-size: 14px;
        padding: 8px 15px;
        margin: 0 2px;
    }

    .content, .content-wide {
        margin: 20px 10px;
        padding: 15px;
    }

    .content .images {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .content .images img {
        width: 100%;
        max-width: 150px;
    }

    .image-container {
        max-width: 400px;
        margin: 0 auto;
    }

    .news-ticker {
        font-size: 14px;
    }
    
    .news-label {
        font-size: 16px;
        padding: 8px 12px;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
        grid-row-gap: 30px;
    }
    
    .container.main-container {
        margin-top: -10px;
    }
    
    .content form label, .content form input, .content form textarea, .content form select, .content form button {
        font-size: 0.9rem;
    }
    
    .video-container iframe {
        height: 200px;
    }
}

/* Modal System - Updated Version */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    position: relative;
    background-color: #1374f2; 
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10000;
    margin-top: 20px; /* Added top margin */
}

/* Custom scrollbar for modal */
.modal-container::-webkit-scrollbar {
    width: 8px;
}

.modal-container::-webkit-scrollbar-track {
    background: #0a2d6b;
    border-radius: 4px;
}

.modal-container::-webkit-scrollbar-thumb {
    background: #1a5fcf;
    border-radius: 4px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent; /* Removed circle background */
    border: none;
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.modal-close:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.close-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.modal-content-wrapper {
    padding: 40px 30px 30px;
    padding-top: 60px; /* Added more top padding to accommodate close button */
}

/* Video takes full width at top */
.modal-video-col {
    width: 100%;
    margin-bottom: 30px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Content below video */
.modal-info-col {
    color: #fff;
}

.modal-title {
    font-size: 28px;
    margin-bottom: 10px;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

.modal-runtime {
    font-size: 14px;
    color: #cccccc;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.modal-description {
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 16px;
    color: #e0e0e0;
    text-align: left;
}

.modal-description p {
    text-align: left;
    margin-bottom: 15px;
}

.modal-cast-crew {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.modal-section {
    text-align: center;
}

.modal-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: white; /* Changed from yellow to white */
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid white; /* Added white bottom bar */
    display: inline-block;
    letter-spacing: 1px;
}

.modal-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center; /* Center align the list items */
}

.modal-section ul li {
    margin-bottom: 8px;
    font-size: 16px;
    color: #e0e0e0;
    line-height: 1.4;
    text-align: center; /* Center align each list item */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 85vh;
        margin-top: 10px; /* Smaller margin on mobile */
    }
    
    .modal-content-wrapper {
        padding: 50px 20px 20px;
        padding-top: 50px;
    }
    
    .modal-title {
        font-size: 22px;
    }
    
    .modal-runtime {
        font-size: 12px;
    }
    
    .modal-description {
        font-size: 14px;
    }
    
    .modal-section h3 {
        font-size: 16px;
    }
    
    .modal-section ul li {
        font-size: 13px;
    }
    
    .modal-close {
        top: 10px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
    
    .close-icon {
        width: 20px;
        height: 20px;
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

.gif-turn {
    cursor: pointer;
    display: block;
}