/* embed fonts from desktop ______________________________________________________*/
@font-face {
    font-family: 'marfa_thin';
    src: url('fonts/ABCMarfa-Thin-Trial.woff2') format('woff2'),
         url('fonts/ABCMarfa-Thin-Trial.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'marfa_thin_italic';
    src: url('fonts/ABCMarfa-ThinItalic-Trial.woff2') format('woff2'),
         url('fonts/ABCMarfa-ThinItalic-Trial.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'marfa_regular';
    src: url('fonts/abcmarfa-regular-trial-webfont.woff2') format('woff2'),
         url('fonts/abcmarfa-regular-trial-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'marfa_semibold';
    src: url('fonts/abcmarfa-semibold-trial-webfont.woff2') format('woff2'),
         url('fonts/abcmarfa-semibold-trial-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
  }


image {
    cursor: pointer;
}

#container {
    background-color: #F9F5F6;
    
}

/* title ______________________________________________________*/
.title {
    position: absolute; 
    top: 22px; 
    left: 20px; 
    font-size: 22.5px; 
    font-family: 'marfa_semibold'; 
    color: #333;
    display: inline-block; 
    text-decoration: none; 
    cursor: pointer;
}


/* "About the project" button ______________________________________________________*/
.info {
    position: absolute;
    bottom: 15px;
    right: 20px;
    background-color: #fff;
    color: #333;
    border: none;
    font-size: 14px;
    font-family: 'marfa_regular';
    border-radius: 20px;
    padding: 8px 15px 8px 15px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

}
.info:hover {
    background-color:#ebd3df;
    color: #333;
}

/* Info about objects, tooltip ______________________________________________________*/
.tooltip {
    position: absolute;
    background-color: #fff;
    color: #333;
    padding: 8px 15px 8px 15px;
    width: flex;
    border-radius: 25px;
   
    cursor: pointer;
    display: none;
    z-index: 10;
    font-family: 'marfa_regular';
    font-size: 14px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Filter block ______________________________________________________*/
/* Filter container */
.filter {
    top: 26px;
    right: 20px;
    position: absolute;
    display: flex;
    align-items: center;
    border: none;
    font-family: 'marfa_regular';
    font-size: 14px;
    
}
.explore{
    margin-right:10px;
}
/* spacing between filters and text */
.filter span {
    color: #333;
    padding-right: 0px;  
    padding-left: 0px;
}


.dropdown-wrapper {
    position: relative;
}

/* Dropdown button */
.dropdown-button {
    background-color: #fff;
    color: #333;
    border: none;
    font-size: 14px;
    font-family: 'marfa_regular';
    border-radius: 20px;
    margin-right: 10px; /*geändert*/
    margin-left: 10px; /*geändert*/
    padding: 5px 15px 5px 15px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.dropdown-button:hover {
    background-color: #ebd3df;
}

.dropdown-button.selected {
    background-color: #fff;
    color: #333;
}

.dropdown-button.selected:hover {
    background-color: #fff;
    color: #333;
}
/* Dropdown */
.dropdown {
    list-style-type: none;
    margin: 0;
    padding: 0;
    border-radius: 20px; /*geändert*/
    display: none; 
    position: absolute;
    top: 150%;
    left: 0;
    min-width: 100%; 
    width: fit-content;
    width: 102%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.dropdown li {

    padding: 8px 15px; /*geändert*/
    cursor: pointer;
    
    color:#333;
    font-size: 14px;
    border-radius: 10px;
    margin: 5px; /*geändert*/
    white-space: nowrap;
    transition: background-color 0.3s ease, border-radius 0.2s ease;
}

.dropdown li:hover {
    background-color: #ebd3df;
    border-radius: 30px;
}

#dropdown2 {
    left: 50%;                        
    transform: translateX(-50%);      
    min-width: 220px;                 
    width: max-content;              
}

#dropdown2 li {
    white-space: nowrap;          
}

#dropdown3 {
    left: 50%;                        
    transform: translateX(-50%);      
    min-width: 170px;                 
    width: max-content;              
}

#dropdown2 li {
    white-space: nowrap;          
}

#dropdown4 {
    right: 0;
    left: auto;  
    min-width: 180px;
    width: max-content;
}

#dropdown4 li {
    white-space: nowrap;
}

/* clear button x */
.clear-button {
    font-size: 14px;
    position: absolute;
    right: 10px;
    display: none;
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
}

.clear-button:hover {
    color: #333;
}

.dropdown-button .clear-button {
    color: #333; 
    margin-left: 8px;
    cursor: pointer;
    transition: color 0.3s;
}

.dropdown-button:hover .clear-button {
    color: #fff;
}

.dropdown-button.selected .clear-button {
    color: #fff;
}

.dropdown-button.selected:hover .clear-button {
    color: #fff; 
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    line-height: 18px;
    background-color: #ebd3df;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    margin-left: 5px;
    vertical-align: middle;
    box-sizing: content-box; /* Prevents padding from affecting size */
    padding: 0; /* Ensures no extra space */
}

.dropdown li.selected-item {
    background-color: #ebd3df !important;
    border-radius: 30px;
    padding: 5px 12px;
    margin: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    position: relative;
}

