/* General styles */
body {
    display: flex;
    flex-direction: column; /* Ensure children stack vertically */
    align-items: flex-start; /* Align items to the top */
    justify-content: flex-start; /* Align items to the start horizontally */
    min-height: 100vh;
    margin: 0;
    color: #151515;
    background-color: #ffffff;
    font-family: Arial, sans-serif;
    padding-top: 65px;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Navbar styling */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 18px;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    z-index: 1000;
    width: 100vw;
    overflow-x: hidden;
}

.navbar-links {
    display: flex;
    gap: 20px;
}

.navbar a {
    color: #151515;
    text-decoration: none;
    font-size: 25px;
    font-weight: bold;
    transition: transform 0.6s ease;
}

.navbar a:hover {
    color: #007bff;
    transform: scale(0.9, 1.2);
}

.burger-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        background-color: transparent;
    }

    .burger-menu {
        display: block;
        margin-bottom: 8px;
        background-color: #9aff00;
        padding-left: 6px;
        padding-right: 6px;
        padding-bottom: 3px;
        border-radius: 8px;
    }

    .navbar-links {
        display: none;
        flex-direction: column;
        gap: 10px;
        background-color: rgba(0, 229, 255, 1);
        padding: 10px;
        border-radius: 8px;
    }

    .navbar-links.active {
        display: flex;
    }

    .navbar a {
        font-size: 24px;
    }
}

/* Content list */
.content-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align items to the start vertically */
    justify-content: flex-start; /* Align items to the start horizontally */
    width: 100%;
    box-sizing: border-box;
    text-align: left; /* Optional: align text to the left */
}


.item {
    position: relative;
    width: 100%;
    height: calc(100vh - 65px);
    transition: transform 0.3s ease;
}

.item-title {
    position: absolute;
    top: 20px;
    left: 20px;
    height: 80px;
    width: auto; /* Ensure aspect ratio is preserved */
    max-width: 100%; /* Prevent overflow */
    object-fit: contain; /* Scale within given dimensions */
    z-index: 3;
}

.item-description {
    font-size: 16px;
    position: absolute;
    top: 30px;
    right: 5%;
    background-color: rgba(255, 255, 255, 0.5); /* Use RGBA for transparent background */
    padding: 0px;
    max-width: 400px;
    z-index: 2;
    /* Remove opacity so it doesn't affect the text */
}

.content-list a {
    color: inherit; /* Inherit the color from parent (no link color change) */
    text-decoration: none; /* Remove underline */
}

.item-description p {
    margin: 0;
    text-align: center;
}

.item-image {
   align-self: center;
    width: 100%;
    height: 100%; /* Ensures the image fills the container */
    object-fit: cover; /* Ensures the image covers the entire area, cropping as necessary */
    transition: transform 0.3s ease;
    z-index: 1;
}


@media (max-width: 768px) {
    /* Content list adjustments for mobile */

    .content-list {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Align items to the start vertically */
        justify-content: flex-start; /* Align items to the start horizontally */
        width: 100%;
        box-sizing: border-box;
        text-align: left; /* Optional: align text to the left */
    }
    

    .item {
        width: 100%; /* Volle Breite im mobilen Layout */
        transform: none; /* Kein Skalieren auf Hover */
        height: 400px;
    }

    .item-title {
        position: absolute;
        top: 10px;
        left: 50%;
        height: 50px;
        width: auto; /* Ensure aspect ratio is preserved */
        max-width: 100%; /* Prevent overflow */
        object-fit: contain; /* Scale within given dimensions */
        transform: translateX(-50%);
        z-index: 3;
    }

    .item-description {
        font-size: 12px;
        position: absolute;
        background-color: rgba(255, 255, 255, 0.5); /* Use RGBA for transparent background */
        padding: 0px;
        max-width: 400px;
        z-index: 2;
        left: 50%;
        transform: translateX(-50%);
        top: 60px; /* Position at the bottom for mobile */
    }
    
    .item-image {
        align-self: center;
        width: 100%;
        height: 400px;
        object-fit: cover;
        transition: transform 0.3s ease;
        z-index: 1;
    }

}

.menu-text {
    display: none; /* Hide by default */
}

@media (max-width: 768px) {

    .menu-text {
        display: inline-block; /* Show the menu text in mobile */
        position: absolute; /* Position it independently */
        left: 60px; /* Center horizontally */
        font-size: 25px; /* Adjust font size for mobile */
        font-weight: bold;
        color: #151515; /* Match the navbar text color */
        background-color: #ffffff;
        padding: 3px;
        border-radius: 10px;
        z-index: -1;
    }

}


.vibrating-text {
    position: fixed;
    top: 0;
    right: 0;
    font-size: 17px;
    margin-right: 20px;
    margin-top: 13px;
    padding: 10px;
    text-align: right;
    font-weight: bolder;
    cursor: pointer;
    z-index: 1000;
    color: #151515;
    background-color: #fdc8ff;
    transition: transform 0.6s ease; /* Dauer auf 0.6s erhöht */
    border-radius: 30px;
  }
  
  .vibrating-text:hover {
    color: #007bff; /* Blue color on hover */
    transform: scale(0.9, 1.2); /* Width 1.2x, Height 1.7x */
  }
  
  /* Mobile view: Hide vibrating text */
  @media (max-width: 1200px) {
    .vibrating-text {
      display: none;  /* Hide on mobile devices */
    }
  }