:root {
  --primary-color: #e74c3c;
  --secondary-color: #3498db;
  --success-color: #2ecc71;
  --text-color: #333;
  --light-color: #f9f9f9;
}
html {
  overflow: hidden;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background: linear-gradient(
    45deg,
    rgb(174, 123, 124) 0%,
    #fad0c4 99%,
    #fad0c4 100%
  );
  min-height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  animation: float 15s infinite ease-in-out;
  z-index: -1;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-100px) rotate(180deg);
  }
}

.container {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
}

h1 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: clamp(1.5rem, 5vw, 2rem);
  text-align: center;
}

.subtitle {
  text-align: center;
  margin-bottom: 25px;
  font-size: clamp(0.9rem, 3vw, 1.1rem);
}

#excuse-display {
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  min-height: 120px;
  margin: 25px 0;
  padding: 20px;
  border-left: 5px solid var(--primary-color);
  background-color: rgba(249, 249, 249, 0.7);
  text-align: left;
  border-radius: 0 15px 15px 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

#excuse-display:hover {
  transform: translateX(5px);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
}

.buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  flex: 1 1 auto;
  min-width: 120px;
  text-align: center;
}

#generate-btn {
  background-color: var(--primary-color);
}

#generate-btn:hover {
  background-color: #c0392b;
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.2);
}

#copy-btn {
  background-color: var(--secondary-color);
}

#copy-btn:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(1px);
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: var(--success-color);
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: none;
  animation: slideIn 0.5s, fadeOut 0.5s 1.5s forwards;
  z-index: 1000;
  font-size: clamp(0.8rem, 3vw, 1rem);
}

@keyframes slideIn {
  from {
    right: -300px;
    opacity: 0;
  }
  to {
    right: 20px;
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

footer {
  margin-top: auto;
  color: rgba(51, 51, 51, 0.7);
  font-size: clamp(0.7rem, 3vw, 0.9rem);
  text-align: center;
  padding: 20px 0;
  width: 100%;
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .container {
    padding: 15px;
  }

  #excuse-display {
    padding: 15px;
    min-height: 100px;
  }

  .btn {
    padding: 10px 15px;
    min-width: 100%;
  }

  .buttons {
    gap: 8px;
  }
}

/* Планшеты и небольшие ноутбуки */
@media (min-width: 481px) and (max-width: 768px) {
  .container {
    padding: 20px;
  }
}
