body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}
h1 {
    margin: 20px 0;
}
.header {
    text-align: center;
    align-items: center;
    vertical-align: center;
    margin-bottom: 40px;
}

.slideshow-container {
    position: relative;
    width: 90%;
    max-width: 1600px;
}
.slide {
    display: none;
    gap: 60px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 850px;
    background: #f9f9f9;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
}
.slide.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}
.text-container {
    height: 800px;
    padding-left: 40px;
    overflow: auto;
}
.visual-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    min-width: 800px;
    padding-right: 40px;
}
.title {
    flex: 1;
    font-size: 36px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid grey;
}
.text {
    flex: 1;
    font-size: 20px;
    text-align: justify;
}
.rectangle {
    width: 800px;
    height: 800px;
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.6);
}
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.prev {
    left: 0;
}
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}
.dots-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}
.dot {
    cursor: pointer;
    height: 40px;
    width: 40px;
    margin: 0 2px;
    background-color: #bbb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background-color 0.6s ease;
}
.active-dot, .dot:hover {
    background-color: #717171;
}
.disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.button {
    cursor: pointer;
    margin: 0 2px;
    background-color: #bbb;
    color: white;
    justify-content: center;
    font-size: 16px;
    padding: 5px 10px;
    border: 1px solid #717171;
    border-radius: 3px;
}

.button.active, .button:hover{
    background-color: #717171;
}
.button.dropdown-toggle {
    width: 175px;
}

.action-toolbar {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}
.choose-source {
    display: flex;
    padding-right: 120px;
}

.choose-source .label {
    line-height: 30px;
    margin-right: 5px;
}
.filter {
    display: none;

}
.filter.active {
    display: flex;
}

.tooltip {
    position: absolute;
    text-align: center;
    width: 120px;
    padding: 8px;
    font-size: 14px;
    background-color: #999;
    color: #fff;
    border-radius: 8px;
    pointer-events: none;
}

.africa {
    border-bottom: 5px solid #FF851B;
}

.asia {
    border-bottom: 5px solid #2ECC40;
}

.europe {
    border-bottom: 5px solid #0074D9;
}
.north-america {
    border-bottom: 5px solid #FF4136;
}
.oceania {
    border-bottom: 5px solid #39CCCC;
}
.south-america {
    border-bottom: 5px solid #B10DC9;
}

.all-regions {
    border-bottom: 5px solid #717171;
}

.dropdown-container {
    display: flex;
    margin-bottom: 10px;
    padding-right: 174px;
}
.dropdown-container label {
    height: 31px;
    text-align: center;
    line-height: 31px;
    margin-right: 10px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    z-index: 1;
    border: 1px solid #717171;
    border-radius: 3px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
}
.dropdown-item:hover, .dropdown-item.active:hover {
    background-color: #007bff;
    color: white;
}

.dropdown-item.active {
    background-color: #717171;
    color: white;
}

#filter-happiness, #filter-prosperity {
    gap: 5px;
    margin-top: 5px;
}
