/* Nostalgic Personal Blog Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Music Player */
.music-player {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-bottom: 3px solid #d4a574;
    padding: 10px 20px;
    text-align: center;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    color: #2d5f3f;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.music-player button {
    background: #2d5f3f;
    color: white;
    border: 2px solid #1a3a25;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.music-player button:hover {
    background: #4a8f5f;
    transform: scale(1.05);
}

#trackName {
    font-style: italic;
    color: #1a3a25;
}

/* GIF Animations */
.header-gif {
    width: 80px;
    height: 80px;
    margin-top: 10px;
}

.floating-gif {
    position: absolute;
    width: 50px;
    height: 50px;
    animation: float 3s ease-in-out infinite;
}

.floating-gif-1 {
    top: 10px;
    left: 10px;
}

.floating-gif-2 {
    bottom: 10px;
    right: 10px;
}

.floating-gif-3 {
    top: 20px;
    right: 20px;
}

.floating-gif-4 {
    bottom: 20px;
    left: 20px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.inline-gif {
    width: 40px;
    height: 40px;
    float: right;
    margin: 0 0 10px 10px;
}

.corner-gif {
    position: absolute;
    width: 60px;
    height: 60px;
}

.corner-gif-tl {
    top: 10px;
    left: 10px;
}

.corner-gif-tr {
    top: 10px;
    right: 10px;
}

.corner-gif-bl {
    bottom: 10px;
    left: 10px;
}

.corner-gif-br {
    bottom: 10px;
    right: 10px;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(to bottom, #e6f3ff 0%, #fff5e6 100%);
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    border-left: 5px solid #2d5f3f;
    border-right: 5px solid #2d5f3f;
    min-height: 100vh;
}

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, #2d5f3f 0%, #4a8f5f 100%);
    color: white;
    padding: 0;
    text-align: center;
    border-bottom: 5px solid #1a3a25;
    position: relative;
}

.header-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-bottom: 3px dashed #ffd700;
}

