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

body {
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #121212; 
    color: #fff; 
    transition: background-color 0.5s ease, color 0.5s ease;
}

header {
    background: #1DB954; 
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    position: relative; 
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.logo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 50px; 
    height: auto;
}

.university-logo {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px; 
    height: auto;
}

header h1 {
    font-family: 'Anton', Arial, sans-serif;
    font-size: 2rem; 
    margin: 0.5rem 0;
}

header p {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem; 
    margin: 0;
}

nav {
    background: #191414; 
    padding: 1rem;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0.5rem 1rem;
}

nav ul li a {
    color: #1DB954; 
    text-decoration: none;
    font-weight: bold;
}

main {
    padding: 2rem;
}

section {
    margin-bottom: 2rem;
    background: #282828; 
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    opacity: 0;
    transition: opacity 1s ease-in-out, background-color 0.5s ease, color 0.5s ease;
}

.fade-in {
    opacity: 1;
}

.plot-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.plot-container {
    display: flex;
    overflow: hidden;
}

.plot {
    max-width: 100%;
    height: auto;
}

.carousel-btn {
    background-color: #1DB954;
    border: none;
    color: white;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

pre {
    background: #2a2a2a; 
    padding: 0.5rem; 
    overflow-x: auto;
    border: 1px solid #444; 
    border-radius: 5px;
    color: #1DB954; 
    margin: 1rem 0; 
    white-space: pre-wrap; 
}

code {
    font-family: monospace;
    display: block;
    white-space: pre-wrap; 
    color: #1DB954; 
    padding: 0; 
    margin: 0; 
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
    max-width: 600px; 
}

footer {
    background: #191414; 
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    width: 100%;
    bottom: 0;
}

.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1DB954;
    border: none;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 50px; 
    height: 50px; 
}

.theme-toggle:hover {
    background-color: #14863c;
}

.theme-toggle img {
    max-width: 80%; 
    max-height: 80%; 
}

body.light-theme {
    background-color: #f5f5f5;
    color: #000;
}

body.light-theme header {
    background: #4caf50;
    color: #000;
}

body.light-theme nav {
    background: #e0e0e0;
}

body.light-theme nav ul li a {
    color: #4caf50;
}

body.light-theme section {
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

body.light-theme footer {
    background: #e0e0e0;
    color: #000;
}

body.light-theme pre {
    background: #e0e0e0;
    color: #4caf50;
    border: 1px solid #ccc;
}

body.light-theme code {
    color: #4caf50;
}

.responsive-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    main {
        padding: 1rem;
    }

    header h1 {
        font-size: 1.75rem;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 0.5rem 0;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    header p {
        font-size: 0.875rem;
    }

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

    nav ul li {
        margin: 0.5rem 0;
    }

    main {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.5rem 0;
    }

    header h1 {
        font-size: 1.25rem;
    }

    header p {
        font-size: 0.75rem;
    }

    .logo {
        width: 40px;
        top: 5px;
        left: 5px;
    }

    .university-logo {
        width: 40px;
        top: 5px;
        right: 5px;
    }

    nav {
        padding: 0.5rem;
    }

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

    nav ul li {
        margin: 0.5rem 0;
    }

    main {
        padding: 0.5rem;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
        padding: 5px;
    }
}
