@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(45deg, #0d1b2a, #1b263b, #415a77, #778da9, #e0e1dd);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

main {
    position: relative;
    width: 100vw;
    height: 100vh;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    opacity: 0;
    visibility: hidden;
    overflow: auto;
    padding: 40px;
    box-sizing: border-box;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 40px;
    max-width: 1400px;
    width: 100%;
    height: 100%;
}

.title-container {
    grid-column: 1 / -1;
    text-align: center;
    border-bottom: 1px solid #444;
    padding-bottom: 20px;
}

.title-container h1 {
    font-family: 'Lobster', cursive;
    font-size: 3.5em;
    margin: 0;
    font-weight: 400; /* Adjusted font-weight for script font */
    line-height: 1.2; /* Added line-height for better readability */
}

/* Adjust font size for smaller screens */
@media (max-width: 768px) {
    .title-container h1 {
        font-size: 2.5em; /* Reduced font size for smaller screens */
        line-height: 1.2; /* Added line-height */
    }
}

.title-container h2 {
    font-size: 1.5em;
    margin: 10px 0 0;
    font-weight: 300;
    color: #aaa;
}

.news-headlines {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    font-size: 1.1em;
    line-height: 1.8;
    text-align: left;
    overflow-y: auto;
}

.news-headlines ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-headlines li {
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.news-headlines li:before {
    content: '⚡️';
    margin-right: 10px;
    font-size: 1.2em;
}

.visual-collage {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
}

.collage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.collage-img:hover {
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.7);
    filter: brightness(1.2);
}

.sora-img {
    grid-column: 1 / 5;
    grid-row: 1 / 5;
    clip-path: polygon(0 0, 100% 0, 100% 75%, 75% 100%, 0 100%);
}

.midjourney-img {
    grid-column: 4 / 7;
    grid-row: 4 / 7;
    clip-path: circle(50% at 50% 50%);
}

.suno-img {
    grid-column: 1 / 4;
    grid-row: 5 / 7;
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}


.navigation {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: rgba(0, 123, 255, 0.3); /* Semi-transparent blue */
    color: white;
    border: 1px solid rgba(0, 123, 255, 0.7); /* Border for visibility */
    border-radius: 5px;
    margin: 0 10px;
    transition: background-color 0.3s, border-color 0.3s;
}

button:hover {
    background-color: rgba(0, 123, 255, 0.6); /* More opaque on hover */
    border-color: rgba(0, 123, 255, 1);
}

.author-sign {
    position: fixed;
    bottom: 20px;
    right: 30px;
    font-family: 'Dancing Script', cursive;
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    z-index: 101;
    opacity: 0;
    animation: fadeInAuthor 2s ease 1s forwards;
}

@keyframes fadeInAuthor {
    to {
        opacity: 1;
    }
}

/* Slide 2 Specific Styles - Simple Layout */
.slide .content-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.slide .content-simple .title-container {
    width: 100%;
    text-align: center;
    border-bottom: none; /* Remove border for simplicity */
    padding-bottom: 0;
}

.slide .content-simple .image-container {
    display: flex;
    flex-wrap: wrap; /* Allow images to wrap on smaller screens */
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.slide .content-simple .image-container img {
    width: 45%; /* Adjust size for two images side-by-side */
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    transition: none; /* Remove transitions for simplicity */
    transform: none; /* Remove transforms */
    clip-path: none; /* Remove clip-path */
}

.slide .content-simple .quotes-container {
    display: flex;
    flex-direction: column; /* Stack quotes by default */
    gap: 20px;
    width: 100%;
    max-width: 800px;
    margin-top: 20px;
}

.slide .content-simple .quote {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 8px;
    font-size: 1em;
    font-style: italic;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
    text-align: center;
}

.slide .content-simple .quote span {
    display: block;
    font-size: 0.8em;
    font-style: normal;
    text-align: right;
    margin-top: 10px;
    color: #ccc;
}

/* Responsive adjustments for larger screens */
@media (min-width: 768px) {
    .slide .content-simple .quotes-container {
        flex-direction: row; /* Display quotes side-by-side on larger screens */
        justify-content: space-around;
    }

    .slide .content-simple .quote {
        flex: 1; /* Distribute space evenly */
        max-width: 30%; /* Limit width for side-by-side */
    }
}

/* Slide 3 Specific Styles */
.slide-3-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    align-items: center;
}

.slide-3-grid .title-container {
    grid-column: 1 / -1;
}

.character-half {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.character-half img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.7);
}

.character-half .quote {
    font-size: 1.2em;
    font-style: italic;
    margin-top: 20px;
    max-width: 80%;
}

.images-title {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    font-size: 1.1em;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .slide-3-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr 1fr auto;
    }
}

