@font-face {
  font-family: "Ark Pixel";
  src: url("../fonts/ark-pixel.ttf") format("truetype");
}
@font-face {
  font-family: "MS PGothic";
  src: url("../fonts/ms-pgothic.ttf") format("truetype");
}

body::selection {
  background: rgb(0, 0, 0);
}

.header::selection {
  background: rgb(255, 255, 255);
}
.footer::selection {
  background: rgb(255, 255, 255);
}

html {
  background: url("../images/4squares-bright.png");
  background-size: 1rem;
  font-family: "MS PGothic";
  display: block;
  overflow: hidden;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 4vh 0%;
  letter-spacing: 1px;
}

.mainbox {
    display: flex;
    flex-direction: column;
    background-color: #ffd4d4;
    border: 4px solid black;
    border-radius: 5px;
    width: 600px;
    align-items: center;
    padding-bottom: 10px;
}

#month-year {
  width: 270px;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  max-width: 580px;
  width: 100%;
  padding: 5px;
  margin-top: 10px;
  height: 375px;
}

.day {
  padding: 15px;
  text-align: center;
  cursor: pointer;
  border: solid black 1px;
  border-radius: 2px;
  height: 20px;
}

.day:hover {
  background: white;
}

.dayName {
  font-weight: bold;
  background: black;
  border-radius: 2px;
  padding: 10px;
  color: white;
  height: 20px;
  text-align: center;
  text-transform: lowercase;
}

.event-day {
  background: black;
  color: white;
  border: solid black 1px;
  border-radius: 2px;
}

.event-day:hover {
  background-color: white;
  color: black;
  border: solid black 1px;
}

.today {
  background-color: white;
  color: black;
}

li::marker {
  content: ">";
  font-synthesis: bolder;
}

#event-details {
  margin-top: 0px;
  max-width: 560px;
  width: 100%;
  height: 200px;
}

#calendar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

#calendar-controls h1 {
  flex-grow: 1;
  text-align: center;
  margin: 0;
}

#calendar-controls button {
  background: white;
  color: black;
  padding: 8px 12px;
  cursor: pointer;
  border: solid black 1px;
  border-radius: 2px;
  transform: scaleX(1.226);
  font-family: "Ark Pixel";
  z-index: 99;
}

#calendar-controls button:hover {
  background: black;
  color: white;
}

.header {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  background-color: black;
  color: white;
  padding: 10px;
  justify-content: center;
  align-items: center;
  z-index: 99;
}

.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: black;
  color: white;
  padding: 10px;
  justify-content: center;
  align-items: center;
  z-index: 99;
  text-transform: lowercase;
}

h1 {
  text-align: center;
  font-size: 24px;
  margin: 0;
  font-family: "Ark Pixel";
  font-synthesis: weight;
  transform: scaleX(1.226);
  text-transform: lowercase;
}

p {
  text-align: center;
  font-size: 15px;
  margin: 2px;
  transform: scaleX(1.226);
}

#s-m-t-tooltip {
  /* basic */
  max-width: 220px;
  z-index: 777;
  margin: 24px 14px 7px 12px;
  /* style and design */
  padding: 6px;
  border: 3px solid black;
  border-radius: 4px;
  background-color: white;
  color: black;
  transform: scaleX(1.226);
}