/* General container styling */
.topic-container {
    margin: 20px 0;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Header styling for each topic section */
.topic-container h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #333;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
    margin: 1em;
    background-color: rgb(225, 216, 212); /* Header background color */
}

.study-button {
    margin: 10px 10px;
    padding: 10px 20px;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.study-button.TüKITZmed {
    background-color: rgb(216, 166, 159); /* TüKITZmed color */
}

.study-button.TüKITZlife {
    background-color: rgb(157, 173, 132); /* TüKITZlife color */
}

.study-button.all {
    background-color: #555; /* Neutral color for "Show All" button */
}

.study-button.active {
    opacity: 0.8;
}

.study-button:hover {
    opacity: 0.5;
   
}

#difficulty-filter {
    margin-left: 20px;
    padding: 5px;
}

.download-button {
    background-color: transparent; /* Make the button background transparent */
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: black; /* Set the icon color to black */
    margin-left: 20px;
    position: relative; /* For positioning tooltip */
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 220px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    left: 125%; /* Position to the right of the button */
    top: 50%;
    margin-top: -22px; /* Center the tooltip vertically relative to the button */
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.course-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px;
}

.course-tile {
    position: relative;
    margin: 10px;
    padding: 20px;
    width: 250px;
    height: 180px;
    background-color: #ffffff; /* Neutral background color */
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 18px;
    cursor: pointer;
    box-sizing: border-box;
    border: 1px solid #ddd; /* Light border for the tile */
}

.course-header {
    font-weight: bold;
    margin-bottom: 10px;
    width: 100%;
    text-align: left;
}

.course-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 5px; /* Space between labels */
    width: 100%; /* Ensure labels take full width */
    max-height: 100%; /* Allow labels to take full height */
    overflow-y: auto; /* Enable scrolling if labels exceed max height */
    margin-bottom: 10px; /* Optional: Add margin to separate it from other sections */
}

.label {
    background-color: #f4f4f4;
    border-radius: 5px;
    padding: 5px 10px;
    margin: 2px;
    font-size: 14px;
}

.membership-indicators {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #888; /* Default color for indicators */
}

.indicator.TüKITZmed {
    background-color: rgb(216, 166, 159); /* TüKITZmed color */
}

.indicator.TüKITZlife {
    background-color: rgb(157, 173, 132); /* TüKITZlife color */
}

.skill-level {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 2px; /* Space between bars */
}

.bar {
    width: 30px; /* Width of each bar */
    height: 6px; /* Height of each bar */
    background-color: #ddd; /* Default color for unfilled bars */
    border-radius: 3px; /* Rounded corners */
    transition: background-color 0.3s; /* Smooth transition */
}

.bar.filled {
    background-color: #888; /* Color for filled bars */
}

/* Different filling for skill levels */
.course-tile.basic .bar:nth-child(1) {
    background-color: #888;
}

.course-tile.advanced .bar:nth-child(1),
.course-tile.advanced .bar:nth-child(2) {
    background-color: #888;
}

.course-tile.expert .bar {
    background-color: #888;
}

.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
    color: #000;
}

#course-name {
    text-align: left;
    margin-bottom: 10px;
}

.accordion {
    margin-top: 20px;
}

.accordion-button {
    background-color: #f1f1f1;
    color: #444;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: 0.4s;
}

.accordion-button:hover, .accordion-button.active {
    background-color: #ccc;
}

.panel {
    padding: 0 18px;
    background-color: white;
    display: none;
    overflow: hidden;
}
