body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: url("../img/background.webp");
  background-size: cover;
  background-position: center;
  
}

.container {
  display: flex;
  /* flex-wrap: wrap; */
  height: auto;
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip .tooltiptext{
  font-size: 0.9em;
  visibility: hidden;
  width: 300px;
  background-color: #555;
  color: #fff;
  text-align: left;
  word-break: keep-all;
  border-radius: 6px;
  padding: 10px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -160px;
  opacity: 0;
  transition: opacity 0.3s;
}


.small-tooltip .tooltiptext{
  width: 130px;
  margin-left: -75px;

}

.small-tooltip2 .tooltiptext{
  width: 130px;
  margin-left: -75px;

}

.new-tooltip .tooltiptext {
  bottom: 380%;
}

.new-tooltip .tooltip-icon3 {
  max-width: 30px; 
  max-height: 30px;
  margin-top: -120px;
  margin-bottom: 20px;
}


.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.tooltip-icon {
  max-width: 20px; 
  max-height: 20px;
}

.tooltip-icon2 {
  max-width: 30px; 
  max-height: 30px;
}

.main {
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.header {
  background-color: rgba(255, 255, 255, 0.8);
  color: #ff7300;
  font-size: 0.8em;
  padding: 0px;
  text-align: center;
  border-bottom: 2px solid #ddd;
}

.content {
  display: grid;
  grid-template-areas:
      "timer resolution tutorial"
      "my-area resolution tutorial"
      "item-timer resolution tutorial"
      "update resolution tutorial"
      "my-area2 resolution my-area3" ;
  grid-template-columns: 0.9fr 2fr 1.1fr;
  grid-template-rows: auto auto;
  gap: 20px; 
  padding: 10px;
  box-sizing: border-box;
  position: relative;
  word-break: keep-all;

  
}

.upper-content {
  display: contents;
}


/* 소비타이머 */
.item-timer {
  grid-area: item-timer;
  padding: 10px;
  height: auto; 
  min-width: 320px;
  margin-bottom: 0px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  /* padding: 10px; */
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  font-size: 0.9em;
  /* top: 100px; */
  margin-top: 20px;
}

.item-selection-container {
  display: flex;
  justify-content: center; 

  gap: 100px;
}

.item-selection {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
  cursor: pointer;
  position: relative;
  
}

.item-selection.selected{
  filter: none;
}

.item-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.row {
  display: flex;
  justify-content: space-between;
  margin-bottom: -20px;
}

/* 타이머 글씨 */
.item-timer-text {
  font-size: 0.95em;
  flex: 1;
  text-align: center; 
  overflow: hidden;
  margin-bottom: 30px;
  background-color: #ffffff;
  color: #000;
  padding: 5px;
  border: 3px solid #ccc;
  font-weight: bold;

  /* background-color: #f9f9f9; 배경색 */
}

#alertSoundSelect {
  width: auto;
  padding: 2px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9em;
  color: #333;
}


#extraAlertSoundSelect {
  width: auto;
  padding: 2px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9em;
  color: #333;
}

#extraAlertRepeatSelect {
  width: auto;
  padding: 2px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9em;
  color: #333;
}


.item-alert-sound-container{
  text-align: center;
}

.alert-sound-select {
  width: auto;
  padding: 2px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9em;
  color: #333;
  margin-bottom: 15px;
}

.time-adjust-button {
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9em;
  color: #333;
  background-color: #f0f0f0; 
  cursor: pointer; 
  margin: 5px; 
  transition: background-color 0.3s ease;
}

.time-adjust-button:hover {
  background-color: #e0e0e0;
}

.time-adjust-button:active {
  background-color: #d0d0d0; 
}

.item-timer-control {
  display: flex;

  justify-content: center; 
}

.item-time-select-container{
  display: flex;
  gap: 5px;
  justify-content: center; 
}

/* -버튼  */
.time-adjust-button.decrement {
  background-color: rgb(255, 165, 165); 
}

/* + 버튼 */
.time-adjust-button.increment {
  background-color: rgb(165, 165, 255); 
}

