/* General Styles */
body {
    font-family: "Montserrat", sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
}

section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: -4px 4px 8px rgba(0, 0, 0, 0.4);
    max-width: 600px;
    width: 100%;
    height: auto;
    margin-bottom: 40px;
}

/* Header */
.header {
    padding-top: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    font-family: "Montserrat", sans-serif;
    margin: 0;
    font-size: 2em;
    color: #333;
}

/* Date Picker Styling */
.datePicker {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}


.datePicker input[type="date"] {
    padding: 10px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    width: 100%;
    max-width: 300px;
    outline: none;
    transition: border-color 0.3s ease;
}

.datePicker input[type="date"]:focus {
    border-color: #007BFF;
}

/* Date and Day Display */
.dateText {
    text-align: center;
    margin-bottom: 20px;
}

.dateText h1 {
    margin: 5px;
    font-size: 1.5em;
    color: #333;
}

/* Timetable Container */
.dateTable {
    margin-bottom: 20px;
}

.timeDay {
    text-align: center;
    font-size: 1.2em;
    color: #555;
    margin-bottom: 10px;
}
.buttons{
    display:flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

button {
    font-family: "Montserrat", sans-serif;
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 15px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 2px;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #45a049;
}

#timetableContainer {
    background-color: #cdc8c8;
    padding: 3px;
    border-radius: 5px;
}

#timetableContainer table {
    width: 100%;
    border-collapse: collapse;
}

#timetableContainer th,
#timetableContainer td {
    padding: 10px;
    border: 1px solid #cdc8c8;
    text-align: center;
}

#timetableContainer th {
    background-color: #f0f0f0;
    color: #333;
}

#timetableContainer td {
    background-color: #f0f0f0;
}

/* Footer */
footer {
    text-align: center;
    padding: 10px;
    color: #000;
    width: 100%;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 600px) {
    body {
        overflow: hidden;
        margin: 0;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
        /* Ensures padding doesn't cause overflow */
    }

    section {
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .header h1 {
        font-size: 1.5em;
    }

    .dateText h1 {
        font-size: 1.2em;
    }

    .timeDay {
        font-size: 1em;
    }

}

/* Responsive adjustments (optional) */
@media (max-width: 600px) {
    button {
        width: 100%;
        /* Full width on small screens */
        font-size: 14px;
        /* Smaller font size on small screens */
    }
}

#timetableContainer {
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    /* Allows horizontal scrolling if necessary */
}

#timetableContainer table {
    width: 100%;
    table-layout: fixed;
    /* Ensure table doesn't expand beyond container */
}

#timetableContainer th,
#timetableContainer td {
    font-size: 0.9em;
    word-wrap: break-word;
    /* Prevents text overflow */
}

footer {
    width: 90%;
}

footer p {
    font-size: 0.8em;
}