@font-face {
  font-family: "Bookman Old Style";
  src: url("fonts/BOOKOS.TTF") format("woff2"),
    url("fonts/BOOKOS.TTF") format("woff"),
    url("fonts/BOOKOS.TTF") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: "Bookman Old Style", sans-serif;
  padding: 0px;
  user-select: none;
  -moz-user-select: none;
}

#timetable {
  border: 1px solid #000;
  padding: 10px;
  max-width: 1000px;
  margin: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 15px;
}

table,
th,
td {
  border: 1px solid black;
}

th,
td {
  padding: 4px;
  text-align: center;
}

td[contenteditable="true"] {
  background-color: #f9f9f9;
  cursor: text;
}

.section-title {
  text-align: center;
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: 600;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.buttons button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

.header-info,
.subject-info {
  width: 100%;
  margin-bottom: 15px;
}

.header-info td {
  border: none;
  text-align: left;
  padding: 4px;
}

.subject-info th,
.subject-info td {
  font-size: 1em;
}

.add-row-btn {
  margin-bottom: 10px;
  text-align: right;
}

.add-row-btn button {
  padding: 5px 10px;
  font-size: 14px;
  cursor: pointer;
}

.timebreak {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  text-align: center;
  font-weight: 600;
  display: flex;
  margin: auto;
  justify-content: center;
  align-items: center;
}
.left {
  text-align: left !important;
  text-indent: 10px;
}

.img-container {
  overflow: hidden;
  object-fit: contain;
}
img {
  max-width: 300px;
  /* transform: scale(1.4); */
  object-fit: contain;
  -webkit-user-drag: none;
}
.college-table {
  border-collapse: collapse;
}
.small-table {
  margin-bottom: 0;
  text-align: left !important;
}
.small-table tr th {
  width: 130px !important;
  text-indent: 0px;
}
.small-table tr td {
  text-indent: 0px !important;
}

/* Header Table */

.header-table tr:first-child td:first-child {
  width: 50% !important;
}
.header-table tr:not(:first-child) :is(td, th) {
  text-align: left;
}
.header-table tr:not(:first-child) th:first-child {
  max-width: 120px !important;
}
.header-table tr:not(:first-child) th:nth-child(3) {
  max-width: 60px !important;
}

/* Bottom Table */
.table-bottom {
  margin-top: 5rem;
}

.table-bottom :is(th),
.table-bottom {
  border: none;
  padding: 0;
}
.table-bottom tr:first-child {
  text-transform: uppercase;
  padding: 0;
}

/* subject-info */

.subject-info tr td:not(:first-child, :nth-child(5)) {
  text-align: left;
}

#main-timetable {
  table-layout: fixed;
}