.item-volume-control-container{
  text-align: center;
}

.item-volume-control-container input[type="range"] {
  accent-color: rgb(0, 117, 255); /* Edge와 최신 브라우저에서 슬라이더 색상 변경 */
}



.item-volume-slider{
  width: 200px;
}

.item-alert-sound-label{
  display: flex;
  justify-content: center; 

}




/* 일반 타이머 */
.timer {
  grid-area: timer;
  padding: 10px;
  height: 200px; 
  min-width: 320px;
  margin-bottom: 0px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  /* padding: 10px; */
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  font-size: 1.5em;
}

.timer-text {
  font-weight: bold;
  text-align: center;
}

#volumeControl {
  width: 200px;
}


/* #volumeControl {
  width: 200px;
} */

.volume-control-container {  
  font-size: 0.7em;
  text-align: center;
}

.volume-control-container input[type="range"] {
  accent-color: rgb(0, 117, 255); /* Edge와 최신 브라우저에서 슬라이더 색상 변경 */
}



.alert-sound-container{
  font-size: 0.7em;
  text-align: center;
}
  
.alert-sound-container-dong{
  /* font-size: 0.7em; */
  text-align: center;
}
  

.resolution {
  grid-area: resolution;
  padding: 20px;
  min-width: 550px;
  height: auto; 
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}


#resolutionForm label {
  font-weight: bold;
  color: #ff1900;
  margin-bottom: 5px;
  font-size: 1.3em;
}

#resolutionDropdown {
  padding: 10px;
  font-size: 1em;
  border: 2px solid #ddd;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.3s ease;
  width: auto;
  text-align: center;
  margin-bottom: 15px;
}

#resolutionDropdown:focus {
  border-color: #007bff;
}

#resolutionDropdown option {
  padding: 10px;
}

.highsimilar-text {
  text-align: center;
  font-weight: bold;
  font-size: 1.3em;
  color: #0d00ff;
}

.slider-container {
  text-align: center;
  width: 70%;
  margin: 5px auto 1px auto; 
}

.slider-container input {
  padding: 7px;
  font-size: 14px;
  text-align: center;
  font-weight: bold;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-sizing: border-box;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}


/* 동꼽 */
.slider-container-dong {
  text-align: center;
  width: 70%;
  margin: 5px auto 1px auto; 
}

.slider-container-dong input {
  padding: 4px;
  font-size: 0.85em;
  text-align: center;
  font-weight: bold;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-sizing: border-box;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}


.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 15px;
  background: #585050;
  outline: none;
  opacity: 0.7;
  transition: opacity 0.15s ease-in-out;
  border-radius: 5px;
}

.slider:hover {
  opacity: 1;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  background: #4caf50;
  cursor: pointer;
  border-radius: 50%;
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: #4caf50;
  cursor: pointer;
  border-radius: 50%;
}

.slider-label {
  text-align: center;
  font-weight: bold;
}

/* 동꼽  */
.slider-label.extra-alert-delay-label1 {
  font-size: 1em;     
}

/* 동꼽  */
.slider-label.extra-alert-delay-label {
  font-size: 0.85em;     
}

.image-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  width: 100%;
  margin-bottom: 30px;
  gap: 50px; 
}

.image-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: visible;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
  cursor: pointer;
  position: relative;
  margin-top: 10px;
  margin-bottom: 50px;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-wrapper.selected {
  filter: none;
}

.image-text {
  position: absolute;
  bottom: -60px;
  left: 50%;
  width: 100px;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  text-align: center;
  pointer-events: none;
  
}



#solImage {
  width: 150px;
  height: 150px;
}
#erdaImage {
  width: 150px;
  height: 150px;
}
#npcImage {
  width: 150px;
  height: 150px;
}


#infinityImage {  
  margin-top: 40px;
  width: 100px;
  height: 100px;
}

#poisonImage {  
  margin-top: 40px;
  width: 100px;
  height: 100px;
}

#thunderSphereImage {  
  margin-top: 40px;
  width: 100px;
  height: 100px;
}

