@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap');

:root {
    --primary: #ff5fa3;
    --secondary: #00b7ff;
    --background: #eaf6ff;
    --white: #ffffff;
    --clear: #ffffff81;
    --dark-text: #fff;
    --overlay: rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--background);
    color: var(--dark-text);
    text-align: center;
}

header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--white);
    font-size: 28px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to right, var(--overlay), var(--secondary)), url('ui/Banner.PNG');
    background-size: cover;
    background-position: center;
    z-index: 999;
}

header img {
    height: 50px;
    margin-right: 15px;
}

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

nav a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    background: var(--white);
    border: 2px solid var(--secondary);
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

nav a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: start;
    gap: 15px;
    padding: 10px;
    max-width: 1100px;
    margin: 0 auto;
}

section {
    padding-left: 15px;
    padding-right: 15px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 10px;
}

.episode-list {
    list-style: none;
    padding: 0;
}

.episode {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 10px;
    margin: 8px 0;
    border-radius: 10px;
    text-align: left;
    background-size: cover;
    background-position: center;
    color: var(--white);
    transition: transform 0.2s ease-in-out;
    z-index: 1;
    min-height: 100px;
    height: auto;
}


.episode:hover {
    transform: scale(1.02);
    z-index: 2;
}

.episode h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.sources {
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: start;
}

.sources a {
    text-decoration: none;
    font-size: 14px;
    color: var(--white);
    background: var(--primary);
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 15px;
    transition: 0.3s ease-in-out;
    white-space: nowrap;
}

.sources a:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

form {
    color: var(--secondary);
    margin-top: 30px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 174, 255, 0.418);
}

form input, form textarea, form button {
    width: calc(100% - 40px);
    margin: 10px 0;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Baloo 2', sans-serif;
}

form input, form textarea {
    background-color: var(--background);
    color: var(--secondary);
}

form input:focus, form textarea:focus {
    outline: 2px solid #00a2ff;
}

form button {
    background-color: var(--primary);
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #0078bd;
}