@font-face {
  font-family: "NanumSquareNeo-Variable";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_11-01@1.0/NanumSquareNeo-Variable.woff2")
    format("woff2");
}

body {
  margin: 0 auto;
  background-color: #f4f4f4;
  font-family: "NanumSquareNeo-Variable";
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-weight: 500;
}

#date {
  margin: 0;
}

.all_style {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 20px;
}

.two-weeks {
  font-size: 10px;
  color: #888;
  font-weight: 300;
}

.myForm,
.form_r_style {
  width: 100%;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.08);
  background-color: #fff;
  border-radius: 15px;
  padding: 20px;
}

h1 {
  font-size: 24px;
  font-weight: 500;
  margin-top: 2%;
  margin-bottom: 20px;
  text-align: center;
  color: #555;
}
.logo {
  width: 200px;
  margin: 0 auto;
  display: block;
  margin-top: 65px;
  margin-bottom: 10px;
}
h2 {
  font-size: 20px;
  margin-top: 1%;
  margin-bottom: 20px;
  text-align: center;
  color: #1d1d1f;
}
.p1 {
  font-size: 15px;
  margin-top: 5%;
  margin-bottom: 20px;
  text-align: center;
  color: #c8c8c8;
}

label {
  display: inline-block;
  width: 15%;
  text-align: right;
  margin-right: 10px;
  margin-bottom: 20px;
  color: #555;
}

input[type="number"] {
  width: 67.5%;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

/*****************************************/
#shape-select {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  padding: 10px;
  padding-bottom: 5px;
  border-radius: 10px;
}

#shape-select p {
  margin-right: 10px;
}

#shape-select label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 0px;
}

#shape-select label:hover {
  opacity: 0.7;
}

#shape-select input[type="radio"] {
  display: none;
}

#shape-select img {
  width: 100%;
  border-radius: 5px;
}

#shape-select span {
  font-size: 12px;
  margin-top: 4px;
}

#shape-select input[type="radio"]:checked + img {
  border: 1px solid #1d1d1f;
}
/*****************************************/

select {
  width: 70%;
  height: 40px;
  padding: 7px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

input[type="submit"] {
  display: block;
  width: 49%;
  height: 40px;
  padding: 10px;
  background-color: #007bff;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  float: left;
}

#add_row_btn {
  display: block;
  width: 49%;
  padding: 10px;
  background-color: #ddd;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  float: right;
  opacity: 0.5;
}

#add_row_btn.active {
  background-color: #007bff;
  opacity: 1;
}

#download-btn {
  width: 100%;
  padding: 10px;
  margin-top: 20px;
  display: block;
  background-color: #ddd;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  opacity: 0.5;
}
#download-btn.active {
  background-color: #007bff;
  opacity: 1;
}
.result {
  width: 100%;
  margin: 0 auto;
  text-align: left;
  margin-top: 20px;
}

.all_cal {
  margin-top: 20px;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 20px;
}

th,
td {
  text-align: center;
  padding: 5px;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f2f2f2;
}

.meta {
  margin-top: 3%;
}

/* 팝업 */
h3 {
  margin: 0;
}
.content > p {
  margin-top: 5px;
}
.popup-content > .title {
  min-height: 40px;
  font-size: 15px;
  color: #fff;
  background-color: #007bff;
  padding: 10px 15px;
  box-sizing: border-box;
  font-weight: 500;
}
.popup-content > .content {
  padding: 20px;
  box-sizing: border-box;
}
.popup {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.popup_button {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: white;
  border: 1px solid rgb(142, 142, 142);
  color: rgb(142, 142, 142);
  margin-left: 5px;
  cursor: pointer;
}
.popup-content {
  background-color: #fefefe;
  margin: 15% auto;
  border: 1px solid #888;
  width: 45%;
  border-radius: 15px;
  overflow: hidden;
}

.close {
  color: #ffffff;
  float: right;
  font-size: 28px;
  font-weight: 500;
  margin-right: 10px;
}

.close:hover,
.close:focus {
  color: #1d1d1f;
  text-decoration: none;
  cursor: pointer;
}
/**색상표**/
.popup-content > .content > div > p {
  font-size: 8px;
  text-align: center;
  margin-top: 40%;
  color: #1d1d1f;
}
.color-box {
  display: inline-block;
  width: 70px;
  height: 70px;
  margin: 5px;
  border-radius: 20%;
  box-shadow: 0 0 5px rgba(137, 137, 137, 0.5);
}

.red {
  background-color: red;
}
.orange {
  background-color: orange;
}
.yellow {
  background-color: yellow;
}
.green {
  background-color: rgb(12, 120, 12);
}
.ivory {
  background-color: ivory;
}
.skyblue {
  background-color: skyblue;
}
.purple {
  background-color: rgb(84, 15, 110);
}
.pink {
  background-color: pink;
}
.pastel-green {
  background-color: #b2d8b2;
}
.pastel-yellow {
  background-color: #f0e68c;
}
.pastel-blue {
  background-color: #add8e6;
}
.pastel-pink {
  background-color: #ffb6c1;
}
.pastel-purple {
  background-color: #b19cd9;
}
.pastel-sky {
  background-color: #87cefa;
}
.pastel-beige {
  background-color: #dad3c1;
}
.pastel-ivory {
  background-color: #fffff0;
}
.pastel-gray {
  background-color: #c9c9c9;
}
.black {
  background-color: rgb(42, 42, 42);
}
.gray {
  background-color: gray;
}
.light-gray {
  background-color: lightgray;
}
.ivory-white {
  background-color: #fffff0;
}
.beige {
  background-color: beige;
}
.brown {
  background-color: #c3af8e;
}

.shop-style {
  width: 100%;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.08);
  background-color: #fff;
  border-radius: 15px;
  padding: 20px;
}
.shop-style-font,
.shop-style-font-ass,
.shop-style-font-sub {
  font-size: 20px;
  margin-left: 20px;
  font-weight: 600;
  color: #1d1d1f;
}
.shop-style-font-ass {
  color: #10ce72;
}
.shop-style-font-sub {
  color: #eba500;
}

@media screen and (min-width: 762px) and (max-width: 1260px) {
  .all_style {
    max-width: 762px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-direction: column;
  }
  .myForm,
  .form_r_style {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 0px;
    margin-right: 0px;
  }
  .popup-content {
    width: 60%;
  }
  #shop-link-style {
    margin-top: 20px;
  }
}

@media screen and (max-width: 761px) {
  #shape-select p {
    margin-right: 10px;
  }
  .all_style {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-direction: column;
  }

  .myForm,
  .form_r_style {
    width: 85%;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.08);
  }
  .popup-content {
    width: 90%;
  }
  th,
  td {
    font-size: 10px;
  }
  #shape-select {
    gap: 5px;
    padding: 10px;
  }
  input[type="number"] {
    height: 25px;
  }
  select {
    height: 40px;
  }
  input[type="submit"] {
    height: 40px;
  }
  #add_row_btn {
    height: 40px;
  }
  #download-btn {
    height: 40px;
  }
  .shop-style {
    width: 85%;
  }
  #shop-link-style {
    margin-top: 20px;
  }
  .shop-style-font,
  .shop-style-font-ass,
  .shop-style-font-sub {
    font-size: 17px;
  }
}