#laraImage {  
  margin-top: 40px;
  width: 100px;
  height: 100px;
}

#illiumImage {  
  margin-top: 40px;
  width: 100px;
  height: 100px;
}

#battlemageImage {  
  margin-top: 40px;
  width: 100px;
  height: 100px;
}

#capatainBattleshipImage {  
  margin-top: 40px;
  width: 100px;
  height: 100px;

}#capatainSignImage {  
  margin-top: 40px;
  width: 100px;
  height: 100px;
}


#cygnusPhalanxImage {  
  margin-top: 40px;
  width: 100px;
  height: 100px;
}


#freudImage {  
  margin-top: 40px;
  width: 100px;
  height: 100px;
}


#fatalStrikeImage {  
  margin-top: 40px;
  width: 100px;
  height: 100px;
}

#limboImage {  
  margin-top: 40px;
  width: 100px;
  height: 100px;
}

#npcImage2 {  
  margin-top: 40px;
  width: 100px;
  height: 100px;
}


#infiText {
  width: 120px;
  bottom: -100px;
}

#poisonText {
  width: 120px;
  bottom: -100px;
}

#thunderSphereText {
  width: 120px;
  bottom: -100px;
}

#laraText {
  width: 120px;
  bottom: -100px;
}

#illiumText {
  width: 120px;
  bottom: -100px;
}


#battlemageText {
  width: 120px;
  bottom: -100px;
}

#capatainBattleshipText {
  width: 120px;
  bottom: -100px;
}

#capatainSignText {
  width: 120px;
  bottom: -100px;
}

#cygnusPhalanxText {
  width: 120px;
  bottom: -100px;
}


#freudText {
  width: 120px;
  bottom: -100px;
}



#fatalStrikeText {
  width: 120px;
  bottom: -100px;
}

#limboText {
  width: 120px;
  bottom: -100px;
}

#npcText2 {
  width: 120px;
  bottom: -100px;
}



.image-warning {
  /* margin-top: 10px; */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  font-size: 1.0em;
  font-style: italic;
  color: #f83e2a;
}

#startButton {
  padding: 12px 25px;
  font-size: 20px; 
  margin-bottom: 20px;
  background-color: #f57c00; 
  color: white;
  border: 1px solid #e64a19;
  border-radius: 8px; 
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  font-weight: bold; 
}

#startButton:hover {
  background-color: #fb8c00;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px); 
}

#startButton:active {
  background-color: #ef6c00;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transform: translateY(0); 
}

#startButton:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 124, 0, 0.5); 
}

#video {
  max-width: 80%;
  max-height: 200px;
  border: 1px solid #000;
  margin-bottom: 20px;
}

.update{
  grid-area: update;
  top: 300px;
  padding: 20px;
  height: auto; 
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  /* margin-bottom: 450px; */
  word-break: keep-all;
}

.date{
  color: red;
  font-weight: bold;
  font-size: large;
}


