#select-dropdown {
    line-height: 24px;
    vertical-align: middle;
}

.dropbtn {
/* text-align: left; */
    color: black;
    padding: 4px 12px;
    /* line-height: 150%; */
    font-size: 14px;
    border: 1px solid black;
    cursor: pointer;
    width: auto;
    background-image: url("../assets/chevron-down.svg");
    background-repeat: no-repeat;
    background-position-x: calc(100% - 6px);
    background-position-y: 50%;
    background-size: 14px;
    font-family: "Montserrat";
    font-size: 14px;
}

.dropbtn svg {
    padding-right: 10px;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    text-align: left;
    /* margin: 5px 12px 5px 0px; */
    position: relative;
    display: block;
    width: 166px;
    border-bottom: none !important;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    width: 164px;
    max-height: 360px;
    /* box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); */
    z-index: 1000;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid black;
    transform: translateY(-1px);
    font-family: "Montserrat";
}

/* Links inside the dropdown */
.dropdown-content a {
    font-size: 14px;
    color: #353535;
    padding: 4px 12px;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #ddd}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {display:block;}


.subtitle {
    margin: 8px 0 24px 0;
}

.select-label {
    margin-bottom: 8px;
}

#geo-viz5 svg {
    margin-top: 14px;
}

#geo-viz3 .legend-wrapper {
    margin-bottom: 24px;
}

#geo-viz3 .dropdowns {
    margin-top: 8px;
}

/* NEW - to remove if issue */

#geo-viz6 {
    background-color: white; /* Ensure the main container has a white background */
}

/* END OF NEW - to remove if issue */

#geo-viz6 .grid-wrapper {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 5fr 2fr;
    grid-auto-rows: 1fr;
    grid-auto-columns: 1fr;
    grid-column-gap: 1.5rem;
    grid-row-gap: 1.5rem;
    background-color: white; /* Ensure the grid wrapper (main chart area) is white */
}

#geo-viz6 .left-panel {
    display: grid;
    grid-template-rows: 1fr 4fr;
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    grid-auto-columns: 1fr;
    grid-column-gap: 1.5rem;
    grid-row-gap: 1.5rem;
    background-color: white; /* Ensure the left panel has a white background */
}

/* NEW - to remove if issue */

#geo-viz6 .right-panel {
    background-color: #ECEDEE; /* Keep the grey background for the right panel */
    /* padding: 8px 10px; */
}

#geo-viz6 .button-wrapper-viz .country-button {
    background-color: #ECEDEE; /* Apply grey background to the buttons */
    /* color: black; */
    /* padding: 10px; */
    /* cursor: pointer;
    /* font-weight: 400; */
}

#geo-viz6 .button-wrapper-viz .country-button.selected {
    background-color: #0280FB; /* Apply blue background to selected buttons */
    color: white;
    font-weight: 700;
}

/* END OF NEW - to remove if issue */

#geo-viz6 .button-wrapper-viz {
    display: grid;
    grid-template-rows: 0.3fr;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: 0.3fr;
    grid-auto-columns: 1fr;
    grid-column-gap: 0.5rem;
    grid-row-gap: 0.5rem;
}

#geo-viz8 .grid-wrapper {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr 5fr 5fr 5fr 4fr;
    grid-auto-rows: 1fr;
    grid-auto-columns: 1fr;
    grid-column-gap: 2.5rem;
    grid-row-gap: 1.5rem;
    padding: 12px 24px;
    max-width: 1080px;
}

#geo-viz8 .row-head {
    background-color: rgba(2,128,251,0.15);
    margin-top: 8px;

    background-image: url("../assets/down.svg");
    background-repeat: no-repeat;
    background-position-x: calc(100% - 16px);
    background-position-y: 50%;
    background-size: 14px;

}

#geo-viz8 .row-head.clicked {
    background-color: rgba(2,128,251,0.15);
    margin-top: 8px;

    background-image: url("../assets/up.svg");

}

