@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;700&display=swap');

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #333;
    --card-bg: #ffffff;
    --shadow: 0 4px 8px rgba(0,0,0,0.1);
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 20px;
}

header h1 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 0;
}

header .subtitle {
    font-size: 1.2em;
    color: var(--secondary-color);
}

section {
    background-color: var(--card-bg);
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

h2 {
    font-size: 1.8em;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
}

@property --p{
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

.pie-chart {
  --p:20;
  --b:15px;
  --c:darkred;
  width:150px;
  aspect-ratio:1;
  position:relative;
  display:inline-grid;
  margin:5px;
  place-content:center;
  font-size:1.5em;
  font-weight:bold;
  transition: --p 1s;
}
.pie-chart:before,
.pie-chart:after {
  content:"";
  position:absolute;
  border-radius:50%;
}
.pie-chart:before {
  inset:0;
  background:
    radial-gradient(farthest-side,var(--c) 98%,#0000) top/var(--b) var(--b) no-repeat,
    conic-gradient(var(--c) calc(var(--p)*1%),#0000 0);
  -webkit-mask:radial-gradient(farthest-side,#0000 calc(99% - var(--b)),#000 calc(100% - var(--b)));
          mask:radial-gradient(farthest-side,#0000 calc(99% - var(--b)),#000 calc(100% - var(--b)));
}

.reason-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.reason-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.reason-list span {
    font-weight: bold;
    color: var(--primary-color);
    display: inline-block;
    width: 60px;
}

.conclusion {
    font-style: italic;
    text-align: center;
    padding: 15px;
    background-color: #e9ecef;
    border-left: 5px solid var(--primary-color);
    margin: 20px 0;
}

#map-container {
    margin-top: 20px;
}

#map {
    height: 450px;
    width: 100%;
    border-radius: 8px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}

#info-box {
    padding: 15px;
    margin-top: 15px;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    border-radius: 4px;
    text-align: center;
    font-size: 1.1em;
}

.solution-box {
    display: flex;
    gap: 30px;
    align-items: center;
}

.solution-text { flex: 1; }
.solution-image { flex: 1; text-align: center; }
.solution-image img { border-radius: 8px; box-shadow: var(--shadow); }

.chart-container {
    margin: 30px 0;
}

.bar-wrapper {
    margin-bottom: 15px;
}

.bar-label {
    margin-bottom: 5px;
    font-weight: bold;
}

.bar {
    height: 30px;
    line-height: 30px;
    color: white;
    text-align: right;
    padding-right: 10px;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .solution-box {
        flex-direction: column;
    }
    .stats-container {
        flex-direction: column;
    }
    h1 { font-size: 2em; }
    h2 { font-size: 1.5em; }
}