.tutorial {
  grid-area: tutorial;
  min-width: 243px;
  padding: 20px;
  height: auto; 
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.tutorial-content {
  margin-top: 20px;
  word-break: keep-all;

}
.tutorial-step {
  display: none;
}
.tutorial-image{
  max-width: 80%;
  height: auto;
}
.tutorial-video{
  max-width: 80%;
  height: auto;
}


.tutorial-button {
  margin-top: 0px;
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.my-area {
  background-color: rgba(255, 255, 255, 0.1);
  grid-area: my-area;
  left: 20px;
  /* padding: 20px; */
  width: 300px;
  height: 250px;
  position: relative;
  z-index: 1000;
}

.my-area2 {
  background-color: rgba(255, 255, 255, 0.1);
  grid-area: my-area2;
  left: 20px;

  /* padding: 20px; */
  width: 300px;
  height: 250px;
  position: relative;
  z-index: 1000;
}


.my-area3 {
  background-color: rgba(255, 255, 255, 0.1);
  grid-area: my-area3;
  left: 20px;

  /* padding: 20px; */
  width: 300px;
  height: 250px;
  position: relative;
  z-index: 1000;
}

.message {
  /* position: relative; */
  margin-top: 10px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.message.show {
  opacity: 1;
}


.kakao_ad_area{
/* padding: 10px; */
top: -240px;
width: 300px;
height: 250px;
}


.footer {
  
  box-sizing: border-box;
  margin-top: 10px;
  text-align: center; 

  margin-left: 10px;
  margin-right: 10px;
  border-radius: 10px;

  display: flex;
  justify-content: space-between;
  background-color: #f5f5f5;
  /* border-top: 2px solid #ddd; */
  /* padding: 10px; */
  height: 145px;
  hyphens: auto;
  word-break: keep-all;
}



.footer div {
  flex: 1;
  margin: 10px;
  padding: 20px;
  box-sizing: border-box;
}

.footer-page {
  justify-content: center; 
  align-items: center; 
  text-align: center; 
  width: 100%; 
  padding: 10px; 
  box-sizing: border-box; 
  bottom: 0;
}

.footer-links{
  font-size:0.8rem; 
  color:#a5a5a5;        
  margin-bottom:4px;
}
.footer-links a{
  color:#b0b0b0;
  text-decoration:none;
}
.footer-links a:hover{color:#ffffff} 


/* 컨테이너 */
.rd-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;               /* 텍스트-토글 간격 */
  cursor: pointer;
}

/* 텍스트 */
.rd-text {
  font-weight: 600;
  color: #000000;         /* 딥그레이 */
}

/* 실제 체크박스는 숨김 */
.rd-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* 토글 트랙 */
.rd-toggle {
  position: relative;
  width: 36px;
  height: 20px;
  background-color: #d1d5db;  
  border-radius: 9999px;
  transition: background-color .2s ease;
}

/* 토글 핸들 */
.rd-toggle::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform .2s ease;
}

/* 체크됐을 때 색/위치 */
.rd-input:checked + .rd-toggle {
  background-color: #f57c00;   /* 초록(ON) */
}
.rd-input:checked + .rd-toggle::before {
  transform: translateX(16px);
}


@media (max-width: 1090px) {
  .content {
      grid-template-areas:
          "timer resolution"
          "my-area resolution"
          "item-timer resolution"
          "update resolution"
          "my-area2 resolution"
          "my-area3 tutorial";
          grid-template-columns: 1fr 3fr;
      }

  .resolution{
      width: 85%;
      /* margin-left: 30px; */
      height: auto;
  }



  .tutorial{
      max-width: auto;
      /* margin: auto; */
      height: auto;
  }
  
  .tutorial-image{
    max-width: 80%;
    height: auto;
  }
  .tutorial-video{
    max-width: 80%;
    height: auto;
  }
  
  
  .footer {
      flex-direction: column;
      height: auto;
      margin-left: 20px;
  }

}



@media (max-width: 861px) {
  .content {
      grid-template-areas:
          "timer my-area"
          /* "timer message" */
          /* 버그 해결법몰루.. */
          "item-timer item-timer"
          "resolution resolution"
          "my-area2 update"
          "my-area3 tutorial";
      grid-template-columns: 1fr;
  }

  .timer {
      margin-bottom: 0px;
      height: 220px;
      min-width: 270px;
      margin-left: 0;

  
  }

  .resolution{
      height: auto;
  }
  

  .resolution  {
      width: 80%;
      box-sizing: border-box; /
  }

  .tutorial
  {
    width:auto;
    margin-left: 10px;
    
  }
  
  .timer, .resolution, .my-area{
      margin: auto;
  }
  
  .update {
    margin-bottom: 0px;
    margin-left: 10px;
    box-sizing: border-box;

  }

  .footer {
    box-sizing: border-box;
    flex-direction: column;
  }

  

  .skill-page .message {
    top: 15px;
    left: 426px;
    width: 200px;
  }
  .item-selection-container {
    gap: 300px;
  }

  .item-time-select-container{
    gap: 30px;
  }


}
