body {
    background-image: url('/UfoDisclosureBulgaria/images/space_img.jpg');
    background-size: cover;       
    background-repeat: no-repeat; 
    background-attachment: fixed; 
    background-position: center;  
    margin: 0;                    
    min-height: 100vh; 
    overflow-y: auto; 
}

h1 {
    color: #744769;
    margin-bottom: 40px;
    padding-top: 20px;
    font-size: 2.2rem;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    font-family: 'Jura', sans-serif;
    font-weight: 700;
    -webkit-text-stroke: 1.5px #744769;
    text-align: center;
    border-bottom: 2px solid #744769;
    padding-bottom: 5px;
}

.video-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 80%;
    margin: 0 auto;
    height: 600px;
    margin-bottom: 30px;
}

.video-container iframe {
    position: relative;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%;
    border: none;
    border-radius: 8px;
}

.video-title {
    text-align: center;
    font-size: 1.2rem;
    color: #744769;
    margin-bottom: 30px;
    font-weight: 700;
    font-family: 'Jura', sans-serif;
    -webkit-text-stroke: 0.5px;
}

.founder-bio a {
    color: #744769;
    text-decoration: none;
    transition: color 0.3s ease;
}

.founder-bio a:hover {
    color: #442538;
}

.logo_img {
    position: absolute;
    left: 1%;
    top: 3%;
    height: 80%;
    max-width: 100%;
}

.ribbon {
    margin-top: 1%;
    position: relative;
    top: 0%;
    left: 50%;
    width: 90%;
    transform: translateX(-50%); 
    background-color: #744769; 
    color: white;
    padding: 1.5%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 10;
    text-align: center;
}

.content-board {
    width: 90%;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin: auto;
    margin-bottom: 20px;
    flex: 1; 
    overflow: visible !important;
    max-height: none !important; 
    height: auto !important;
    opacity: 0;
    transition: opacity 1s ease-out;
}
.content-board.loaded {
    opacity: 1;  
}

