:root {
    --bg: #121212;
    --fg: #ffffff;
    --muted: #aaa;
    --accent: #00e676;
    --btn: #2979ff;
    --btn-hover: #1565c0;
    --ring-bg: #444;
    --max-container: 600px;
    --ring-size: 60vmin;
    --ring-stroke: 1.2vmin;
}


html{
    font-family: 'Playfair Display', serif;
}

body {
    font-family: 'Playfair Display', serif;
    padding: 20px !important;
    background: var(--bg);
    color: var(--fg);
    overflow : visible;


}

main{
    display: flex;
    justify-content: center;
}
.logo{
    display: flex;
    justify-content: center;
}
.graph-container {
    max-width: 800px !important;

    background: #343434;
    padding: 50px !important;
    border-radius: 12px !important;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow : visible;
    position: relative;
    margin-top : 4rem;
    margin-bottom: 4rem;
}

.header {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px;
}

.nav-btn {
    background-color: #ddd;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.graph {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 30px;
    height: 200px;
    border-left: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding-left: 10px;
    overflow-x: auto;
}

.bar {
    width: 25px !important;
    background-color: var(--btn);
    position: relative !important;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s;
}

.tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 15px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 1000;
}



.bar-label {
    text-align: center;
    font-size: 15px;
    margin-top: 6px;
    white-space: nowrap;

}

.bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 18px;
}

.ab{
    display: flex;
    margin-top: 2rem;
}

.graph-explain{

  width: 70px;
  height: 50px;
  background: #2979ff;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    position: absolute;
    right: 7% !important;
    top: 86%;
    margin-bottom: 1.5rem;
}

.graph-explain:hover{
    background: #1565c0;
}

select {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}





@media (max-width: 600px) {
    .graph {
        height: 180px;
        padding-left: 8px;
        overflow-x: hidden; /* 스크롤 대신 축소 */
        justify-content: space-around; /* bar 간 간격 조정 */
        flex-wrap: nowrap;
    }

    .logo{
        display: flex;
        justify-content: center;
    }

    .bar {
        width: 12px !important; /* 막대 폭 축소 */
        margin: 0 4px;
    }

    .bar-label {
        font-size: 12px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .bar-wrapper {
        margin-left: 4px; /* 간격도 줄이기 */
    }

    .footer {
        text-align: left;
    }

    .graph-explain{
        right: 12% !important;
        top : 87%;
        padding : 1px;
    }

}