body {
    height: 95vh;
    font-family: Roboto, sans-serif;
    font-size: 1.5rem;
    background-color: #121212;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

table,
th,
td {
    border-collapse: collapse;
}

th {
    width: 100vw;
    min-width: 10rem;
    height: 2%;
    border-bottom-left-radius: 10px;
    border-top-left-radius: 10px;
}

table {
    color: #e1e1e1;
    width: 100%;
    height: 100%;
    border-collapse: collapse;
}

td {
    margin: 10px;
    text-align: center;
    font-weight: bold;
    height: 15.6vh;
    position: relative;
    cursor: pointer;
}

td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

table tr:nth-child(odd) {
    background-color: #121212;
}

table tr:nth-child(even) {
    background-color: #1e1e1e;
}

.lecture,
.section {
    height: 100%;
    justify-content: center;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.lecture {
    background-color: #bb86fc;
    color: #46325f;
}

.section {
    background-color: #03dac6;
    color: #01413a;
}

.teacher {
    font-style: italic;
    font-size: 1.25rem;
}

.room {
    font-weight: 100;
}

#time,
#days {
    color: #c7c5c5;
}

#days {
    width: 10%;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #121212;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 30%;
    border-radius: 10px;
    color: #e1e1e1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.close {
    color: #aaa;
    align-self: flex-end;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #ff0000;
}

#modalForm {
    display: flex;
    flex-direction: column;
    align-items: left;
}

#modalForm input,
#modalForm select {
    font-size: 1rem;
    margin: 10px;
    padding: 10px;
    width: 500px;
    border-radius: 10px;
    background-color: #352f44;
    border: none;
    color: #e1e1e1;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
}



#modalForm button {
    font-size: 1rem;
    margin: 10px;
    padding: 10px;
    width: 50%;
    border-radius: 10px;
    background-color: #faf0e6;
    border: none;
    font-weight: bold;
    color: #121212;
    cursor: pointer;
    float: right;
}

#modalInfo {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

@media print {
    @page {
        size: 16in 9in landscape;
        margin: 0;
    }
}

td,
.lecture,
.section {
    cursor: default;
}

body.admin-mode td,
body.admin-mode .lecture,
body.admin-mode .section {
    cursor: pointer;
}

body.admin-mode {
    border-top: 4px solid #bb86fc;
}

#modalForm,
#loginForm {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#modalForm input,
#loginForm input,
#modalForm select {
    font-size: 1rem;
    margin: 10px 0;
    padding: 12px;
    border-radius: 8px;
    background-color: #1e1e1e;
    border: 1px solid #333;
    color: #e1e1e1;
    width: 100%;
    box-sizing: border-box;
}

#modalForm button,
#loginForm button {
    margin-top: 15px;
    padding: 12px;
    background-color: #bb86fc;
    color: #121212;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

#loginForm button:hover {
    background-color: #a370db;
}

td {
    transition: background-color 0.2s ease;
}

[draggable="true"]:active {
    cursor: grabbing;
}