#ratio-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    width: 100%;
}

.country-group {
    text-align: center;
    position: relative;
}

.doctor {
    width: 100%;
    padding-bottom: 150%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.country-group:hover .doctor {
    background-color: rgba(195, 115, 115, 0.15);
}

.flag {
    width: 40%;
    height: 20%;
    border-radius: 50%;
    margin-top: 30px;
    margin-left: -70px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.flag:hover {
    transform: scale(1.1);
}

.info-box {
    display: none;
    position: relative;
    top: -200px;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 10px;
    z-index: 10;
    text-align: center;
    width: max-content;
}

.info-box.active {
    display: block;
}