* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  width: 100%;
  max-width: 800px;
  text-align: center;
}

h1 {
  color: #6c5ce7;
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

.camera-container {
  margin-bottom: 1.5rem;
  position: relative;
}

#video {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background-color: #f0f0f0;
  margin: 0 auto;
  display: block;
}

.button-container {
  margin-top: 1rem;
}

button {
  background-color: #6c5ce7;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0.5rem;
}

button:hover {
  background-color: #5649c0;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.portrait-container {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
  flex-wrap: wrap;
}

#original-photo, #funny-portrait {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 10px;
}

.filter-options {
  margin: 1.5rem 0;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

.filter-btn {
  background-color: #74b9ff;
  margin: 0.3rem;
}

.filter-btn:hover {
  background-color: #0984e3;
}

.filter-btn.active {
  background-color: #0984e3;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

#download-btn {
  background-color: #00b894;
}

#download-btn:hover {
  background-color: #00a884;
}

@media (max-width: 768px) {
  .container {
      padding: 1rem;
  }
  
  h1 {
      font-size: 2rem;
  }
  
  #video, #original-photo, #funny-portrait {
      max-width: 100%;
  }
}