html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

* {
  font-family: "DiatypeMono-Regular";
  margin: 0;
  padding: 0;
  font-size: 17px;
  line-height: 1.5em;
  box-sizing: border-box;
  color: #141414;
}

.info {
  position: fixed;
  width: 100vw;
  background-image: linear-gradient(rgba(255, 255, 255, 0) 20%, #96ded1);
  display: inline-block;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 0.5% 1% 1% 1%;
}

.dropbtn {
  padding: 5% 5% 0 1%;
  border: none;
  text-align: left;
  cursor: pointer;
}

.dropup {
  position: relative;
  display: inline-block;
  background-color: transparent;
  text-align: left;
  float: left;
  min-width: 200px;
}

.dropup-content {
  display: none;
  position: absolute;
  width: 220px;
  bottom: 34px;
  z-index: 10000;
  background-color: snow;
  opacity: 0.9;
}

.dropup-content a {
  padding: 6px 18px;
  text-decoration: none;
  display: block;
}

.dropup:hover .dropup-content {
  display: block;
}

.dropup-content a:hover {
  background-color: #ccc;
}

.about {
  position: fixed;
  right: 0;
  padding-right: 2%;
  bottom: 2%;
}

button {
  background-color: transparent;
  border: 0;
  cursor: pointer;
}

main {
  height: 100vh;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  overflow-x: hidden;
}

main section {
  scroll-snap-align: start;
  height: 100vh;
  width: 100vw;
  display: flex;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

p {
  display: inline-block;
}

small {
  font-size: 70%;
  display: inline-block;
}

details {
  padding: 0 20%;
}

details > summary {
  list-style-type: none;
  cursor: pointer;
}

summary:after {
  background-color: snow;
  padding: 6px 18px;
  border-radius: 20px;
  opacity: 0.9;
  content: "work info";
}

details[open] summary:after {
  content: "close";
}
  
.prompt {
  width: 100vw;
  height: 100vh;
  display: inline-block;
  background-image: linear-gradient(Ivory, #96ded1);
  overflow-y: scroll;
}

.prompt p {
  padding: 5% 20%;
}

.writing {
  width: 100vw;
  height: 100vh;
  padding: 1%;
  display: inline-block;
  background-image: linear-gradient(Ivory, #96ded1);
  overflow-y: scroll;
}

.writing h1 {
  padding: 6px 18px;
  margin-bottom: 6px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 400;
  opacity: 0.9;
}

.writing h2 {
  background-color: snow;
  padding: 6px 18px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 400;
  opacity: 0.9;
}

.writing p {
  padding: 0 20%;
}

.title {
  width: 30%;
  position: absolute;
}

.text {
  width: 65%;
  margin-left: 30%;
}

.poster {
  height: 60vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 16px 16px rgba(0, 0, 0, 0.2);
}

mark {
  background-color: snow;
  padding: 5px 15px;
  border-radius: 20px;
  display: inline-block;
}

::selection {
  background-color: #96ded1;
}

/* Slideshow container */
.slideshow-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  margin: auto;
}

/* img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}

.img-vertical {
  height: 100vh;
  object-fit: contain;
} */

img {
  height: 100vh;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.img-vertical {
  height: 100vh;
  object-fit: cover;
}

.td2 {
  bottom: 1.5%;
  padding: 0;
  width: 50%;
  margin-left: 25%;
  margint-right: 25%;
  text-align: center;
  position: fixed;
  z-index: 3;
}

.td3 {
  bottom: 1.5%;
  right: 32px;
  text-align: right;
  position: fixed;
  z-index: 1000;
}

/* Hide the images by default */
.slide1 {
  display: none;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding-left: 1%;
  transform: translateY(-50%);
  z-index: 10000;
  font-family: "thesisshow-arrow";
  font-size: 150px;
  color: #414a4c;
  pointer-events: auto;
}

/* Position the "next button" to the right */
.next {
  right: 2%;
}

/* Caption text */
.caption {
  position: absolute;
  top: 1%;
  left: 1%;
  display: inline-block;
}

.caption h1 {
  padding: 6px 18px;
  margin-bottom: 6px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 400;
  opacity: 0.9;
}

.caption h2 {
  background-color: snow;
  padding: 6px 18px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 400;
  opacity: 0.9;
}

.info-button-gray {
  background-color: silver;
  padding: 6px 18px;
  margin-bottom: 6px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 400;
  opacity: 0.9;
}

.info-button {
  background-color: snow;
  padding: 6px 18px;
  margin-bottom: 6px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 400;
  opacity: 0.9;
}

.num {
  right: 1%;
  top: 1%;
  /*   background-color: #a9a9a9; */
  color: #989898;
  padding: 6px 18px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 400;
  position: absolute;
  opacity: 0.9;
}

.bg1 {
  background-color: #7de8b3;
}

.bg2 {
  background-color: #7de8cd;
}

.bg3 {
  background-color: #7de8d3;
}

.bg4 {
  background-color: #7de8e8;
}

.bg5 {
  background-color: #7dcde8;
}

.bg6 {
  background-color: #7db3e8;
}

/* Fading animation */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1s;
  animation-name: fade;
  animation-duration: 1s;
}

@-webkit-keyframes fade {
  from {
    opacity: 0.8;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade {
  from {
    opacity: 0.8;
  }
  to {
    opacity: 1;
  }
}

@font-face {
  font-family: "DiatypeMono-Regular";
  src: url("https://cdn.glitch.com/8897fe24-30c3-4e53-a8da-4bb20ec6041d%2FABCDiatypeMono-Regular-Trial.woff2?v=1626722102759")
    format("woff2");
}

@font-face {
  font-family: "thesisshow-arrow";
  src: url("https://cdn.glitch.com/8897fe24-30c3-4e53-a8da-4bb20ec6041d%2Fthesisshow-arrow-Regular.woff2?v=1626812495453")
    format("woff2");
}

@media only screen and (max-width: 1024px) {
  * {
    font-size: 16px;
    line-height: 1.45em;
  }

  .prompt p, .writing p {
    padding: 3% 12%;
  }
  
  details {
  padding: 0 12%;
}

  .td2 {
    display: none;
  }

  .dropup-content {
    bottom: 30px;
  }

  img {
    width: 100vw;
    object-fit: contain;
  }

  .img-vertical {
    height: 100vh;
    object-fit: cover;
  }
}

@media only screen and (max-width: 768px) {
  * {
    font-size: 14px;
    line-height: 1.4em;
  }

  .info {
    padding: 2%;
  }

  p {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .prev,
  .next {
    font-size: 70px;
  }

  .poster {
    display: none;
  }
}