#geo-viz8 .row-head.no-dropdown {
    background-image: none;
    background-repeat: no-repeat;
    background-position-x: calc(100% - 16px);
    background-position-y: 50%;
    background-size: 14px;
}

#geo-viz8 .row-item {
    display: none;
}

#geo-viz8 .row-head,
#geo-viz8 .row-item,
#geo-viz8 .column-name {
    vertical-align: middle;
}


#geo-viz8 .row-item .row-name {
    line-height: 48px;
}

#geo-viz8 .row-item .row-opportunity svg {
    margin-top: 9px;
}

#geo-viz8 .row-cpp svg,
#geo-viz8 .row-arppu svg {
    vertical-align: text-bottom;
    margin-left: 10px;
}

#geo-viz8 .bar, #geo-viz8 .bar-value {
    display: inline-block;
}

#geo-viz8 .bar {
    margin-top: 7px;
}

#scrolly {
    position: relative;
    padding: 1rem 0 1rem 0;
}

article {
    position: relative;
    padding: 0;
    max-width: 70%;
    margin: 0 auto;
}

figure {
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    width: 100%;
    margin: 0;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    z-index: 0;
    margin-bottom: 45%;
}

figure p {
    text-align: center;
    padding: 1rem;
    position: absolute;
    top: 50%;
    left: 50%;
    -moz-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    font-size: 8rem;
    font-weight: 900;
    color: #fff;
}

#scrolly .title {
    top: 76px;
}

#scrolly .subtitle {
    margin-top: 12px;
    top: 108px;
}

.step {
    margin: 0 auto 10px auto;
    z-index: 10;
}


.step:last-child {
    margin-bottom: 100px;
}

.step.is-active p {
    background-color: #ecf6fc;
    border: 0.5px solid #000000;
    color: #000000;
}

.step p {
    opacity: 1;
    text-align: center;
    font-size: 16px;
    background-color: #ecf6fc;
    border: 0.5px solid #000000;
    color: #000000;
}

.step .bold-text {
    display: block;;
    font-weight: 700;
    padding-top: 80px;
}

#geo-viz8 .bar-value {
    font-family: 'Spacegrotesk';
}

/* Tooltip container */
.column-tooltip {
    position: relative;
    display: inline-block;
}
  
.column-tooltip-text {
    width: 120px;
}

  /* Tooltip text */
.column-tooltip .column-tooltip-text {
    visibility: hidden;
    /* width: 120px; */
    background-color: #FFF;
    color: #000;
    text-align: left;
    padding: 8px 12px;
    border: 1px solid #ECEDEE;
    font-size: 12px;
  
    /* Position the tooltip text */
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: -50%;
    /* margin-left: -60px; */
  
    /* Fade in tooltip */
    opacity: 0;
    transition: opacity 0.3s;
}

  
.viz-tooltip span {  
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.viz-tooltip span::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    margin-top: 4px;
    border-width: 5px 5px;
    border-style: solid;
}

.viz-tooltip span.Android::after {
    border-color: #558FC9 transparent transparent transparent;
}
.viz-tooltip span.iOS::after {
    border-color: #040078 transparent transparent transparent;
}
.viz-tooltip span.otherAndroid::after {
    border-color: #ECEDEE transparent transparent transparent;
}
.viz-tooltip span.otheriOS::after {
    border-color: #CCC transparent transparent transparent;
}
  
  
  /* Show the tooltip text when you mouse over the tooltip container */
.column-tooltip:hover .column-tooltip-text {
    visibility: visible;
    opacity: 1;
}

.buttons {
    margin-top: -120px;
    margin-left: 20px;
}

.button {
    border: 1px solid black;
    display: inline-block;
    width: 26px;
    height: 26px;
    margin-bottom: 10px;
    cursor: pointer;
    vertical-align: middle;
    padding: 0;
    text-align: center;
    font-size: 26px;
    line-height: 26px;
    background-color: #FFFFFF;
    color: black;
    border-radius: 0px;
}

#select-dropbtn-tier {
    width: 276px;
}

#select-content-tier {
    width: 300px;
}
