body {
  background: #D7D5CA ;
  color: #66332b;
  font-family: 'Open Sans', sans-serif;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  transition: opacity ease .3s;
}
header {  
  margin-bottom: 2em;
}

.calendar {
  display: block;
  margin: 0 auto;
}

footer {
  margin-top: 4em;
}

table {
  border-collapse: collapse;
  text-align: center;
  background: #fff;
  color: #66332b;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  overflow: hidden;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.24);
  transition: box-shadow ease .3s;
  width: 100%;
  table-layout: fixed;
  width: 50%;
}

thead {
  background: #57344b;
  font-weight: bold;
  font-size: 20px;
}

tr.weekDays {
  background: #47231d;
  color: #fff;
  font-weight: bold;
  font-size: calc(0.6*(1vh + 1vw));
}

tr.weekDays td{
  padding: 0;
  padding-top: 10px;
  padding-bottom: 10px;
}

td {
  padding: 1em;
  position: relative;
  word-break: break-word;
  white-space: nowrap;
}

td.disabled {
  opacity: .25;
  cursor: not-allowed;
}

td.today {
  background: #652d24;
  color: #fff;
  border-radius: 12px;
}

td.schedule-enable {
  cursor: pointer;
}

td.schedule-disable {
  position: relative;
  cursor: not-allowed;
}

td.schedule-disable:before,
td.schedule-disable:after {
  content: '';
  width: 30px; 
  height: 1px;
  display: block;
  background: black;
  position: absolute;
  top: 50%; 
  left: 50%;
  transform-origin: center center; 
}

td.schedule-disable:before {
  transform: translate(-50%, -50%) rotate(45deg);
}

td.schedule-disable:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

td.schedule-enable:hover {
  background: #652d24;
  color: #fff;
  border-radius: 12px;
}

td.has-event:after {
  content: '';
  width: 8px;
  height: 8px;
  display: block;
  background: #ff8d00;
  border-radius: 8px;
  position: absolute;
  top: 8px;
  right: 8px;
}


.dateTitle {
  text-align: center; 
  margin: auto; 
  background: #652d24; 
  color: #fff;
  font-weight: bold; 
  font-size: 20px; 
  border-top-left-radius: 12px; 
  border-top-right-radius: 12px; 
  padding: 20px;
  width: 50%; 
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
  table {
    width: 95%;
  }
  .dateTitle {
    width: 95%;
  }
}

@media (max-width: 480px) {
  table {
    width: 90%;
  }

  .dateTitle {
    width: 90%;
  }

  td.has-event:after {
    width: 6px;
    height: 6px;
    top: 6px;
    right: 6px;
  }

  tr.weekDays td {
    font-size: 10px;
  }
}

@media (max-width: 320px) {
  td {
    padding: 0.3em;
    font-size: 10px;
  }

  table {
    width: 85%;
    font-size: 10px;
  }

  .dateTitle {
    width: 85%;
  }

  td.has-event:after {
    width: 5px;
    height: 5px;
    top: 4px;
    right: 4px;
  }
}

.dateTitle button {
  background: transparent;
  border-radius: 50px;
}