/* Google Font Ubuntu */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

/* Basic Reset and Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Main Variables - Change these to customize your story's look */
:root {
    --main-bg-color: #ffffff;
    --text-color: #333333;
    --accent-color: #4a90e2;
    --header-font: 'Arial', sans-serif;
    --body-font: 'Georgia', serif;
}

/* Basic Body Styles */
body {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: background-image 1s ease-in-out;
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--main-bg-color);
    /* background-color: rgba(51, 51, 51, 1); */
    background-color: white;
}

/* Navigation Styles */
.main-content {
    /* max-width: 1200px; */
    margin: 0 auto;
}

.main-content .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(245, 245, 245, 1);
    /* padding: 1rem;
    margin-bottom: 2rem; */
    z-index: 999;
}

.main-nav ul {
    margin-right: 1rem;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 2rem;
    margin-right: 4rem;
}

.main-nav ul li a {
    color: black;
    font-family: 'Chalkduster', fantasy;
    text-decoration: none;
    padding: 0.5rem;
    font-size: clamp(0.9rem, 0.7vw, 100rem);
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #092e6e;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dw-logo {
    width: 100px;
    height: auto;
    margin-left: 4rem;
}

.main-nav .subscribe {
    position: absolute;
    right: 150px;
    width: 250px;
    z-index: 0;
    top: 5.1em;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.subscribe-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    z-index: -10;
    transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out;
}

.main-nav .subscribe::before {
    content: '';
    background-color: rgba(245, 245, 245, 1);
    position: absolute;
    height: 100%;
    width: 100%;
    -webkit-transform: perspective(2px) rotateX(359deg);
    transform: perspective(2px) rotateX(359deg);
    z-index: -1;
    cursor: pointer;
}

.main-nav .subscribe .connect {
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    padding: 10px 20px;
    font-size: 11px;
    transform: translateZ(10px);
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}

.main-nav .subscribe .connect a {
    color: black;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.main-nav .subscribe .connect a:hover {
    color: inherit;
}

#animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1s ease-in-out;
    opacity: 1;
}

/* Home Page */
.hero-content {
    display: flex;
    align-items: flex-start;
    margin-top: 50px;
    padding-bottom: 80px;
}

.trailer {
    margin-left: 5%;
    margin-right: 5%;
    flex: 0 0 560px;
    height: 315px;
    max-width: 100%;
    border: none;
}

.hero-content p {
    flex: 1;
    margin: 0;
    color: white;
    font-size: 16px;
    line-height: 1.5;
    margin-right: 60px;
}

.hero-content .quote {
    font-style: italic;
    margin-bottom: 10px;
    font-size: 19px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 50px;
    font-family: Papyrus;
}

.about-and-characters {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 2rem 5%;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 50px;
}

.history-section {
    flex: 1;
    min-width: 300px;
    margin-top: 80px;
    margin-left: 180px;
    margin-right: 180px;
}

