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

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-family: 'Lora', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 600px;
}

.speech-bubble {
  position: relative;
  background-color: #fff;
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 100%;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.speech-bubble::after {
  z-index: 1;
}

.speech-bubble::before {
  z-index: 2;
  bottom: -70px;
  width: 10px;
  height: 10px;
}

#quote {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0.5rem;
}

#author {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  color: #666;
}

#new-quote-btn {
  padding: 0.75rem 1.5rem;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#new-quote-btn:hover {
  background-color: #0056b3;
}

footer {
  text-align: center;
  margin-top: 2rem;
}

footer p {
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  color: #666;
}

#hostname {
  font-weight: 700;
  color: #333;
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  .speech-bubble {
    padding: 1.5rem;
  }

  #quote {
    font-size: 1.2rem;
  }

  #author {
    font-size: 1rem;
  }

  .speech-bubble::after {
    bottom: -35px;
    width: 25px;
    height: 25px;
  }

  .speech-bubble::before {
    bottom: -55px;
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
  }

  .speech-bubble {
    padding: 1rem;
  }

  #quote {
    font-size: 1rem;
  }

  #author {
    font-size: 0.9rem;
  }

  #new-quote-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .speech-bubble::after {
    bottom: -30px;
    width: 20px;
    height: 20px;
  }

  .speech-bubble::before {
    bottom: -45px;
    width: 10px;
    height: 10px;
  }
}
