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

body {
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  background: #fafafa;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  max-width: 900px;
  width: 100%;
  background-image: url('./faces/neutral.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 2px;
  padding: 60px 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.header {
  text-align: center;
  margin-bottom: 40px;
}

.header h1 {
  font-size: 32px;
  font-weight: 400;
  color: #2c2c2c;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.header__description {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
  font-weight: 300;
}

.controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.btn {
  padding: 12px 24px;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  background: white;
  color: #333;
  transition: all 0.2s ease;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
}

.btn--primary {
  background: white;
  border: 1px solid #333;
  color: #333;
}

.btn--primary:hover {
  background: #f9f9f9;
}

.btn--secondary {
  background: white;
  color: #666;
  border: 1px solid #ddd;
}

.btn--secondary:hover {
  background: #f5f5f5;
}

.hidden {
  display: none;
}

.status-display {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
}

.status-item {
  background: #fafafa;
  padding: 16px 24px;
  border-radius: 2px;
  border: 1px solid #e0e0e0;
}

.status-label {
  font-size: 11px;
  color: #888;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 6px;
}

.status-value {
  font-size: 15px;
  color: #333;
  font-weight: 400;
}

.app-main {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.detection-area {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  border: 1px solid #e0e0e0;
  flex: 0 0 auto;
}

#video {
  display: block;
  width: 400px;
  height: auto;
  border-radius: 0;
}

#overlay {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.expression-display {
  text-align: center;
  background: white;
  padding: 40px;
  border-radius: 2px;
  border: 1px solid #e0e0e0;
  width: 400px;
  flex: 0 0 auto;
}

.expression-image {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border-radius: 2px;
  margin-bottom: 24px;
  border: 1px solid #e0e0e0;
}

.expression-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.placeholder-text {
  color: #888;
  font-size: 15px;
  font-weight: 300;
}

.expression-name {
  font-size: 24px;
  font-weight: 400;
  color: #333;
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

.footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
  color: black;
  font-size: 13px;
  font-weight: 300;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(250, 250, 250, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 40px;
  border-radius: 2px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid #e0e0e0;
}

.modal-content h3 {
  color: #333;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 16px;
}

.modal-content p {
  color: #666;
  margin-bottom: 24px;
  line-height: 1.8;
  font-weight: 300;
}

.loading-spinner {
  width: 100%;
  height: 4px;
  background: #e0e0e0;
  border-radius: 0;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .container {
    padding: 40px 20px;
  }

  .header h1 {
    font-size: 26px;
  }

  .status-display {
    flex-direction: column;
  }

  .app-main {
    flex-direction: column;
    align-items: center;
  }

  .detection-area,
  .expression-display {
    width: 100%;
    max-width: 400px;
  }

  .expression-image {
    height: 200px;
  }
}