/* 브라우저별 프리픽스 */
.box {
  display: -webkit-box; /* Safari/old iOS */
  display: -ms-flexbox; /* IE10 */
  display: flex;
}

html {
  font-size: 10px; /* 기준 font-size 설정 */
}
body {
  margin: 0;
  padding: 0;
  font-family: "Pretendard", sans-serif;
  background-color: #f5f8fa;
}
#chrome-container {
  display: none;
}
/* 상단 섹션 */
.container {
  max-width: 37.5rem; /* 375px */
  margin: 2.5rem auto;
  padding: 2rem;
  background-color: white;
  box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.1);
  border-radius: 0.8rem;
}
.title-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.title {
  width: 85%;
  font-size: 2.2rem;
  color: #003f91;
  font-weight: bold;
  text-align: left;
  margin-bottom: 2rem;
}
.title-audio {
  background-color: #c9e3ff;
  border-radius: 5rem;
}
.title-audio:hover {
  cursor: pointer;
}
.audio-icon {
  width: 6rem;
  height: 6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: invert(35%) sepia(36%) saturate(4000%) hue-rotate(180deg)
    brightness(80%) contrast(85%);
}
.audio-icon img {
  width: 2.5rem;
  height: 2.5rem;
}
.alert {
  text-align: center;
  height: 12rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: #0056b3 4px solid;
}
.alert p {
  font-size: 2rem;
  color: #d3211b;
}
.alert span {
  font-size: 1.5rem;
}
.alert img {
  width: 7rem;
  height: 8rem;
}
.warning-text {
  display: flex;
  justify-self: center;
  align-items: center;
  width: 90%;
  color: #e00000;
  font-size: 1.6rem;
  line-height: 140%;
  text-align: center;
  border: #ececec 0.1px solid;
  padding: 2rem 1.5rem;
  font-weight: 300;
}

/*사진 전송 디자인*/
.toggle-title {
  cursor: pointer;
  display: flex;
  align-items: center;
}
.toggle-title:hover {
  color: #007bff;
}
.toggle-title span {
  margin-left: 0.5rem;
}
.hidden-content {
  display: none;
  margin-top: 1rem;
}
.visible {
  display: block;
}

.upload {
  box-shadow: none;
  padding: 3rem 1rem;
}

#content {
  padding: 3rem 0;
}

.toggle-title,
#conteainer-hidden {
  font-size: 1.7rem;
  font-weight: 500;
  color: #2067c4;
}
.upload-section {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.upload-box {
  width: 45%;
  height: 10rem;
  border: 1px dashed #999;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #007bff;
  cursor: pointer;
}
.upload-box:hover {
  background-color: #f0f8ff;
}
.upload-box input {
  display: none;
}
.upload-image {
  text-align: center;
  color: #6437cc;
}
.memo {
  width: 94%;
  height: 6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 1rem 1rem;
  resize: none;
  margin-bottom: 2rem;
}
.send-button {
  float: right;
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.5rem 2rem;
  border-radius: 4px;
  font-size: 1.4rem;
  cursor: pointer;
}
.send-button:hover {
  background-color: #0056b3;
}

/* 네이버 지도 */
#map {
  width: 100%;
  height: 30rem;
  border-radius: 8px;
  margin: 2rem 0;
}
.share-button {
  z-index: 1000;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 2rem;
  right: 1.5rem;
  background-color: white;
  padding: 1.2rem;
  border: none;
  border-radius: 5rem;
  box-shadow: 0 0.6rem 0.8rem rgba(0, 0, 0, 0.4);
}
.share-button:hover {
  background-color: #eaf4ff;
  cursor: pointer;
}
.share-button img {
  width: 1.8rem;
}

/* 지도 밑 버튼 */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.button {
  display: flex;
  justify-content: space-around;
  text-align: center;
  padding: 0.4rem 0;
  background-color: white;
  color: #333;
  font-size: 1.4rem;
  font-weight: bold;
  text-decoration: none;
}

.button img {
  width: 36rem;
  max-height: 7rem;
  border-radius: 0.5rem;
  overflow: hidden; /* 넘치는 부분을 숨김 */
  object-fit: cover; /* 컨테이너 크기에 맞게 자르기 */
}
/* 하단의 버튼 */
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 400px;
  padding: 2rem 0;
  background-color: white;
}
.grid-container a {
  text-decoration: none;
}

.grid-item {
  text-align: center;
  font-size: 14px;
}
.grid-item img {
  width: 10rem;
  height: auto;
  margin-bottom: 1rem;
}
.grid-item span {
  display: block;
  color: #333;
}

/* 화면 크기에 따른 디자인 */

@media (max-width: 500px) {
  .hidden {
    display: none !important; /* 숨김 처리 */
  }
  #chrome-container {
    display: block;
  }
  #chrome-container p {
    font-size: 1.3rem;
  }
  .chrome-button {
    /* 특별한 크롬 버튼 클래스 */
    width: 25rem;
    display: inline-block;
    padding: 1.8rem 1.5rem;
    margin: 1.5rem 0;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(45deg, #ff5722, #ffc107);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .chrome-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
  }
  .chrome-button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  .chrome-button:focus {
    outline: none;
  }
}

@media (max-width: 430px) {
  .container {
    margin: 0;
  }
}

@media (max-width: 380px) {
  html {
    font-size: 9px;
  }
}

@media (max-width: 350px) {
  html {
    font-size: 8.5px;
  }
}
@media (max-width: 325px) {
  html {
    font-size: 8px;
  }
}
@media (max-width: 310px) {
  html {
    font-size: 7px;
  }
}
