@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

body {
  font-family: 'Inter', sans-serif; margin:0; padding:0; background:#f7f7f7;
  position: relative;
  overflow-x: hidden; }

/* 배경 이미지 전체 화면에 표시, 왜곡 없이, 블러 처리 */
.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('Assets/background.jpg'); /* 이미지 경로 설정 */
  background-size: cover;         /* 비율 유지하며 꽉 채움 */
  background-position: center;    /* 중앙 정렬 */
  transform: scale(1.3); /* ✅ 살짝 확대해서 테두리 하얀 부분 제거 */

  z-index: -1; /* 뒤로 보내기 */
}
header {
  display: flex;
  align-items: center;
  position: fixed;
  width: 100%;
  justify-content: center;
  position: fixed;
  padding: .5em;
  color: #424242;
  background-color: #ffffff80;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  font-size: 1.2em;
  font-weight: 550;
  text-align: center;
  height: auto;
  flex-direction: row; /* 좌우 배치 */ 
  z-index: 10;
}

.dark-header {
  display: flex;
  align-items: center;
  position: fixed;
  width: 100%;
  justify-content: center;
  position: fixed;
  padding: .5em;
  background-color: #00000069;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  font-size: 1.2em;
  font-weight: 550;
  text-align: center;
  height: auto;
  flex-direction: row; /* 좌우 배치 */ 
  z-index: 10;
}


.logo{
  width: 200px;
  height: 50px;
  margin-right: 20px;
}
nav { display:flex; justify-content:space-around; background:#003060; }
nav button { flex:1; padding:1em; color:#fff; background:none; border:none; font-size:1.2em; cursor:pointer; }
nav button:hover, nav .active { background:#cccccc; }

.tab-content { display:none; padding:0.25em; }
.active-tab { display:block; }

.back-button {
  position: absolute;
  margin-left: 0;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #424242;
  font-size: 1.5em;
  cursor: pointer;
}
.select-type-container{
  display:flex; 
  background-color: #ffffff;
  gap:1em; 
  padding:16px;
  
}
.Report-type{
  display:flex; 
  flex-direction:column; 
  align-items:left; 
  justify-content:center; 
  gap:1em; 
  color: #ff4255;
}
.alert-btn { width:100%; 
  font-size:1.2em; 
  height: 42px;
  width: 144px;
  font-weight:bold; 
  margin:0.5em 0;
  padding:0.15em; 
  border:none; 
  border-radius:10px; 
  cursor:pointer; 
  color:#fff; }

.life-btn { background:#ff4255; }
.aid-btn  { background:#d5d5d5; color:#131313; }


#home{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 50vh;
}
#map-container {
  margin-top: 60px;
  width: 100%;
  height: 100%; /* 혹은 원하는 높이 */
}


.urgent-btn{
  background-color: #ff4255 !important;
  color: white !important;
}

#safetyBtn{
  background-color: #3495f7;  /* 딥 블루 */
  color: white
}

/* Emergency Page Styles */


.main-buttons {
 display: flex;
width: 100%;
padding-top: 320px;
height: 100%;
flex-direction: column;
align-items: flex-start;
gap: 0.75rem;
justify-content: center; /* 가로 중앙 */
align-items: center; /* 세로 중앙 */

}
.main-buttons-home {
  display: flex;
 width: 100%;
 padding-top: 240px;
 height: 100%;
 flex-direction: column;
 align-items: flex-start;
 gap: 0.75rem;
 justify-content: center; /* 가로 중앙 */
 align-items: center; /* 세로 중앙 */
}


.main-buttons-home button {
  display: flex;
  width: 60%;
  max-width: 320px;
  padding: 0 1.5em; /* 좌우만 패딩, 높이는 고정 */
  height: 50px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background-color: #fcfcfc;
  color: rgb(36, 36, 36);
  font-weight: 600;
  font-size: 20px;
  box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.12);

  display: flex;
  align-items: center; /* 텍스트 세로 가운데 정렬 */
  justify-content: center; /* 텍스트 가로 가운데 정렬 */
}

/* 홈 버튼들*/
.main-buttons button {
  display: flex;
  width: 60%;
  max-width: 320px;
  padding: 0 1.5em; /* 좌우만 패딩, 높이는 고정 */
  height: 50px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background-color: #fcfcfc;
  color: rgb(36, 36, 36);
  font-weight: 600;
  font-size: 20px;
  box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.12);

  display: flex;
  align-items: center; /* 텍스트 세로 가운데 정렬 */
  justify-content: center; /* 텍스트 가로 가운데 정렬 */
}



.prompt-text {
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 1em;
}

.emergency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
  justify-items: center;
}
.emergency-section {
  padding-top: 80px;
  justify-items: center;
  padding-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.emergency-title {
  font-size: 1.2em;
  color: #ff4255;
  font-weight: 600;
  padding-left: 16px;
  margin-bottom: 24px; /* 이 값을 늘리면 아래 여백이 생깁니다 */
}
.emergency-grid {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0px  10px; /* 세로 간격 24px, 가로 간격 12px */
}

.emergency-option {
  aspect-ratio: 1;
  min-width: 100px;
  max-width: 200px;
  text-align: center;
  padding: 16px;
  display: flex;
  flex-direction: column;
  font-size: 0.8em;
  font-weight: 600;
  color: #ff4255;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
  
.emergency-etc-text {
  margin-top: 40px;
  text-align: center;
  color: #666;
  font-size: 1em;
  font-style: italic;
}

/* 아이콘 크기 통일 */
.emergency-option img {
  width: 80px; /* 고정 크기 */
  height: 80px;
  object-fit: contain;
  padding: 1em;
  margin-bottom: 0px;
}
.icon-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 100px;
  padding: .6em;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s ease;
}
.icon-left {
  height: 20px;
  margin-right: 8px;  /* 글자와 아이콘 사이 공간 */
  vertical-align: middle;
}
.icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter 0.2s ease;
}

.emergency-option.selected .icon-wrapper {
  background-color: #ff4255;
}

.emergency-option.selected .icon-wrapper img {
  filter: brightness(0) saturate(100%) invert(1);
}
/* 고정 Emergency 버튼 스타일 */
.fixed-emergency-btn {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);

  background-color: #ff4255; /* 생생한 긴급 색상 */
  color: white;
  font-weight: bold;
  font-size: 1.1em;
  border: none;
  border-radius: 10px;
  padding: 0.9em 1.6em;
  width:60%;
  max-width: 320px;
  box-shadow: 0 6px 16px rgba(255, 59, 48, 0.4);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  cursor: pointer;
  z-index: 1000;
}

.fixed-emergency-btn .icon {
  height: 20px;
}

.icon{
  height: 30px; /* 텍스트 높이(em)랑 맞추기 */
  width: auto; /* 비율 유지 */
}



/* ✅ Reporter Info 폼 추가 스타일 */
.reporter-info-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  padding: 0 16px;
}

.reporter-info-form input {
  width: 100%;
  max-width: 400px;
  padding: 0.75em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #fafafa;
}