.remove-item {
    cursor: pointer;
    font-weight: bold;
    color: #333;
    margin-left: 8px;
    position: absolute;
    right: 10px;
}

.remove-item:hover {
    color: white;
}


/* Popup______________________________________________________*/

/* Default hidden state with opacity 0 */
/* Default hidden state */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.4s ease-in-out;
}

/* Show popup with fade-in */
.popup.show {
    opacity: 1;
    visibility: visible;
}

/* Hide popup with fade-out */
.popup.hide {
    opacity: 0;
    visibility: hidden;
}

/* Popup content styling */
.popup-content {
    width: 100%;
    max-width: 800px;
    display: flex;
    padding: 20px;
    border-radius: 8px;
    font-family: 'marfa_regular';
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: scale(0.9); /* Start slightly smaller */
    transition: transform 0.3s ease-in-out;
}

/* Zoom in when showing */
.popup.show .popup-content {
    transform: scale(1);
}

/* Zoom out when hiding */
.popup.hide .popup-content {
    transform: scale(0.9);
}


/* Left side of popup (image placeholder) */
.popup-left {
    flex: 1;
    min-height: 250px;
    min-width: 250px;
    border-radius: 10px;
}

/* Right side of popup (text content) */
.popup-right {
    flex: 2;
    display: flex;
    flex-direction: column;
}

/* Popup title */
#popup-title {
    font-size: 24px;
    font-family: 'marfa_semibold';
    padding-bottom: 10px;
    padding-left: 20px;
    color: #333;
    font-stretch: normal;
    -webkit-font-smoothing: antialiased; /* For Safari */
    -moz-osx-font-smoothing: grayscale; /* For Firefox */
}

/* Each row containing two columns */
.popup-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px; /* Reduce space between rows */
    padding-left: 20px;
    color: #333;
}

/* Individual column */
.popup-column {
    display: flex;
    flex-direction: column;
    color: #333;
    align-items: flex-start; /* Aligns text to the left */
    text-align: left; /* Ensures text inside <p> elements is aligned left */
    width: 48%;
}

/* Category text */
.category {
    font-family: 'marfa_thin_italic';
    font-size: 15px;
    color: #333;
    margin-bottom: 2px; /* Reduce space between category and value */
}

/* Category values */
.popup-column p {
    font-size: 15px;
    margin: 0;
}

/* Story text */
.popup-story {
    padding-left: 20px;
    padding-right: 15px;
   
    grid-column: span 2;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    font-family: 'marfa_thin';
}

/* Close button */
#popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
}

#popup-close:hover {
    color: #ebd3df;
}

.popup-left {
    width: 300px; /* or your preferred width */
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#popup-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px; /* optional, for rounded corners */
}


/* Intro______________________________________________________*/

#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #F9F5F6;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-in-out;
}

#text-container {
    text-align: center;
    font-size: 24px;

    max-width: 800px;
    padding: 0 20px;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

#enter-button {
    background-color: #fff;
    color: #333;
    border: none;
    font-size: 14px;
    font-family: 'marfa_regular';
    border-radius: 20px;
    padding: 5px 15px 5px 15px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#enter-button:hover {
    background-color:#ebd3df;
    color: #333;
}



/* About ______________________________________________________*/

/* Popup Styling */
.about-popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 1);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Fade-in animation */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Fade-out animation */
@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Show popup(fade-in effect) */
.about-popup.show {
    display: block;
    animation: fadeIn 0.5s forwards;
}

/* Hide popup(fade-out effect) */
.about-popup.hide {
    animation: fadeOut 0.5s forwards;
}

/* Container that holds the 3 columns */
.about-container {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr; /* Left column (small), Center column (wide), Right column (small) */
    grid-gap: 20px; /* Adds space between the columns */
    padding: 20px;
    align-items: start; /* Ensures the items align at the top */
}

/* Left: Title Styling */
.about-title {
    font-size: 2rem;
    LINE-HEIGHT: 1.1;
    font-family: 'marfa_semibold';
    text-align: left;
    color: #333;
    padding: 10px;
    padding-top: 12px; 
    font-family: 'marfa_semibold';
    top: 20px;
    left: 20px;
}

/* Center: Text Styling */
.about-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    text-align: left;
    font-family: 'marfa_thin';
}

/* Right: Close Button Styling */
.popup-close {
    font-size: 2rem;
    color: #333;
    text-decoration: none;
    font-family: 'marfa_semibold';
    position: absolute;
    padding-right:10px;
    padding-top: 12px; 
    top: 20px;
    right: 20px;
}

.popup-close:hover {
    color: #ebd3df;
}

strong {
    font-family: 'marfa_regular', sans-serif;  
}

/* "About the project" button ______________________________________________________*/
.info {
    position: absolute;
    bottom: 15px;
    right: 20px;
    background-color: #fff;
    color: #333;
    border: none;
    font-size: 14px;
    font-family: 'marfa_regular';
    border-radius: 20px;
    padding: 8px 15px 8px 15px;
    margin-right:10px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

}
.info:hover {
    background-color:#ebd3df;
    color: #333;
}