.history-section h2 {
    text-align: center;
    font-size: 30px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.history-section p {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: 400;
}

/* Character Slider */
.characters-container {
    /* width: 29%; */ /* laptop screen */
    width: 375px; /* Computer screen resulation 1920 x 1080 */
    /* max-width: 1200px; */
    max-width: 100%;
    margin: auto;
    margin-right: 100px;
    padding: 0rem 1rem;
    text-align: center;
    border-radius: 12px;
}

.characters-container h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.character-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 1rem;
    padding: 1rem 0;
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.character-slider::-webkit-scrollbar {
    display: none;
}

.nav-btn {
    background-color: white;
    font-size: 2rem;
    padding: 0.3rem 0.6rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 5;
    border: none;
    outline: none;
}

.nav-btn:active {
    color: white;
}

.character-item {
    flex: 0 0 250px;
    background-color: #f5f5f5;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 1rem;
    text-align: center;
    scroll-snap-align: start;
}

.character-item img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.character-item h3 {
    font-size: 1.25rem;
    margin: 0.5rem 0 0.3rem;
}

.character-item p {
    font-size: 0.9rem;
    line-height: 1.3;
    color: #333;
    padding: 0 0.3rem;
    max-height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.character-item {
    scroll-snap-align: start;
}

/* Voice Actor Information */
.voice-actor-title {
    background-color: inherit;
    text-align: center;
    padding-bottom: 1rem;
    text-transform: uppercase;
}

.voice-actor-container {
    background-color: inherit;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.voice-actor-container .item {
    background-color: white;
    padding: 10px;
    border-radius:  8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.voice-actor-container .item .image-row {
    display: flex;
    gap: 0;
}

.voice-actor-container .item .image-row img {
    width: 130px;
    height: 148px;
    object-fit: cover;
}

.voice-actor-container .item .audio-row {
    margin-top: 0;
}

.voice-actor-container .item .audio-row audio {
    width: 100%;
    max-width: 250px;
    height: 20px;
    border-radius: 5px;
}

.voice-actor-container .item .name-row {
    display: flex;
    justify-content: space-between;
    margin-left: 10px;
    margin-right: 10px;
    font-weight: bold;
    margin-top: 2.5px;
}

.voice-actor-container .item .label-row {
    font-style: italic;
    margin-top: 10px;
}

/* Music Container */
.music-container {
    padding-top: 20px;
    background-color: white;
    font-family: 'Ubuntu', sans-serif;
    justify-items: center;
    min-height: 80vh;
    align-items: center;
}

.music-container .music-title {
    margin-top: 10px;
    text-align: center;
    flex-direction: column;
    font-size: 35px;
}

.music-container .music-player {
    margin-top: 25px;
    background-color: #76736e;
    background-image: radial-gradient(ellipse at center, #76736e 100%, #323230 100%);
    height: 500px;
    width: 400px;
    border-radius: 20px;
    box-shadow: 0 8px 10px rgba(0 , 0, 0, 0.3);
    transition: all 0.5s ease;
}

.music-container .music-player:hover {
    box-shadow: 0 9px 15px rgba(0 , 0, 0, 0.3);
}

.music-container .music-player h2 {
    font-size: 25px;
    text-align: center;
    font-weight: 500;
    margin: 10px 0 0;
    color: white;
}

.music-container .music-player h3 {
    font-size: 18px;
    text-align: center;
    font-weight: 500;
    margin: 10px 0 0;
    color: white;
}

.music-container .music-player .player-img {
    width: 300px;
    height: 300px;
    position: relative;
    padding-top: 15px;
    left: 50px;
}

.music-container .music-player .player-img img {
    object-fit: cover;
    border-radius: 20px;
    height: 100%;
    width: 100%;
    opacity: 1;
    box-shadow: 0 5px 30px 5px rgba(235, 235, 235, 0.5);
}

.music-container .music-player .player-img:hover img {
    box-shadow: 0 5px 30px 5px rgba(255, 255, 255, 0.8);
}

.music-container .music-player .player-img:hover img.active {
    width: 100%;
    height: 100%;
    transition: all 0.5s;
    opacity: 1;
}

.music-container .music-player .player-progress {
    background-color:  rgba(232, 236, 241, 1);
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    margin: 40px 20px 35px;
    height: 6px;
    width: 90%;
}

.music-container .music-player .player-progress .progress {
    background-color: #212121;
    border-radius: 5px;
    height: 100%;
    width: 0%;
    transition: width 0.1s linear;
}

.music-container .music-player .player-progress .music-duration {
    color: white;
    position: relative;
    top: -25px;
    display: flex;
    justify-content: space-between;
}

.music-container .music-player .player-controls {
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: -20px;
}

.music-container .music-player .player-controls .fa-solid {
    cursor: pointer;
}

.music-container .music-player .player-controls .fa-solid:active {
    color: white;
}

.music-container .music-player .player-controls .play-button {
    font-size: 30px;
}

/* Martial Arts */
.martial-container {
    background-color: inherit;
    padding: 40px;
    text-align: center;
}

.martial-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.martial-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.martial-container .martial-cards .card {
    background-color: #f7f7f7;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 220px;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s;
}

.martial-container .martial-cards .card:hover {
    transform: translateY(-5px);
}

.martial-container .martial-cards .card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.martial-container .martial-cards .card h3 {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #222;
}

.martial-container .martial-cards .card p {
    font-size: 0.95rem;
    color: #555;
}

/* Video Game */
.video-game-container {
    padding: 60px 20px;
    background-color: #fff3e0;
    text-align: center;
}

.video-game-container h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #d35400;
}

.game-cards {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.game-card {
    display: flex;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: scale(1.02);
}

.game-card img {
    width: 250px;
    height: auto;
    object-fit: cover;
}

.game-info {
    padding: 20px;
    text-align: left;
    flex: 1;
}

.game-info h3 {
    margin-top: 0;
    font-size: 1.8em;
    color: #e67e22;
}

.game-info .description {
    font-style: italic;
    margin: 10px 0 20px;
    color: #555;
}

.game-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.game-info li {
    margin-bottom: 8px;
    font-size: 1em;
    color: #333;
}

.game-info li strong {
    color: #444;
}

/* Cultural Background */
.cultural-container {
    padding: 60px 20px;
    background: #fefefe;
    text-align: center;
}

.cultural-container h2 {
    font-size: 2.5em;
    color: #2e7d32;
    margin-bottom: 40px;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.culture-box {
    background-color: #f1f8e9;
    border-left: 6px solid #81c784;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s;
}

.culture-box:hover {
    transform: translateY(-5px);
}

.culture-box h3 {
    font-size: 1.5em;
    color: #388e3c;
    margin-bottom: 10px;
}

.culture-box p {
    color: #444;
    font-size: 1em;
    line-height: 1.6;
}

.respectful-note {
    background-color: #fffde7;
    border-left-color: #fbc02d;
}


/* Slider Container */
.slider-container {
    position: relative;
    max-width: 100vw;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    background-color: white;
}

.slider-container .slider {
    display: flex;
    width: 100%;
    height: 100%;
}

.slider-container .slider .item {
    flex: 1 0 100%;
    height: 100%;
}

.slider-container .slider .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-container .slider-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.slider-container .slider-buttons .button {
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 20px;
    margin-left: 20px;
}

.slider-container .dots {
    position: absolute;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    display: flex;
    justify-content: center;
    bottom: 30px;
}

.slider-container .dots li {
    list-style: none;
    width: 10px;
    height: 10px;
    margin: 20px;
    border-radius: 20px;
    transition: 1s;
    background-color: white;
}

.slider-container .dots li.active {
    width: 30px;
    background-color: white;
}

/* Gallery Slideshow */
.gallery .card {
    background-color: white;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.card-item {
    position: relative;
    width: 50%;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-item img {
    max-width: 100%;
    height: auto;
    display: block;
}

.card-text {
    position: absolute;
    bottom: 14%;
    left: 6%;
    color: #fff;
    padding: 8px 12px;
    font-size: 25px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.1s;
    font-family: Arial, Helvetica, sans-serif;
}

.card-text:hover {
    color: rgba( 9, 46, 110, 1);
}

/* Second Content*/
.second-content {
    padding: 40px;
    background-color: white;
}

.second-content p {
    color: black;
}

/* Story Header Styles */
.story-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 6rem;
    width: 90vw;
    height: 90vh;
    margin-left: auto;
    margin-right: auto;
}

.story-header h1 {
    font-family: var(--header-font);
    font-size: 2.5rem;
    color: var(--accent-color);
}

.story-header p {
	font: italic small-caps bold 16px/2 cursive;
    color: white;
}
/* Story Container */
.story-container {
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(230, 230, 230, 0.8), 0 0 25px rgba(52, 152, 219, 0.6);
    transition: box-shadow 0.3s ease;
}

.story-container:hover {
    box-shadow: 0 0 15px rgba(230, 230, 230, 1), 0 0 50px rgba(52, 152, 219, 0.6);
}

/* Chapter Styles */
.chapter {
    margin-top: 6%;
    margin-bottom: 2.2%;
    margin-left: 15%;
    margin-right: 15%;
    padding: 2rem;
    border-radius: 10px;
    background-color: #f9f9f9;
}

.chapter h2 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

/* Story Content Styles */
.story-content {
    margin-bottom: 2rem;
}

.story-content p {
    margin-bottom: 1.5rem;
}

/* Image Styles */
.story-image {
    margin: 2rem 0;
    text-align: center;
}

.story-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.story-image figcaption {
    margin-top: 0.5rem;
    color: black;
}

.story-image .copyright {
    font-size: smaller;
    font-style: italic;
    color: #666;
}

/* Interactive Elements */
.interactive-element {
    margin: 2rem 0;
    text-align: center;
}

.choice-btn2 {
    padding: 1rem 1rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
}

.choice-btn2:hover {
    color: black;
    transition: color 0.5s;
}

.choice-btn {
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.choice-btn:hover {
    background-color: #357abd;
}

/* About DreamWorks */
.dreamworks-container {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to bottom, #000428, #004e92); /* Deep blue cinematic gradient */
    color: #fefefe;
    padding: 2rem;
    overflow-x: hidden;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

.dreamworks-container::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('stars.svg') repeat;
    opacity: 0.1;
    z-index: 0;
}

.dreamworks-container h1,
.dreamworks-container h2 {
    background: linear-gradient(90deg, #ffd700, #ff69b4, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.intro p {
    font-size: 1.2rem;
    color: #f0f0f0;
    margin-bottom: 2rem;
    z-index: 1;
    position: relative;
    text-align: center;
}

.about ul {
    list-style: none;
    padding: 0;
}

.about li {
    padding: 0.5rem 0;
    font-size: 1rem;
    color: #eeeeee;
    text-align: center;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, max-content));
    gap: 1.5rem;
    justify-content: center;
    justify-items: center;
    margin: 1rem auto;
    z-index: 1;
    position: relative;
}

.movie-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    overflow: hidden;
    padding: 1rem;
    text-align: center;
    color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

.movie-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.movie-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 0.7rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.movie-card h4 {
    margin: 0.5rem 0;
    font-weight: bold;
    color: #ffdb58;
}

.movie-card p {
    font-size: 0.95rem;
    color: #e0e0e0;
}

.animation-style p {
    font-size: 1rem;
    color: #dddddd;
    margin-top: 1rem;
    text-align: center;
}

.quote-section blockquote {
    font-style: italic;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.12);
    border-left: 5px solid #00ffff;
    margin-top: 3rem;
    color: #f6f8ff;
    font-size: 1.1rem;
    border-radius: 8px;
}

.dreamworks-container::-webkit-scrollbar {
    height: 8px;
}
.dreamworks-container::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #00ffff, #ff69b4);
    border-radius: 4px;
}


/* Footer Styles */
.story-footer {
    text-align: center;
    font-size: 10px;
    padding-top: 4rem;
    padding-bottom: 2.5rem;
    border-top: 1px solid #ddd;
    background-color: rgba(215, 215, 215, 1);
}

.social-network {
    margin-bottom: 10px;
}

.network-list {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.network-list a {
    font-size: 1.5rem;   
    transition: color 0.3s;
}

.network-list a:hover i {
    color: #092e6e;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .slider-container {
        aspect-ratio: 4 / 3;
    }

    .dots {
        bottom: 12%;
    }
}

@media (max-width: 768px) {
    
    body {
        padding: 0px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .chapter {
        padding: 1rem;
    }

    @media (min-width: 768px) {
        .slider-container {
            aspect-ratio: 13 / 7;
            height: auto;
        }
    }

    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media screen and (max-width: 576px) {
    .slider-container {
        aspect-ratio: 1 / 1;
    }

    .slider-buttons {
        top: 35%;
    }

    .slider-buttons .button {
        width: 30px;
        height: 30px;
    }

    .dots {
        bottom: 35%;
    }

    .dots li {
        width: 5px;
        height: 5px;
    }
}
