@charset "UTF-8";

/* [스타일] 심플하고 모던한 다크 테마 */
body {
  font-family: "Apple SD Gothic Neo", sans-serif;
  background-color: #222;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
}

h1 {
  margin-bottom: 20px;
  color: #ffeb3b;
}

.container {
  position: relative;
  width: 640px;
  height: 480px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* 거울 모드 */
}

/* 카운트다운 오버레이 */
#countdown {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 100px;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
  display: none;
  z-index: 10;
}

/* 플래시 효과 */
#flash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s;
  z-index: 20;
}

.controls {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

button {
  padding: 15px 30px;
  font-size: 18px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s;
}

#startBtn {
  background-color: #ffeb3b;
  color: #333;
}
#startBtn:hover {
  transform: scale(1.05);
}
#startBtn:disabled {
  background-color: #555;
  color: #888;
  cursor: not-allowed;
}

#downloadBtn {
  background-color: #4caf50;
  color: white;
}
#downloadBtn:hover {
  transform: scale(1.05);
  background-color: #45a049;
}
#downloadBtn:disabled {
  background-color: #555;
  color: #888;
  cursor: not-allowed;
}

#retakeBtn {
  background-color: #2196f3;
  color: white;
}
#retakeBtn:hover {
  transform: scale(1.05);
  background-color: #1976d2;
}
#retakeBtn:disabled {
  background-color: #555;
  color: #888;
  cursor: not-allowed;
}

#filterBtn {
  background-color: #9c27b0;
  color: white;
}
#filterBtn:hover {
  transform: scale(1.05);
  background-color: #7b1fa2;
}

/* 필터 모달 */
.filter-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.filter-modal-content {
  background-color: #333;
  padding: 30px;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.filter-modal-content h3 {
  margin: 0 0 20px 0;
  color: #ffeb3b;
  text-align: center;
  font-size: 24px;
}

.filter-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.filter-option {
  padding: 15px 20px;
  background-color: #444;
  color: white;
  border: 2px solid #555;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
}

.filter-option:hover {
  background-color: #555;
  border-color: #ffeb3b;
  transform: scale(1.02);
}

.filter-option.active {
  background-color: #9c27b0;
  border-color: #ffeb3b;
  font-weight: bold;
}

.close-btn {
  width: 100%;
  padding: 12px;
  background-color: #666;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.close-btn:hover {
  background-color: #777;
}

/* 결과 화면 영역 */
#resultArea {
  margin-top: 30px;
  display: none; /* 평소엔 숨김 */
  flex-direction: column;
  align-items: center;
}

.result-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  justify-content: center;
  align-items: center;
}

#resultImg {
  max-width: 300px; /* 화면에선 작게 보여주기 */
  border: 5px solid white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

