/* Common styles */
body {
    font-family: 'Kanit', sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    max-width: 900px;
    margin: auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    text-align: center;
    color: #ff0000;
    text-shadow: 1px 1px 2px #000;
}

h3, h4 {
    text-align: center;
    color: #0D98F8;
    text-shadow: 1px 1px 2px #000;
}

/* Form styles */
form {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.subject-entry, .free-day-entry {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.subject-entry label, .free-day-entry label {
    flex: 0 0 150px;
    margin-right: 10px;
}

.subject-entry input, .free-day-entry input, .free-day-entry select {
    flex: 1;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 1em;
    margin-right: 10px;
}

.subject-entry input[type="number"], .free-day-entry input[type="number"] {
    width: 80px;
}

button.remove-subject, button.remove-free-day {
    margin-left: 10px;
}

button {
    padding: 10px 20px;
    background-color: #0D98F8;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background-color: #ff0000;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Table styles */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.styled-table th, .styled-table td {
    padding: 12px 15px;
    text-align: left;
}

.styled-table thead tr {
    background-color: #333;
    color: #fff;
    text-align: left;
}

.styled-table tbody tr {
    border-bottom: 1px solid #ddd;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

/* Home page specific */
.container.home {
    text-align: center;
}

.btn {
    background-color: #0D98F8;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    text-align: center;
    display: inline-block;
    font-size: 16px;
    margin: 10px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}
footer {
    background-color: #343a40; /* dark background */
    color: #fff; /* white text color */
    padding: 10px 0; /* padding for top and bottom */
    text-align: center; /* center the text */
    position: bottom; /* fix the footer at the bottom */
    bottom: 0; /* position it at the bottom */
    width: 100%; /* full width */
    font-weight: bold; /* bold text */
}


.btn:hover {
    background-color: #ff0000;
}

#container-stars, #glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.circle {
    border-radius: 50%;
    background: #ff0000;
    position: absolute;
    width: 10px;
    height: 10px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

#container-stars {
    display: none;
}

#stars {
    display: none;
}

@media (max-width: 768px) {
    .subject-entry, .free-day-entry {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .subject-entry label, .free-day-entry label {
        flex: 1 0 100%;
        margin-right: 0;
        margin-bottom: 5px;
    }

    .subject-entry input, .free-day-entry input, .free-day-entry select {
        flex: 1 0 48%;
        margin-bottom: 5px;
    }

    .navbar a {
        display: block;
        margin: 5px 0;
    }

    button.remove-subject, button.remove-free-day {
        flex: 1 0 48%;
        margin-top: 5px;
    }
}
