:root {
  --color-dark: #eeeae6;
  --color-light: #385bc4;
  --color-transition:  transition: color 0.5s ease-in-out;
  --bg-color-transition:  transition: background-colo 0.5s ease-in-out;


}
@font-face {
  font-family: 'Medway';
  src: url(/public/fonts/Medway-Soft-Regular.woff) format('woff');
}

#dark-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999; /* above everything else */
  background-color: rgba(0, 0, 0, 0); /* start transparent */
  transition: background-color 1s ease;
}

#flashlight {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 80%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  display: none;
}

.loadingscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background-color: black;
  opacity: 0;
  visibility: hidden;
  animation: none;
}

.loadingscreen.visible {
  opacity: 1;
  visibility: visible;
  animation: fadeIn 8s ease-in-out forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 1;
  }
  87.5% {  /* 7s */
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.loadingscreen-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75vw;
  color: greenyellow;
  text-align: center;
  font-size: 1em;
  font-weight: normal;
  opacity: 0;
  animation: fadeInOut 7s ease-in-out forwards;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    color: white;
  }
  2% {
    color: red;
  }
  4% {
    color: orange;
  }
  6% {
    color: yellow;
  }
  8% {
    color: green;
  }
  10% {
    color: blue;
  }
  12% {
    color: violet;
  }
  14.3% {  /* 1s */
    opacity: 0;
    color: indigo;
  }
  42.9% {  /* 3s */
    opacity: 1;
    color: white;
  }
  50% {
    color: white;
  }
  71.4% {  /* 5s */
    opacity: 1;
    color: white;
  }
  100% {   /* 7s */
    opacity: 0;
    color: white;
  }
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: Medway;

  padding: 0;
  margin: 0;
}

main {
  width: calc(100vw - 48px);
  height: calc(100vh - 48px);
  overflow: hidden;

  /* background-color: whitesmoke; */
  background-color: white;

  padding: 24px;
  margin: 0;
	
	font-size: 14px;
}

h1, h2, h3, p {
  height: fit-content;
  width: 100%;

  font-weight: initial;
  font-size: 2em;
  line-height: 104%;
  letter-spacing: -0.2px;

  margin-block: 0;
}

h1 {
  font-size: 2em;
}

.content:first-child {
  border-top: 1px solid black;
  width: 100%;
  padding-top: 12px;
}

p {
  font-size: 1.2em;
  letter-spacing: 0px;
}

.content {
  width: calc(100vw - 48px);
  position: relative;

}

.contact {
  position: absolute;
  width: calc(100vw - 48px);

  bottom: 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: rgb(90, 90, 90);
}

#date-text {
  position: absolute;
  bottom: 24px;
  right: 24px;
  font-size: 1.2em;
  color: black;
  font-variant-numeric: tabular-nums;
}

.images-box {
  position: absolute;

  top: 50vh;
  left: 50vw;
  transform: translate(-50%, -50%);

  height: 100vh;
  width: 100vw;

  z-index: 100;
	
	pointer-events: none;

}

.images-box img {
  max-height: 75vh;
  max-width: 75vw;

  position: absolute;

  top: 50vh;
  left: 50vw;
  transform: translate(-50%, -50%);

  opacity: 0;
}


@media only screen and (min-width: 1280px) {
  /* Largest devices such as desktops (1280px and up) */
@media only screen and (min-width: 1280px) {

  main {
    width: calc(100vw - 72px);
    height: calc(100vh - 72px);

    padding: 36px;
	
	font-size: 16px;
  }

  .loadingscreen-content {
    width: 90vw;
  }

  .content {
    width: calc(100vw - 96px);  
  }
  
  .contact {
    width: calc(100vw - 96px);

    bottom: 36px;
  }

  #date-text {
    bottom: 36px;
    right: 36px;
  }

  }
}

/* Tablet devices (768px to 1279px) */
@media only screen and (min-width: 768px) and (max-width: 1279px) {
  /* Add your tablet-specific styles here */
}

/* Mobile devices (up to 767px) */
@media only screen and (max-width: 767px) {
  .images-box img {
    max-height: 70vh;
    max-width: 90vw;
    }
  
}