/* Slide 4 Specific Styles */
.slide-4-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center content vertically */
    gap: 20px; /* Adjusted gap */
    width: 100%;
    max-width: 1600px; /* Adjusted max-width */
    height: 100%;
}

.slide-4-grid .title-container {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #444;
    padding-bottom: 20px;
    flex-shrink: 0;
}

.characters-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Reduced gap between cards */
    width: 100%;
    padding: 10px; /* Adjusted padding */
    overflow-y: auto; /* Allow scrolling if content overflows */
}

.character-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 20px; /* Adjusted padding */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
    flex: 1 1 200px; /* Reduced flex-basis to fit more cards */
    max-width: 220px; /* Reduced max-width */
}

.character-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.7);
}

.character-card img {
    width: 120px; /* Reduced image size */
    height: 120px; /* Reduced image size */
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(0, 123, 255, 0.6);
    margin-bottom: 15px;
}

.character-card h3 {
    font-size: 1.3em; /* Reduced font size */
    margin: 10px 0 5px;
    color: #007bff;
}

.character-card p {
    font-size: 0.9em; /* Reduced font size */
    line-height: 1.5;
    color: #ccc;
}

/* Responsive adjustments for Slide 4 */
@media (min-width: 1200px) {
    .characters-container {
        gap: 30px; /* Slightly larger gap on very large screens */
    }
    .character-card {
        flex: 1 1 220px; /* Adjust for very large screens */
        max-width: 240px;
    }
}

@media (max-width: 992px) {
    .character-card {
        flex-basis: 180px; /* Adjust for medium-large screens */
        max-width: 200px;
    }
    .character-card img {
        width: 100px;
        height: 100px;
    }
    .character-card h3 {
        font-size: 1.2em;
    }
    .character-card p {
        font-size: 0.85em;
    }
}

@media (max-width: 768px) {
    .characters-container {
        flex-direction: column;
        align-items: center;
        flex-wrap: nowrap;
    }

    .character-card {
        max-width: 90%;
        width: 100%;
        flex-basis: auto;
        padding: 15px;
    }
    .character-card img {
        width: 100px;
        height: 100px;
    }
    .character-card h3 {
        font-size: 1.3em;
    }
    .character-card p {
        font-size: 0.9em;
    }
}

/* Slide 5 Specific Styles */
.slide-5-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align content to the top */
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    padding-top: 20px; /* Add padding to the top */
}

.slide-5-grid .title-container {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #444;
    padding-bottom: 20px;
    flex-shrink: 0;
}

.image-container-5 {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr; /* Adjusted central column */
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    align-items: center;
    width: 100%;
    flex-grow: 1; /* Allow container to take up available space */
}

.image-container-5 img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.ilya-img {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    z-index: 2;
}

.headline-img {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    transform: rotate(-8deg) translateX(10%); /* Reduced transform */
}

.ssi-img {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    transform: rotate(8deg) translateX(-10%); /* Reduced transform */
}

@media (max-width: 768px) {
    .image-container-5 {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .image-container-5 img {
        transform: none;
        width: 80%;
        max-width: 400px;
    }
}

/* Slide 6 Specific Styles */
.slide-6-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align content to the top */
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    height: 100%;
    padding-top: 20px; /* Add padding to the top */
}

.slide-6-grid .title-container {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #444;
    padding-bottom: 20px;
    flex-shrink: 0;
}

.image-container-6 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping */
    gap: 15px; /* Reduced gap */
    width: 100%;
    flex-grow: 1;
}

.image-container-6 img {
    width: 30%; /* Adjust width for three images */
    max-width: 350px; /* Reduced max-width */
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.caption-6 {
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    font-size: 1.1em;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .image-container-6 img {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .image-container-6 {
        flex-direction: column;
    }

    .image-container-6 img {
        width: 80%;
    }
}

/* Slide 7 Specific Styles */
.slide-7-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

.slide-7-grid .title-container {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #444;
    padding-bottom: 20px;
}

.final-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50vh; /* Adjust as needed */
}

.final-image {
    max-width: 400px;
    width: 50%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(0, 123, 255, 0.7);
}

.question {
    position: absolute;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 1.1em;
    text-align: center;
}

.question-1 {
    top: 0;
    left: 10%;
    transform: rotate(-15deg);
}

.question-2 {
    top: 20%;
    right: 5%;
    transform: rotate(10deg);
}

.question-3 {
    bottom: 25%;
    left: 5%;
    transform: rotate(12deg);
}

.question-4 {
    bottom: 0;
    right: 10%;
    transform: rotate(-10deg);
}

@media (max-width: 768px) {
    .final-content {
        flex-direction: column;
        height: auto;
        gap: 20px;
    }

    .question {
        position: static;
        transform: none;
        width: 80%;
    }
}
