body {
  cursor:
    url("/images/Cursor\ \(default\).png") 0 32,
    auto;
  a:hover {
    cursor:
      url("/images/Cursor\ \(pointer\).png") 0 32,
      auto;
  }

  font-family: "Times New Roman", Times, serif;
  font-size: 16px;

  margin-bottom: 0;
}

h2 {
  font-size: 1.5em;
}

img {
  pointer-events: auto;
  /* Prevents selecting */
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Old Firefox */
  -ms-user-select: none; /* IE/Edge */
  user-select: none;
}

.window {
  display: block;
  width: min(85vw, 750px);
  aspect-ratio: 750 / 600;
  background: transparent url("/images/Window\ \(closed\).png") center / 100%
    100%;
}

.window:hover {
  background-image: url("/images/Window\ \(open\).png");
}

.sidenav {
  height: 100%;
  width: 250px;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 50px;
  background-color: #c7a477;
  padding: 10px 25px;
}

.img-nav {
  position: absolute;
  z-index: 2;
  left: -17%;
  bottom: 3%;
}

.clock {
  width: 125px;
  height: 125px;
  display: block;
  margin: auto;
  background: transparent url("/images/Clock\ \(closed\).png");
  background-size: 125px;
}

.clock:hover {
  background-image: url("/images/Clock\ \(open\).png");
}

.main {
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  margin-left: 350px; /* Makes space for navigation */
  padding-top: 25px;
  padding-left: 50px;
  padding-right: 50px;
}

.main img {
  /* Resizes images according to its parent's size */
  max-width: 100%;
  height: auto;
}

.icon {
  display: inline-block; /* Makes the whole image the link */
}

.icon:hover {
  transform: rotate(10deg);
}

.frame1 {
  width: fit-content;
  margin-bottom: 25px;
  padding: 10px 25px;
  border: 40px solid transparent; /* Required for border-image */
  border-image: url("/images/Frame1.png") 65 round;
}

.frame2 {
  width: fit-content;
  margin-bottom: 25px;
  padding: 10px 25px;
  border: 40px solid transparent;
  border-image: url("/images/Frame2.png") 50 round;
}

.frame3 {
  width: fit-content;
  margin-bottom: 25px;
  padding: 10px 25px;
  border: 45px solid transparent;
  border-image: url("/images/Frame3.png") 60 round;
}

.picture {
  border: 10px inset #c7a477;
  padding: 8px;
  background-color: #ecdecb;
}

.plaque {
  margin: 10px auto;
  display: block;
  max-width: 400px;
  width: fit-content;
  height: auto;
  text-align: center;
  border: 10px inset #c7a477;
  background-color: #c7a477;
  padding: 5px;
}

.column {
  display: flex;
  gap: 25px;
  margin-bottom: 25px;
}

.footer {
  height: 75px;
  bottom: 0;
  padding: 25px;
  margin-top: 25px;
  background-image: url("/images/Paneling.png");
  text-align: center;
  color: #c7a477;
}

.footer section {
  margin-left: 350px;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.gallery img {
  max-height: 200px;
  width: auto;
}

.gallery-item {
  border: 10px inset #c7a477;
  padding: 8px;
  background-color: #ecdecb;
}

.gallery-item:hover {
  border: 10px inset #ecdecb;
  cursor:
    url("/images/Cursor\ \(pointer\).png") 0 32,
    auto;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 3; /* Sit on top */
  padding-top: 25px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto;
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
}

.modal-content {
  margin: auto;
  display: block;
  max-height: 500px;
  width: auto;
}

.close {
  position: absolute;
  top: 10px;
  right: 25px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor:
    url("/images/Cursor\ \(pointer\).png") 0 32,
    auto;
}

.navmenu {
  display: none;
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
}

.navmenu a {
  padding: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.navmenu a:hover {
  background-color: #ecdecb;
}

/* Changes with screen size */
@media screen and (max-height: 500px) {
  .img-nav {
    display: none;
  }
}

@media screen and (max-width: 1150px) {
  .column {
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
  }
}

@media screen and (max-width: 850px) {
  .sidenav {
    display: none;
  }
  .navmenu {
    display: block; /* Shows toggle for navigation */
  }
  .main {
    margin-left: 0;
  }
  .footer section {
    margin-left: 0;
  }
  .modal {
    padding-top: 60px;
  }
  .modal-content {
    max-height: 400px;
  }
}

@media screen and (max-width: 600px) {
  body {
    font-size: 14px;
  }
  .modal-content {
    max-height: 300px;
  }
}

@media screen and (min-width: 855px) {
  .sidenav {
    display: block !important; /* Overrides menu() */
  }
}
