
@font-face {
  font-family: 'NanumSquareNeo';
  src: url('fonts/NanumSquareNeo-aLt.ttf') format('truetype');
  font-weight: 300;
}
@font-face {
  font-family: 'NanumSquareNeo';
  src: url('fonts/NanumSquareNeo-bRg.ttf') format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: 'NanumSquareNeo';
  src: url('fonts/NanumSquareNeo-cBd.ttf') format('truetype');
  font-weight: 700;
}
@font-face {
  font-family: 'NanumSquareNeo';
  src: url('fonts/NanumSquareNeo-dEb.ttf') format('truetype');
  font-weight: 800;
}
@font-face {
  font-family: 'NanumSquareNeo';
  src: url('fonts/NanumSquareNeo-eHv.ttf') format('truetype');
  font-weight: 900;
}


body {
  background-color: #121212;
  font-family: 'NanumSquareNeo', sans-serif;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
  margin: 0;
  color: #f1f1f1;
}


h1 {
  font-family:cursive;
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 900;
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}


#game-container {
  position: relative;
  width: 800px;
  height: 700px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #1e1e1e;
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.1),
    0 0 60px rgba(255, 255, 255, 0.05);
}


#game-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 800px;
  height: 800px;
  pointer-events: none;
  user-select: none;
}

#background { z-index: 0; }
#face      { z-index: 2; }
#clothes   { z-index: 1; }


#controls {
  margin-top: 30px;
  display: flex;
  gap: 20px;
}

#controls button {
  font-family: 'NanumSquareNeo', sans-serif; 
  font-weight: 700;
  padding: 12px 20px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background-color: #444;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#controls button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

#controls button:active {
  transform: scale(0.95);
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.15);
}

footer {
  position: fixed;      
  bottom: 0;                
  left: 0;
  width: 100%;               
  background-color: #1a1a1a; 
  color: #aaa;
  text-align: center;
  font-size: 14px;
  z-index: 9999;             
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
}

footer a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s;
}

a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: #4f8df7;
}


#music-source-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-content {
  background-color: #1e1e1e;
  padding: 24px 32px;
  border-radius: 10px;
  color: white;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}


.modal-content {
  background-color: #1e1e1e;
  padding: 24px 32px;
  border-radius: 10px;
  color: white;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}


.modal-content.show {
  animation: fadeSlideIn 0.3s ease forwards;
}


.modal-content.hide {
  animation: fadeSlideOut 0.3s ease forwards;
}


@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

span{
  color:#FFFFFF
}


#theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  background: #333;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
  transition: background 0.3s, color 0.3s;
}

#theme-toggle:hover {
  background: #555;
}


body.light-mode {
  background-color: #f2f2f2;
  color: #1a1a1a;
}

body.light-mode #controls button {
  background-color: #ddd;
  color: #000;
}

body.light-mode footer {
  background-color: #e0e0e0;
  color: #333;
}

body.light-mode footer a {
  color: #333;
}


body.light-mode #game-container {
  background-color: #fff;
  box-shadow:
    0 0 20px rgba(0, 0, 0, 0.1),
    0 0 60px rgba(0, 0, 0, 0.05);
}

body.light-mode #theme-toggle {
  background: #ddd;
  color: #000;
}

body.light-mode #theme-toggle:hover {
  background: #ccc;
}

body {
  transition: background-color 0.4s ease, color 0.4s ease;
}

#controls button,
#game-container,
footer,
#theme-toggle {
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

#random-effect-text {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px;
  font-weight: 800;
  color: #ffcc00;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  text-shadow: 0 0 10px #000;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #121212;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.5s ease;
  pointer-events: none; 
}
.loading-text {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}