* {box-sizing: border-box}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 8px grey;
  border-radius: 2px;
}

::-webkit-scrollbar-thumb {
  background-image: linear-gradient(
    to bottom,
    rgba(255, 0, 0, 0.55),
    rgba(0, 128, 0, 0.55),
    rgba(0, 0, 255, 0.55)
  );
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background-image: linear-gradient(to bottom, red, green, blue);
}

html {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {font-family: Verdana, sans-serif; 
    height: 100%;
    overflow-x: hidden;
    background-image: url('images/background.jpg');
    display: flex;
    flex-direction: column;
}

a {
  color: white;
  text-decoration: none;
}

#logo {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto;
  display: block;
}

@media screen and (max-width: 600px) {
  #logo {width: 200px !important;}
}

#main {
  width: 100%;
  margin: 0; 
  padding: 20px;
  flex: 1;
}

#ad {
  margin: 0;
  margin-bottom: 20px;
  text-align: center;
}

@media screen and (max-width: 600px) {
  #ad-img {
    max-width: 80% !important;
  }
}

@media screen and (max-width: 500px) {
  #ad-img {
    max-width: 80% !important;
  }
}

@media screen and (max-width: 400px) {
  #ad-img {
    max-width: 80% !important;
  }
}

#notice {
  display: block;
  width: 100%;
  max-width: 1000px;
  border: 2px ridge black;
  border-radius: 5px;
  padding: 20px;
  text-align: center;
  background-color: #fa4078;
  color: white;
  font-size: 18px;
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}

@media screen and (max-width: 600px) {
  #notice {
    width: 80%;
    font-size: 14px;
    padding: 10px;
    line-height: 1.4;
    overflow-wrap: break-word; 
  }
}

@media screen and (max-width: 400px) {
  #notice {
    width: 80%;
    font-size: 10px;
    padding: 10px;
    line-height: 1.4;
    overflow-wrap: break-word; 
  }
}

#container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 10px;
}

.slideshow-container {
  flex: 1 1 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
  border: 2px ridge crimson;
  position: relative;
  margin-bottom: 20px;
}

@media screen and (max-width: 480px) {
  #main {
    padding: 10px;
  }

  #container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

@media screen and (max-width: 768px) {
  .slideshow-container {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

@media screen and (max-width: 480px) {
  .slideshow-container {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.mySlides {display: none}
img {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 40%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.desc {
    display: block;
    margin: 0;
    width: 100%;
    padding: 10px 0;
    background-color: #232121;
    text-align: center;
    font-size: 15px;
    color: white;
}

.book {
    display: block;
    margin: 0;
    padding: 10px 0;
    background-color: #0081f9;
    color: white;
    font-size: 15px;
    text-align: center;
}

.book > a {
    display: inline-block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.book:hover {
    cursor: pointer;
    background-color: #0c22ee;
}

#blank-space {
  display: block;
  margin: 0 auto 20px auto;
}

#footer-btn {
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  padding: 15px;
  background-color: #0081f9;
  color: white;
  font-size: 15px;
  border-radius: 20px;
  outline: none;
  border: none;
  cursor: pointer;
}

#footer-btn:hover {
  background-color: crimson;
}

#coffee-btn {
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  padding: 15px;
  background-color: crimson;
  color: white;
  font-size: 15px;
  border-radius: 20px;
  outline: none;
  border: none;
  cursor: pointer;
}

#coffee-btn:hover {
  background-color: #0081f9;
}

.modal {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translate(-50%, 0);
  width: 80%;
  max-width: 800px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  padding: 20px;
  text-align: center;
  transition: top 0.5s ease-in-out;
  z-index: 1000;
}

.modal.show {
  top: 50%;
  transform: translate(-50%, -50%);
}

.modal-content {
  font-family: Arial, sans-serif;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 30px;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

@media screen and (max-width: 600px) {
  .modal {
    max-width: 500px;
    font-size: 15px !important;
  }
}

@media screen and (max-width: 400px) {
  .modal {
    max-width: 350px;
    font-size: 10px !important;
  }
}


#footer {
  display: block;
  margin: 0 auto;
  width: 80%;
  max-width: 1200px;
  height: 50px;
  border-radius: 50px;
  line-height: 50px;
  text-align: center;
  background-color: #232121;
  color: white;
  font-size: 15px;
}

@media screen and (max-width: 600px) {
  #footer {
    width: 80%;
    font-size: 10px !important;
  }
}

@media screen and (max-width: 500px) {
  #footer {
    width: 80%;
    font-size: 10px !important;
  }
}

@media screen and (max-width: 400px) {
  #footer {
    width: 90%;
    font-size: 10px !important;
  }
}




