.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  text-align: center;
}

.close-btn {
  background: var(--forth-color);
  color: var(--fifth-color);
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  margin-top: 15px;
  cursor: pointer;
}


.popup-1 {
  margin: 10px;
}

.popup-2 {
  margin: 5px;
}

.popup-5-1 {
  font-weight: bold;
  font-size: 26px;
}

.popup-31 {
  margin: 15px 0 0 0;
  padding: 25px;
  background-color: var(--fifth-color);
  border-radius: 10px;
  border: 1px dashed var(--primary-color);
}

.popup-31-1 p {
  font-size: 18px;
  font-weight: bold;
}

.popup-31-2 p {
  font-size: 14px;
  font-weight: normal;
}

.popup-31-3 {
  margin-top: 10px;
  font-size: 12px;
  font-weight: normal; 
}

.popup-11-1 img {
  margin: 15px 0 0 0;
  width: 150px;
  height: 150px;
}

.popup-51-1 {
  display: flex;
}

.popup-51-2 {
  display: flex;
  margin: auto;
  width: auto;    
  border: 1px solid #000000;
  border-radius: 10px;
}

.popup-51-2 select {
  padding: 10px;
  border: none;
  border-radius: 10px;
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  transition: border-color 0.3s ease;
}

.popup-51-3 {
  margin-left: 10px;
  width: auto;
  border-radius: 0 10px 10px 0;
  display: flex;
  align-items: center;
  background-color: #ff0000;
}

.popup-51-3 button {
  margin: 0 25px;
  color: #ffffff;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.popup32 {
  color: var(--primary-color);
}





/* screen size define */

@media (min-width: 321px) and (max-width: 480px) {

  .popup {
    max-width: 300px;
  }

  .popup-1 {
    margin: 10px 0;
  }

  .popup-2 {
    margin: 5px 0;
  }

  .popup-5-1 {
    font-weight: bold;
    font-size: 16px;
  }

  .popup-11-1 img {
    margin: 5px 0 0 0;
    width: 80px;
    height: 80px;
  }

  .popup-31-1 p {
    font-size: 14px;
  }

  .popup-31-2 p {
    font-size: 12px;
  }

  .popup-31-3 {
    font-size: 9px; 
  }


}

/*
@media (max-width: 320px)
@media (min-width: 321px) and (max-width: 480px)
@media (min-width: 481px) and (max-width: 600px)
@media (min-width: 601px) and (max-width: 900px)
@media (min-width: 901px) and (max-width: 1200px)
@media (min-width: 1201px) and (max-width: 1800px)
@media (min-width: 1801px)
*/