@font-face {
    font-family: 'Dateline-Bold';
    src: url('assets/fonts/dateline-4.ttf') format('truetype');
}

@font-face {
    font-family: 'Inclusive Sans';
    src: url('assets/fonts/InclusiveSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Inclusive Sans', Arial, sans-serif;
    font-size: 18px;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background-color: #219741;
}

.main-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #000;
}

.logo {
    width: 5%;
    margin-top: 30px;
}

h1, h2 {
    font-family: 'Dateline-Bold', Arial, sans-serif;
    color: #fff;
    text-transform: uppercase;
}

h1 {
    font-size: 40px;
    margin-bottom: 30px;
}

h2 {
    font-size: 30px;
}

label, select, button {
    margin: 10px;
    width: 80%;
    max-width: 300px;
}

label {
    color: #219741;
    font-size: 20px;
    text-transform: uppercase;
}

.subtitle {
    font-family: 'Inclusive Sans', Arial, sans-serif;
    font-size: 16px;
    display: block;
    color: #000;
    margin-bottom: 30px;
    text-align: center;
}

select {
    font-family: 'Inclusive Sans', 'CustomFont', Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: #ffffff; /* Green color */
    background-color: #219741; /* Light gray background */
    border: 1px solid #000000;
    width: 80%;
    padding: 10px 20px;
    border-radius: 10px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23FFFFFF" d="M2 4L0 0h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 10px 10px;
    cursor: pointer;
    outline: none;
    display: block; /* Ensures centering works consistently */
    margin: 0 auto; /* Ensures it's centered on mobile */
    text-align-last: center;  /* For Firefox */
    text-align: center;       /* For other browsers */
    -moz-text-align-last: center; /* For Firefox */
    -webkit-text-align-last: center; /* For Chrome and Safari */
}

button {
    font-family: 'Inclusive Sans', Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #219741;
    width: 80%;
    border: 1px solid #000;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

button:hover {
    background-color: #FFF800;
    color: #000;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

button:active {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: #FFF800;
    background-color: #219741;
}

#episode-info {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #fff;
    background-color: #219741;
    border-radius: 10px;
    width: 80%;
    color: #fff;
    font-family: 'Inclusive Sans', Arial, sans-serif;
    margin-bottom: 60px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
}

.description {
    text-align: center;
    font-size: 18px;
    margin: 25px 0 10px;
}

.season-episode-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
}

.season-episode {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 20px;
}

.season-episode .title {
    font-family: 'Dateline-Bold', Arial, sans-serif;
    font-size: 18px;
    text-transform: uppercase;
}

.season-episode .number {
    font-family: 'Dateline-Bold', Arial, sans-serif;
    font-size: 48px;
    font-weight: bold;
}

.title {
    font-size: 12px;
    text-transform: uppercase;
}

.air-date, .guest-stars {
    text-align: center;
    font-size: 24px;
}

/* Media Queries */
@media (min-width: 1200px) {
    button, select {
        max-width: 400px;
        padding: 15px 0;
        font-size: 18px;
    }

    .main-container {
        width: 30%;
    }

    #episode-info {
        width: 40%;
    }

    .logo {
        width: 10%;
    }

    h2 {
        font-size: 50px;
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    button, select {
        max-width: 400px;
        padding: 15px 0;
        font-size: 18px;
    }

    .main-container {
        width: 40%;
    }

    #episode-info {
        width: 70%;
    }

    .logo {
        width: 15%;
    }

    h2 {
        font-size: 50px;
    }
}

@media (min-width: 600px) and (max-width: 899px) {
    button, select {
        max-width: 350px;
        padding: 12px 0;
        font-size: 16px;
    }

    .main-container {
        width: 60%;
    }

    #episode-info {
        width: 80%;
    }

    .logo {
        width: 20%;
    }

    h2 {
        font-size: 40px;
    }
}

@media (max-width: 599px) {
    button, select {
        max-width: 300px;
        padding: 10px 0;
        font-size: 14px;
    }

    .main-container {
        width: 80%;
    }

    #episode-info {
        width: 80%;
    }

    .logo {
        width: 25%;
    }

    h2 {
        font-size: 30px;
    }
}
