@font-face {
  font-family: 'Gamja Flower';
  src: url('./font/GamjaFlower-Regular.woff2') format('woff2'), url('./font/GamjaFlower-Regular.woff') format('woff');
  font-display: swap;
}

/* Reset CSS */

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  width: 100vw;
  height: 100vh;
  font-family: 'Gamja Flower', cursive;
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font-family: 'Gamja Flower', sans-serif;
  color: rgba(255, 255, 255, 0.85);
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.85);
}

button:focus,
button:active,
input:focus,
input:active,
textarea:focus,
textarea:active {
  outline: none;
  box-shadow: none;
}

ul,
ol,
li {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
/* 배경 */
.background {
  position: fixed;
  background-color: rgb(190, 190, 190);
  top: 0;
  left: 0;
}

.background img {
  position: absolute;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.5s linear;
}

.background img.loaded {
  opacity: 1;
}

.small-img {
  opacity: 0.5;
  filter: blur(100px);
}

.large-img {
  opacity: 0;
}

/* 컨텐츠 */
.contents-wrapper {
  position: relative;
  top: 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* 검색창 */
.search-section {
  position: absolute;
  width: 640px;
  display: flex;
  justify-content: space-between;
}

.search-section input {
  padding: 0px 10px;
  width: 200px;
  height: 40px;
  border-style: none;
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 28px;
}

.search-section form {
  position: relative;
}

.search-button {
  opacity: 80%;
  position: absolute;
  top: 12%;
  right: 1px;
}

.search-button img {
  width: 28px;
}

/* 시간과 날씨 */

.time {
  display: inline-block;
  margin: 20px 10px 0 0;
  height: 220px;
  font-size: 190px;
  text-shadow: 10px 10px 10px rgba(0, 0, 0, 0.6);
}

.weather {
  display: inline-block;
  height: 100px;
}

.weather-icon-temp {
  display: flex;
  height: 70px;
}

.weather-icon img {
  display: block;
  margin-right: 5px;
  opacity: 90%;
  filter: brightness(500%) drop-shadow(3px 3px 3px rgba(0, 0, 0, 0.3));
  width: 70px;
}

.weather-temp {
  text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.6);
  font-size: 40px;
  line-height: 70px;
}

.clothes-icon-temp {
  display: flex;
  width: 120px;
  padding: 0 2px;
  justify-content: space-around;
  align-items: center;
  filter: drop-shadow(3px 3px 3px rgba(0, 0, 0, 0.3));
}

.clothes-icon img {
  width: 40px;
  opacity: 90%;
}

.tri-button {
  width: 20px;
  opacity: 75%;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
}

.clothes-temp:hover .tri-button {
  opacity: 100%;
}

.clothes-temp:hover .clothes-all {
  visibility: visible;
  width: 155px;
  height: 220px;
  background-color: rgba(0, 0, 0, 0.5);
  transform: translate(10px, -20px);
  transition: all 0.5s ease-in-out;
}

.clothes-all {
  position: absolute;
  visibility: hidden;
}

.clothes-all div:nth-child(n) {
  display: flex;
  justify-content: space-around;
  margin-top: 15px;
}

.clothes-all img {
  width: 50px;
  height: 50px;
}

/* to-do */
.todo-section {
  width: 500px;
}
.todo-section input {
  width: 450px;
  margin: 10px 25px 30px;
  border-style: none;
  border-bottom: solid 2px rgba(255, 255, 255, 0.7);
  background: none;
  text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.6);
  font-size: 30px;
}

.todo-section input::placeholder {
  text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.todo-section ul {
  height: 300px;
  overflow: auto;
  font-size: 28px;
  text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.6);
}

.todo-section ul::-webkit-scrollbar {
  width: 10px;
}

.todo-section ul::-webkit-scrollbar-track {
  background-color: rgba(150, 150, 150, 0.1);
  border-radius: 5px;
  transition: background-color 1s ease-in-out;
}

.todo-section ul::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  background-clip: padding-box;
  border: 1px solid transparent;
}

.todo-section li {
  margin-bottom: 10px;
  list-style-type: disc;
}

.todo-section span {
  cursor: pointer;
}

