/* _________________________ common _________________________ */

html,
body {
  line-height: 1.4;
  font-weight: normal;
  font-size: large;
  color: white;
  font-family: "Source Sans Pro", sans-serif;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

p {
  font-size: medium;
}

li {
  font-size: medium;
}

img {
  pointer-events: none;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.column {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  flex-direction: row;
}

/* _________________________ screen dim _________________________ */

#black-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background-color: black;
  transition: opacity 0.5s ease-in-out;
  opacity: 1;
  pointer-events: none;
}
#black-overlay.off {
  opacity: 0;
}

/* _________________________ Loading _________________________ */

#loading-square-inner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  border: 4px solid white;
  background-color: transparent;
  height: 100px;
  width: 100px;
  animation: loading-square-anim 5s infinite linear;
}

#loading-screen {
  pointer-events: none;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background-color: skyblue;
  transition: opacity 0.5s ease-in-out;
  opacity: 0;
  transition: opacity 0.25s ease-out;
}
#loading-screen.on {
  transition: opacity 0.25s ease-in;
  opacity: 0.5;
}

@keyframes loading-square-anim {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* _________________________ notify.js _________________________ */

#notification {
  border: 4px solid white;
  height: 15%;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  transition: transform 0.25s ease-out;
  transform: translateY(-100%) scale(0.9);

  background: linear-gradient(90deg, transparent, skyblue, transparent);
  background-size: 200% 100%;
  backdrop-filter: blur(5px);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  font-size: 3vh;
  text-align: center;
}
#notification.activate {
  transition: transform 0.25s ease-in;
  transform: translateY(0%) scale(1);
}

/* _________________________ archz.co.uk _________________________ */

#bg {
  pointer-events: none;
  position: fixed;
  inset: 0; /* shorthand for top:0; left:0; right:0; bottom:0 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: zoomInOut 10s infinite;
  filter: blur(4px);
  z-index: -100;
}

#tutorial {
  text-align: center;
}

#scroll-direction-hint img {
  height: 5vh;
  width: auto;
}

#portal {
  pointer-events: none;
  top: 0;
  left: 0;
  object-fit: cover;
  object-position: center;
  z-index: 10;
  top: 50%;
  left: 50%;
  position: fixed;
  transform: translate(-50%, -50%) rotate(0deg) scale(0);
}
#portal.play {
  animation: rotateAnimation 2s ease-in 1 forwards;
}

.container {
  font-size: small;
  margin: 4px;
  border: dashed white 2px;
  border-radius: 50%;
  width: 15vw;
  height: 15vw;
  padding: 1vw;
}

.category-section {
  margin-bottom: 2rem;
}

.category-section h2 {
  font-size: x-large;
  margin-bottom: 1rem;
  text-align: center;
}

.entries-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* _________________________ archz.co.uk/interests _________________________ */

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("src/assets/images/IMG_20230717_142745417.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(10px);
  z-index: -1;
}

.background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.line {
  margin: 2vh;
  height: 2px;
  background: white;
  width: 100%;
}

.tp-bucket {
  padding: 0.5vh;
  text-align: center;
  margin: 1vh;
  width: fit-content;
  border-radius: 12px;
  border: #dddddd 2px dashed;
}

.tp-bucket img {
  height: 20vh;
  padding: 0.5vh;
  border-radius: 12px;
  border: #dddddd 2px solid;
}

.artist-brand img {
  height: 5vh;
  padding: 0.5vh;
  border-radius: 12px;
  border: #dddddd 2px solid;
}

/* _________________________ archz.co.uk/portfolio _________________________ */

table,
th,
td {
  border: 1px solid #dddddd;
}

th,
td {
  padding: 8px;
}

.portfolio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

h1 {
  text-align: center;
}

.portfolio img,
.portfolio video {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  display: block;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../../src/assets/images/IMG_20230717_142745417.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(10px);
  z-index: -1;
}

.introduction-container {
  text-align: center;
}

.project-container {
  background-color: rgba(47, 166, 134, 0.8);
  border-radius: 12px;
  padding: 1%;
  margin: 0;
  width: 25rem;
  height: fit-content;
}

@media (max-width: 768px) {
  .project-container {
    max-width: 95%;
    width: 95%;
  }
  .row {
    display: flex;
    flex-direction: column;
  }
}

.project-container-title {
  text-align: center;
  font-size: xx-large;
}

.glow {
  border: 2px solid #0ff;
  box-shadow: 0 0 10px #0ff, 0 0 10px #0ff, 0 0 10px #0ff;
}

.contact-address {
  color: red;
}

/* _________________________ archz.co.uk/contact _________________________ */

#contact-email-emoji {
  font-size: xx-large;
}

/* _________________________ - _________________________ */

@keyframes slideLeft {
  0% {
    transform: translateX(125%);
  }
  100% {
    transform: translateX(-125%);
  }
}

@keyframes moveAndRotate {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  25% {
    transform: translateY(25px) rotate(-2.5deg);
  }
  50% {
    transform: translateY(0) rotate(0);
  }
  75% {
    transform: translateY(-25px) rotate(2.5deg);
  }
}

@keyframes moveUpDown {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(100px);
  }
}

@keyframes rotateAnimation {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(0);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg) scale(2);
  }
}

@keyframes zoomInOut {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeout {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}