@keyframes contentanimation {
    from {
        opacity: 0%;
    }    
    to {
        opacity: 100%;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.navbar {
    background-color: #744769;
    padding: 1% 0;
    font-weight: bold;
}

.nav-list {
    list-style-type: none;
    display: flex;
    justify-content: center;
}

.nav-item {
    position: relative;
    width: 10%;
    margin: 1%;
}

.nav-item a {
    text-decoration: none;
    color: white;
    display: block;
    font-size: 90%;
    font-family: 'Jura', sans-serif;
    font-weight: 700;
    -webkit-text-stroke: 0.5px white;
}

.nav-item a:hover {
    background-color: #5a3651;
}

.dropdown-menu {
    list-style: none;
    display: none; /* Hidden by default */
    position: absolute;
    background-color: #5a3651;
    top: 100%; 
    width: 140%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.dropdown-menu li {
    border-bottom: 1px solid #744769;
}

.dropdown-menu li a {
    padding: 5%;
    color: white;
}

.dropdown-menu li a:hover {
    background-color: #442538;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block; /* Show on hover for desktop */
}

.fa-container {
    position: absolute;
    top: 40%;        
    right: 10%;
    display: flex;   
    flex-direction: row; 
    gap: 45%;     
}

.fa {
    padding: 10px;
    width: auto;
    height: auto;
    text-align: center;
    text-decoration: none;
}

.fa-brands {
    text-decoration: none;
}

.fa-patreon,
.fa-facebook,
.fa-youtube,
.fa-instagram {
    background: #744769;
    color: white;
    border-radius: 5%;
    font-size: 1.3rem;
}

.fa:hover {
    background-color: #442538;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    position: absolute;
    top: 25px;
    left: 20px;
    z-index: 200;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.4s;
}

/* Transform hamburger to X when active */
.hamburger-menu.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.menu-overlay.active {
    display: block;
}

/* Dropdown arrow styles */
.dropdown-arrow {
    margin-left: 8px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.dropdown-arrow.rotate {
    transform: rotate(90deg);
}

.about-container {
    padding: 40px;
    margin: 0 auto;
    font-family: 'Jura', sans-serif;
    color: #333;
    line-height: 1.6;
}

.founder-section {
    display: flex;
    flex-direction: row;
    gap: 40px;
    margin-bottom: 60px;
    align-items: flex-start;
    padding-right: 40px;
}

.founder-image {
    flex: 0 0 40%;       
}

.founder-photo {
    max-width: 100%;
    border: 5px solid #744769;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.founder-image img[src="/UfoDisclosureBulgaria/images/Kat.jpg"] {
    width: 100%; /* Match the width of other images */
    max-width: 100%; /* Ensure it fills the container */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Ensure proper alignment */
    margin: 0 auto; /* Center the image */
}

.founder-photo:hover {
    transform: translateY(-10px);
}

.founder-bio {
    flex: 0 0 60%;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: left;
}

.founder-bio h2 {
    color: #744769;
    font-size: 2rem;
    margin-bottom: 5px;
    text-align: center;
}

.founder-bio h3 {
    color: #5a3651;
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 500;
    text-align: center;
}

.founder-bio p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    padding: 10px;
}

.mission-section {
    background-color: rgba(216, 71, 105, 0.1);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 60px;
}

.memory-section {
    background-color: rgba(216, 71, 105, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 60px;
}

.mission-section h2 {
    color: #744769;
    text-align: center;
    margin-bottom: 20px;
}

.memory-section h2 {
    color: #744769;
    text-align: center;
    margin-bottom: 20px;
}

.mission-section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 15px auto;
}

.what-we-do h2 {
    text-align: center;
    color: #744769;
    margin-bottom: 30px;
}

.activities {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 60px;
}

.activity-card {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-10px);
}

.activity-card i {
    font-size: 2.5rem;
    color: #744769;
    margin-bottom: 15px;
}

.activity-card h3 {
    color: #5a3651;
    margin-bottom: 15px;
}

.join-us {
    text-align: center;
    padding: 30px;
    background-color: rgba(216, 71, 105, 0.1);
    border-radius: 10px;
}

.join-us h2 {
    color: #744769;
    margin-bottom: 20px;
}

.join-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.join-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #744769;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.join-button:hover {
    background-color: #442538;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(116, 71, 105, 0.3);
}

@media screen and (max-width: 768px) {

    .hamburger-menu {
        display: block;
    }
    .ribbon {
        margin-top: 0;
        width: 100%;
        padding: 10px;
        position: relative;
        height: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }
    .logo_img {
        position: relative;
        left: 0;
        top: 0;
        height: 60px;
        display: block;
        margin: 0;
        margin-left: 50px;
    }
    .fa-container {
        position: relative;
        top: auto;
        right: auto;
        flex-direction: row;
        gap: 10px;
        margin: 0;
    }
    .fa-patreon,
    .fa-facebook,
    .fa-youtube,
    .fa-instagram {
        font-size: 0.9rem;
        padding: 6px;
    }
    .navbar {
        padding: 0;
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 100;
    }
    .navbar.active {
        display: block;
    }
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 0;
    }
    .nav-item {
        width: 100%;
        margin: 0;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-item a {
        padding: 15px 20px;
        font-size: 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        display: none;
        background-color: rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .dropdown-menu li {
        border-bottom: 1px solid #744769;
    }
    .dropdown-menu li:last-child {
        border-bottom: none;
    }
    .dropdown-menu li a {
        padding: 12px 20px 12px 35px;
        font-size: 14px;
    }
    .nav-item.dropdown:hover .dropdown-menu {
        display: none;
    }
    .nav-item.dropdown.active .dropdown-menu {
        display: block;
    }
    .content-board {
        width: 100%;
        height: calc(100%);
        overflow: auto;
        max-height: auto;
        padding-bottom: 100px;
        margin-bottom: 0px;
    }
    h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
        padding-top: 15px;
    }
    .dropdown-arrow {
        margin-left: 8px;
        display: inline-block;
        transition: transform 0.3s ease;
    }
    .dropdown-arrow.rotate {
        transform: rotate(90deg);
    }
    .dashboard-container {
        padding: 10px;
    }
    .welcome-section {
        padding: 10px;
    }
    .widget {
        padding: 10px;
        margin-bottom: 15px;
        width: 100%;
        min-width: 100%;
    }
    .widget h3 {
        font-size: 1.2rem;
    }
    .video-container {
        width: 100%; 
        max-width: 100%; 
        height: 350px; 
    }
    #sightings-map {
        height: 400px !important;
        width: 100% !important;
    }
    .popup {
        width: 90%;
        padding: 20px;
    }
    .about-container {
        padding: 15px;
    }
    .founder-section {
        flex-direction: column;
        gap: 20px;
        padding-right: 0;
    }
    .founder-image, .founder-bio {
        flex: 0 0 100%;
    }
    .activities {
        flex-direction: column;
        gap: 20px;
    }
    .activity-card {
        padding: 15px;
    }
    .join-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .join-button {
        width: 100%;
    }
    .legend {
        right: 1px;
        bottom: 10px; 
        transform: scale(0.5); 
        transform-origin: bottom right; 
        width: auto; 
        margin-left: 0; 
    }
.founder-section .founder-image img[src="/UfoDisclosureBulgaria/images/Kat.jpg"] {
        width: 100% !important; /* Match container width */
        max-width: none !important; /* Remove width restrictions */
        height: auto !important; /* Maintain aspect ratio */
        display: block !important; /* Ensure block-level centering */
        margin: 0 auto !important; /* Center horizontally */
        padding: 0 !important; /* Remove any padding */
        box-sizing: border-box !important; /* Ensure consistent sizing */
        object-fit: contain !important; /* Prevent cropping, scale to fit */
    }
    .founder-section .founder-image {
        width: 100% !important; /* Ensure container is full width */
        padding: 0 !important; /* Remove padding that might shrink image */
        overflow: visible !important; /* Prevent clipping */
    }
}