.todo-section li:hover button {
  opacity: 0.9;
}

.todo-section button {
  margin-left: 20px;
  font-size: 28px;
  text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.6);
  opacity: 0.1;
  transition: all 0.5s ease-in-out;
}

/* 푸터 */
footer {
  width: 100vw;
  position: fixed;
  bottom: 10px;
  left: 10px;
}

.question-button {
  width: 33px;
  height: 33px;
  opacity: 0.75;
  display: inline-block;
  transition: all 0.3s ease-in-out;
}

.question-button:hover {
  opacity: 1;
}

.question-button:hover .question-text {
  opacity: 0.7;
  visibility: visible;
  width: auto;
  font-size: 18px;
  padding: 3px 10px;
  background: rgb(0, 0, 0);
  border-radius: 5px;
}

.coffee-button:hover {
  opacity: 1;
}

.coffee-button:hover .coffee-text {
  opacity: 0.7;
  visibility: visible;
  width: auto;
  font-size: 18px;
  padding: 3px 10px;
  background: rgb(0, 0, 0);
  border-radius: 5px;
}

.question-button button {
  padding-bottom: 3px;
  font-family: sans-serif;
  font-size: 20px;
  line-height: 20px;
  border: 3px solid white;
  border-radius: 50px;
}

.question-text {
  position: absolute;
  top: -50%;
  left: 10px;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.coffee-button {
  opacity: 0.7;
  display: inline-block;
  width: 50px;
  transition: all 0.3s ease-in-out;
}

.coffee-text {
  cursor: default;
  position: absolute;
  top: -50%;
  left: 50px;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.coffee-button img {
  display: block;
  cursor: pointer;
  width: 35px;
  transform: translateY(8px);
}

/* 팝업창 */
.pop-up {
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
}

.pop-up button {
  display: block;
  margin: 0 0 40px auto;
  font-size: 20px;
  font-family: sans-serif;
}

.pop-up-content {
  width: 50vw;
  padding: 0 10px 30px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(150, 150, 150, 0.5);
  text-align: center;
}

.pop-up-content h1 {
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 40px;
}

.pop-up-content a {
  display: block;
  margin-bottom: 20px;
  font-size: 20px;
}

.pop-up-content p:nth-child(5) {
  margin: 40px 0;
}

/* Responsive CSS */

@media screen and (max-width: 650px) {
  /* 시간 제거 */
  .time {
    display: none;
  }

  /* 컨텐츠 */
  .contents-wrapper {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: row;
    justify-content: space-around;
  }
  /* 검색창 */
  .search-section {
    position: relative;
    width: 150px;
    height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .search-section input {
    padding: 0px 10px;
    width: 150px;
    height: 40px;
    font-size: 22px;
  }

  .todo-section {
    display: none;
  }

  .weather-icon img {
    width: 60px;
  }

  .weather-temp {
    font-size: 33px;
    line-height: 60px;
  }

  .clothes-icon-temp {
    width: 100px;
  }

  .clothes-icon img {
    width: 35px;
    opacity: 90%;
  }

  .tri-button {
    width: 18px;
    transform: rotate(90deg);
  }

  .clothes-temp {
    position: relative;
  }

  .clothes-all {
    right: 10px;
    top: 50px;
  }
  .clothes-all div:nth-child(n) {
    margin-top: 15px;
  }

  .clothes-all img {
    width: 40px;
    height: 40px;
  }

  .clothes-temp:hover .clothes-all {
    width: 140px;
    height: 180px;
  }

  /* 푸터 */
  .question-button:hover .question-text {
    visibility: hidden;
  }

  .coffee-button:hover .coffee-text {
    visibility: hidden;
  }

  /* 팝업창 */
  .pop-up-content {
    width: 75vw;
    padding: 0 7px 10px;
  }

  .pop-up-content h1 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .pop-up-content p,
  .pop-up-content a {
    margin-bottom: 10px;
    font-size: 15px;
  }

  .pop-up-content p:nth-child(5) {
    margin: 20px 0;
  }

  .pop-up button {
    margin: 0 0 10px auto;
    font-size: 15px;
  }
}