.header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.main-header h1 {
    font-size: 2.5em;
    padding: 20px 20px 10px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.tagline {
    font-style: italic;
    font-size: 1.2em;
    padding-bottom: 20px;
    color: #ffd700;
}

/* Topic Page Header */
.topic-header {
    background: linear-gradient(135deg, #2d5f3f 0%, #4a8f5f 100%);
    color: white;
    padding: 0;
    text-align: center;
    border-bottom: 5px solid #1a3a25;
}

.topic-header-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-bottom: 3px dashed #ffd700;
}

.topic-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.topic-header h1 {
    font-size: 2.2em;
    padding: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Navigation */
.navigation {
    background: #f4e4c1;
    border-bottom: 3px solid #d4a574;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px;
    gap: 5px;
}

.navigation a {
    color: #2d5f3f;
    text-decoration: none;
    padding: 10px 20px;
    background: #fff;
    border: 2px solid #2d5f3f;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.navigation a:hover {
    background: #2d5f3f;
    color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
}

.navigation a.active {
    background: #2d5f3f;
    color: #ffd700;
}

/* Main Content */
main {
    padding: 30px;
}

/* Introduction Section */
.intro-section {
    background: linear-gradient(to right, #fff8e7, #ffe7e7);
    border: 3px dashed #2d5f3f;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
}

.intro-section h2 {
    color: #2d5f3f;
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.intro-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.intro-text {
    flex: 1;
    min-width: 300px;
}

.intro-text p {
    font-size: 1.1em;
    text-align: justify;
}

.intro-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.intro-images img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border: 4px solid #2d5f3f;
    border-radius: 8px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.intro-images img:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Content Sections */
.content-section {
    margin: 30px 0;
}

.decorated-box {
    background: #f9f9f9;
    border-left: 6px solid #4a8f5f;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 5px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.decorated-box h3 {
    color: #2d5f3f;
    font-size: 1.6em;
    margin-bottom: 15px;
    border-bottom: 2px dotted #4a8f5f;
    padding-bottom: 10px;
}

.decorated-box p {
    font-size: 1.05em;
    text-align: justify;
}

/* Resource Sections */
.resource-section {
    background: linear-gradient(to bottom, #e8f5e9, #fff9e6);
    border: 3px solid #4a8f5f;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.resource-section h3 {
    color: #2d5f3f;
    font-size: 1.8em;
    margin-bottom: 15px;
    text-align: center;
}

.resource-description {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    font-style: italic;
    color: #555;
}

/* Media Container */
.media-container {
    margin: 25px 0;
    text-align: center;
}

.media-container iframe {
    width: 100%;
    max-width: 700px;
    height: 400px;
    border: 4px solid #2d5f3f;
    border-radius: 8px;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
}

.media-container img {
    max-width: 100%;
    height: auto;
    border: 4px solid #2d5f3f;
    border-radius: 8px;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.image-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 3px solid #2d5f3f;
    border-radius: 8px;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

/* Question Box */
.question-box {
    background: #fff8dc;
    border: 3px dashed #ff6b6b;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.question-box h4 {
    color: #d63031;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.question-box p {
    font-size: 1.1em;
    color: #333;
}

/* Divider */
.divider {
    text-align: center;
    font-size: 2em;
    margin: 30px 0;
    color: #4a8f5f;
}

/* Call to Action */
.call-to-action {
    background: linear-gradient(135deg, #fff5e6 0%, #e6f3ff 100%);
    border: 4px double #2d5f3f;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.call-to-action h3 {
    color: #2d5f3f;
    font-size: 2em;
    margin-bottom: 15px;
}

.call-to-action > p {
    font-size: 1.2em;
    margin-bottom: 25px;
    color: #555;
}

.topic-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.topic-card {
    background: white;
    border: 3px solid #4a8f5f;
    border-radius: 10px;
    padding: 20px;
    width: 250px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
}

.topic-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
    background: #f0fff0;
}

.topic-card .emoji {
    font-size: 3em;
    display: block;
    margin-bottom: 10px;
}

.topic-card h4 {
    color: #2d5f3f;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.topic-card p {
    font-size: 0.95em;
    color: #666;
}

/* Final Project Section */
.final-project {
    background: linear-gradient(to right, #ffe7e7, #e7f3ff);
    border: 4px solid #ff6b6b;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
}

.final-project h3 {
    color: #d63031;
    font-size: 2em;
    text-align: center;
    margin-bottom: 20px;
}

.final-project p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.suggestions-list {
    background: white;
    border: 2px solid #4a8f5f;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.suggestions-list h4 {
    color: #2d5f3f;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.suggestions-list ul {
    list-style: none;
    padding-left: 0;
}

.suggestions-list li {
    padding: 10px;
    margin: 8px 0;
    background: #f0fff0;
    border-left: 4px solid #4a8f5f;
    border-radius: 4px;
}

.suggestions-list li:before {
    content: "🐍 ";
    margin-right: 8px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2d5f3f 0%, #1a3a25 100%);
    color: #ffd700;
    text-align: center;
    padding: 25px;
    border-top: 5px solid #4a8f5f;
}

footer p {
    margin: 5px 0;
}

footer em {
    color: #fff;
    font-size: 0.9em;
}

/* 404 Page Styles */
.error-page {
    text-align: center;
    padding: 50px 30px;
}

.error-page h1 {
    font-size: 6em;
    color: #2d5f3f;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
}

.error-page h2 {
    font-size: 2em;
    color: #d63031;
    margin-bottom: 20px;
}

.error-page p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.error-page .home-button {
    display: inline-block;
    padding: 15px 40px;
    background: #4a8f5f;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
}

.error-page .home-button:hover {
    background: #2d5f3f;
    transform: translateY(-3px);
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        border-left: none;
        border-right: none;
    }
    
    .main-header h1 {
        font-size: 1.8em;
    }
    
    .intro-content {
        flex-direction: column;
    }
    
    .intro-images img {
        width: 100%;
        max-width: 300px;
    }
    
    .topic-links {
        flex-direction: column;
        align-items: center;
    }
    
    .navigation {
        flex-direction: column;
    }
    
    .navigation a {
        width: 100%;
        text-align: center;
    }
}