@media screen and (min-width: 769px) and (max-width: 1132px) {
    body {
        transform: scale(1, 1.15);
        transform-origin: top center;
        width: 100%;
        margin: 0 auto;
    }
    .nav-item a {
        font-size: 65%;
    }
    .nav-item.dropdown {
        font-size: 90%;
    }
    .fa-brands {
        font-size: 0.8rem;
        padding: 4px;
    }
    .fa-container {
        gap: 15px;
        right: 2%;
        top: 35%;
    }
    .content-board {
        width: 98%;
    }
    .ribbon {
        width: 98%;
    }
    .nav-list {
        flex-direction: row;
    }
    .founder-section {
        flex-direction: row;
    }
    .activities {
        flex-direction: row;
    }
    .join-buttons {
        flex-direction: row;
    }

    .founder-section {
        flex-direction: column;
        gap: 20px;
        padding-right: 0;
    }
    .founder-image, .founder-bio {
        flex: 0 0 100%;
    }
    
    .widget {
        padding: 10px;
        margin-bottom: 15px;
        width: 100%;
        min-width: 100%;
    }
    .video-container {
        width: 100%;
        max-width: 100%; 
    }
    
    .founder-section .founder-image img[src="/UfoDisclosureBulgaria/images/Kat.jpg"] {
        width: 100% !important; /* Match container width */
        max-width: none !important; /* Remove width restrictions */
        height: auto !important; /* Maintain aspect ratio */
        display: block !important; /* Ensure block-level centering */
        margin: 0 auto !important; /* Center horizontally */
        padding: 0 !important; /* Remove any padding */
        box-sizing: border-box !important; /* Ensure consistent sizing */
        object-fit: contain !important; /* Prevent cropping, scale to fit */
    }
    .founder-section .founder-image {
        width: 100% !important; /* Ensure container is full width */
        padding: 0 !important; /* Remove padding that might shrink image */
        overflow: visible !important; /* Prevent clipping */
    }
}

@media screen and (min-width: 1133px) and (max-width: 1320px) {
    body {
        transform: scale(0.9, 1);
        transform-origin: top center;
        width: 100%;
        margin: 0 auto;
    }
    .nav-item a {
        font-size: 75%;
    }
    .nav-item.dropdown {
        font-size: 90%;
    }
    .fa-brands {
        font-size: 1rem;
        padding: 5px;
    }
    .fa-container {
        gap: 15px;
        right: 2%;
        top: 35%;
    }
    .content-board {
        width: 90%;
    }
    .ribbon {
        width: 90%;
    }
    .nav-list {
        flex-direction: row;
    }
    .founder-section {
        flex-direction: row;
    }
    .activities {
        flex-direction: row;
    }
    .join-buttons {
        flex-direction: row;
    }
}

@media (hover: none) {
    .nav-item.dropdown .dropdown-menu {
        display: none;
    }
    .nav-item.dropdown:active .dropdown-menu {
        display: block;
    }
}