/* Default styles for larger screens (desktop) */
body {
    background-color: lightblue;
    text-align: center;
    font-size: 24px;
    padding: 50px;
}

h1.page-title {
    color: navy;
    margin: 0; /* Set margin to 0 to position it at the top */
}

/* Add a class for the wide scrollbar */
.wide-scrollbar {
    max-width: 100%; /* Limit the width to the screen width */
}

/* Style for the scrollbar */
.wide-scrollbar::-webkit-scrollbar {
    width: 20px; /* Adjust the width as needed */
}

/* Style for the scrollbar thumb */
.wide-scrollbar::-webkit-scrollbar-thumb {
    background: #888;
}

/* Media query for smaller screens (tablets) */
@media screen and (max-width: 768px) {
    body {
        font-size: 18px; /* Adjust font size for tablets */
        padding: 20px;
    }

    h1.page-title {
        font-size: 24px; /* Adjust font size for tablets */
    }

    /* Move the play button below the combo box and increase its size */
    #video-selector input[type="submit"] {
        display: block; /* Display the button as a block element */
        font-size: 32px; /* Increase the font size for larger buttons */
        padding: 20px; /* Increase padding for touch-friendly interaction */
    }

    /* Add tablet-specific styles here */
}
select {
    font-size: 1.1em;
    padding: 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    margin-bottom: 10px; /* Add some space below selectors */
}

/* --- Item Lists (from index.html) --- */
#item-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#item-list a {
    color: #007bff;
    text-decoration: none;
    display: block;
    padding: 12px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease-in-out;
}

#item-list a:hover {
    background-color: #f8f9fa;
}

/* --- Player Layouts (from player.html) --- */
audio {
    width: 100%;
    margin-top: 20px;
}

#audiobook-player-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

#pdf-panel {
    flex: 2;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
}

#player-panel {
    flex: 1;
}

#music-player-container {
    text-align: center;
}

iframe {
    border: 1px solid #ddd;
}

.nav-link {
    margin-bottom: 20px;
}

.nav-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

/* --- Resume Section --- */
.resume-section {
    background-color: #e9f5ff;
    border: 1px solid #b3d7ff;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

/* --- Home Page Button --- */
.home-button-container {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.button {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}

.button:hover {
    background-color: #0056b3;
}

/* --- RESPONSIVE DESIGN FOR PHONES/TABLETS --- */
@media (max-width: 800px) {
    body {
        padding: 10px;
    }

    .container, .main-container {
        padding: 15px;
    }

    h1 {
        font-size: 1.5em;
    }

    #audiobook-player-container {
        /* On small screens, stack the panels vertically */
        flex-direction: column;
    }
}
