/* CSS RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-weight: normal;
  font-size: 100%;
  color: black;
}

ol,
ul {
  list-style: none;
}

img,
video {
  width: 100%;
}

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

/* CUSTOM STYLES */
body {
  margin: 0;
  height: 90vh;
  overflow: auto;
  position: relative;
  background-color: black;
  font-family: merchant;
}

@font-face {
  font-family: merchant;
  src: url(merchant.ttf);
}

.circle {
  position: absolute;
  border-radius: 50%;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 130%;
  font-weight: bold;
  text-align: center;
  transition: top 1s ease, left 1s ease; /* Smooth transition duration */
}

.circle img {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.circle-text {
  position: absolute;
  top: 35%; /* Adjust this value for vertical positioning */
  left: 50%;
  transform: translateX(-50%);
  display: none;
}

.circle-subtext {
  position: absolute;
  top: 50%; /* Adjust this value for vertical positioning */
  left: 50%;
  transform: translateX(-50%);
  font-size: 65%;
  color: rgb(0, 0, 0);
  display: none; /* Hide the circle subtext by default */
}

.circle:hover .circle-text {
  display: block;
}

/* Show the circle subtext only when hovering over the circle */
.circle:hover .circle-subtext {
  display: block;
}

/* Circle initial positions */
.circle:nth-child(1) {
  --top-start: 0;
  --left-start: 0;
}
.circle:nth-child(2) {
  --top-start: 3;
  --left-start: 7;
}
.circle:nth-child(3) {
  --top-start: 5;
  --left-start: 3;
}
.circle:nth-child(4) {
  --top-start: 7;
  --left-start: 6;
}
.circle:nth-child(5) {
  --top-start: 1;
  --left-start: 2;
}
.circle:nth-child(6) {
  --top-start: 2;
  --left-start: 4;
}
.circle:nth-child(7) {
  --top-start: 8;
  --left-start: 7;
}
.circle:nth-child(8) {
  --top-start: 5;
  --left-start: 5;
}

/* Initial positions */
@media (min-width: 700px) {
  .circle {
    top: calc(9vh * var(--top-start));
    left: calc(9vw * var(--left-start));
  }
}

/* Gradually move circles towards the center */
@media (max-width: 700px) {
  .circle {
    top: calc((50vh - 75px) * var(--top-start) / 4);
    left: calc((50vw - 75px) * var(--left-start) / 4);
  }
  body {
    background-color: rgb(39, 50, 85);
  }
}

@media (max-width: 550px) {
  .circle {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  body {
    background-color: rgb(208, 237, 237);
  }
}

/* Default background for large viewports */
body {
  background-color: black;
  transition: background-color 2s ease;
}

/* Media query for medium-sized viewports */
@media (max-width: 1200px) {
  body {
    background-color: #1b1a24; /* Dark purple */
  }
}

/* Media query for smaller medium-sized viewports */
@media (max-width: 992px) {
  body {
    background-color: #1c233a; /* Purple */
  }
}

/* Media query for tablet-sized viewports */
@media (max-width: 768px) {
  body {
    background-color: #3960b3; /* Lighter purple */
  }
}

/* Media query for mobile viewports */
@media (max-width: 576px) {
  body {
    background-color: #4b7de9; /* Even lighter purple */
  }
}

/* Media query for small mobile viewports */
@media (max-width: 550px) {
  body {
    background-color: rgb(208, 230, 237);
  }
}
