* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* TODO: Edit the properties below to customize your website! */
body {
  background: linear-gradient(to right, #8e44ad, #2ecc71);
  display: flex;
  align-items: center;
  flex-direction: column;
  font-family: "Roboto", sans-serif;
  height: 100%;
}

header {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* This is default, but added for clarity */
  height: 100px;
  padding: 0 40px;
  background: transparent;
  /* keep gradient from body visible */
  width: 100%;
  margin-left: 10%;
}

/* Logo styles */
.logo {
  font-family: "Great Vibes", cursive;
  font-size: 80px;
  color: white;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  /* Removed float and margin */
}

h1 {
  font-size: 20pt;
  margin: 20px 50px 30px 50px;
}

p {
  width: 80%;
  text-align: justify;
  margin: 10px 50px;
}
.bubble {
  background-color: rgba(
    243,
    230,
    249,
    0.9
  ); /* Light purple with transparency */
  border: 1px solid rgba(142, 68, 173, 0.3); /* Match purple tone */
  border-radius: 12px;

  width: 80%;
  padding: 20px 30px;
  margin: 50px auto 20px auto;

  text-align: justify;
  color: #2c2c2c;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Hover Effect */
.bubble:hover {
  box-shadow: 0 12px 24px rgba(142, 68, 173, 0.25);
  transform: translateY(-5px);
  border-style: solid;
  border-color: rgba(46, 204, 113, 0.8); /* Solid greenish border */
}

.bubble-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap; /* stack on smaller screens */
}

.bubble-image {
  width: 250px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  margin-top: 20px;
}

.bubble-text {
  flex: 1;
  min-width: 250px;
}

/* 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;
}
