/* Base */
body {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* background */
#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw; /* fixed: removed space */
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}

.container {
  z-index: 2;
  display: flex;
  flex-direction: column;
}

/* ----------------------------------- */
/* button----------------------------- */
/* ----------------------------------- */

button {
  margin: 15px;
  padding: 8px;
  width: 200px;
  font-size: 30px;
  font-family: "Bodoni Moda", serif;
  color: white;
  font-weight: bolder;
  border: none;
  background-color: rgba(186, 191, 149, 0.1);
  border-radius: 25px;
}

#shuffle-btn {
  margin-left: -5px;
}

#play-btn {
  width: 130px;
  margin-right: -5px;
}

.focus {
  outline: none; /* remove default browser ring */
  background-color: rgba(186, 191, 149, 0.5);
  box-shadow: 0 0 15px rgba(186, 191, 149, 0.6);
}

#reset-btn {
  width: 130px;
  margin-right: -5px;
}
button:hover {
  color: #fff3d8;
  cursor: pointer;
  scale: 1.1;
  background-color: rgba(186, 191, 149, 0.2);
  border: 1px solid #fff3d8; /* proper border */
}

/* --------------------------------------- */
/* tab groups----------------------------- */
/* --------------------------------------- */

section {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 70vh;
  justify-content: center;
  margin-left: 5%;
  margin-right: 5%;
}

/* --------------------------------------- */
/* Main Interaction----------------------- */
/* --------------------------------------- */

#mainInteraction {
  margin-top: 140px;
}

#play-pause {
  align-self: flex-end;
  text-align: right;
}

.text-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

textarea,
.highlight-display {
  font-family: "Intel One Mono", monospace;
  color: white;
  font-size: 16px;
  line-height: 1.5;
  padding: 20px;
  border: 4px solid white;
  border-radius: 30px;
  height: 300px;
  width: 100%;
  box-sizing: border-box;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-y: auto;
}

textarea {
  position: relative;
  background: transparent;
  color: transparent; /* hide text */
  caret-color: black; /* show caret */
  resize: none;
  z-index: 2;
}

.highlight-display {
  position: absolute;
  top: 0;
  left: 0;
  color: white;
  z-index: 1;
  pointer-events: none;
}

textarea::placeholder {
  color: #babf95;
}

/* --------------------------------------- */
/* circle ----------------------- */
/* --------------------------------------- */
/* Base ripple container */
.ripple-container {
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* Base ripple container */
.ripple-container2 {
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
  transition: opacity 1s ease-in-out;
}

.ripple-container2.hidden {
  opacity: 0;
}

/* Positioning the 5 clusters */
.ripple-top-left {
  top: 1%;
  left: 25%;
  width: 350px;
  height: 350px;
  scale: 1.3;
}

.ripple-left {
  top: 10%;
  left: -13%;
  width: 500px;
  height: 500px;
  scale: 0.5;
}

.ripple-top-right {
  top: 20%;
  left: 90%;
  width: 300px;
  height: 300px;
  scale: 1.3;
}

.ripple-center {
  top: 90%;
  left: 27%;
  width: 500px;
  height: 500px;
  scale: 0.65;
}

.ripple-center-bottom {
  top: 70%;
  left: 50%;
  width: 500px;
  height: 500px;
  scale: 0.8;
}

.ripple-center-right {
  top: 5%;
  left: 50%;
  width: 500px;
  height: 500px;
  scale: 0.75;
}

.ripple-bottom-left {
  top: 100%;
  left: 2%;
  width: 250px;
  height: 250px;
  scale: 1.5;
}

.ripple-bottom-right {
  top: 100%;
  left: 85%;
  width: 400px;
  height: 400px;
  scale: 1.2;
}

/* All circles are centered inside their container */
.ripple-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.4;
  /* animation: ripplePulse 5s ease-out; */
}

.ripple-circle:nth-child(1) {
  width: 450px;
  animation-delay: 0.6s;
}
.ripple-circle:nth-child(2) {
  width: 350px;
  animation-delay: 0.4s;
}
.ripple-circle:nth-child(3) {
  width: 250px;
  animation-delay: 0.2s;
}
.ripple-circle:nth-child(4) {
  width: 150px;
}

@keyframes ripplePulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
  15% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0;
  }
}

.active {
  animation: ripplePulse 4s ease-out;
}

.hidden {
  display: none;
}
