html {
  height: 100%;
  width: 100%;
  font-family: sans-serif;
}

/* TODO: Edit the properties below to customize your website! */
body {
  background: linear-gradient(
      rgba(255, 255, 255, 0.5),
      rgba(255, 255, 255, 0.5)
    ),
    url("background.png");
  cursor: url("navigation.png"), auto;
  display: flex;
  align-items: center;
  flex-direction: column;
}
/* Bubble container */
.bubbles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

/* Individual bubbles */
.bubbles span {
  position: absolute;
  top: 100%;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  animation: rise 20s linear infinite;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.6);
}

/* Bubble animation */
@keyframes rise {
  0% {
    transform: translateY(0);
    opacity: 1.8;
  }
  100% {
    transform: translateY(-120vh);
    opacity: 1.5;
  }
}

/* Different sizes & speeds */
.bubbles span:nth-child(1) {
  left: 10%;
  width: 50px;
  height: 50px;
  animation-duration: 10s;
}
.bubbles span:nth-child(2) {
  left: 25%;
  width: 70px;
  height: 70px;
  animation-duration: 14s;
}
.bubbles span:nth-child(3) {
  left: 40%;
  width: 45px;
  height: 45px;
  animation-duration: 12s;
}
.bubbles span:nth-child(4) {
  left: 55%;
  width: 80px;
  height: 80px;
  animation-duration: 18s;
}
.bubbles span:nth-child(5) {
  left: 70%;
  width: 45px;
  height: 45px;
  animation-duration: 11s;
}
.bubbles span:nth-child(6) {
  left: 80%;
  width: 85px;
  height: 85px;
  animation-duration: 16s;
}
.bubbles span:nth-child(7) {
  left: 50%;
  width: 25px;
  height: 25px;
  animation-duration: 9s;
}
.bubbles span:nth-child(8) {
  left: 90%;
  width: 40px;
  height: 40px;
  animation-duration: 13s;
}

body::before {
  animation: twinkle 4s infinite ease-in-out;
}
h1 {
  font-size: 20pt;
  margin: 20px 50px 30px 50px;
}

p {
  width: 80%;
  text-align: left;
  margin: 10px 50px;
}

.bubble {
  background-color: white;
  border-radius: 10px;

  width: 80%;
  padding: 5px 0;
  margin: 50px 0 10px 0;
}

/* Edit me to change the appearance of the button! */
button {
  font-size: 12pt;

  background-color: #c6b5e8;
  border: none;
  /* for rounded corners */
  border-radius: 5px;

  width: 150px;
  height: 50px;
  margin: 20px 50px;
}

button:hover {
  background-color: #d4d0d7;
  cursor: pointer;
}

/* The camera */
#webcam-container {
  display: flex;
  justify-content: center;
}

/* The labels */
#label-container {
  display: flex;
  flex-direction: column;
  align-items: center;

  font-size: 12pt;

  margin: 25px;
}
img {
  display: block;
  margin: 0 auto;
  padding: 10px;
  max-width: 35%;
  height: auto;
}

.upload-section {
  margin: 10px 50px 20px 50px;
}

.upload-section label {
  display: block;
  margin-bottom: 8px;
  font-size: 12pt;
  font-weight: bold;
}

#imageUpload {
  font-size: 11pt;
}

#image-preview-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

#uploaded-image {
  display: none;
  max-width: 200px;
  max-height: 200px;
  border-radius: 10px;
  border: 2px solid #c6b5e8;
  padding: 5px;
}
