@font-face {
    font-family: "BMWType2Regular";
    src: url('../fonts/bmwr.ttf');
}

@font-face {
    font-family: "BMWType2Bold";
    src: url('../fonts/bmwb.ttf');
}

body {
    margin: 0;
    font-family: "BMWType2Regular", sans-serif;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    position: relative;
    z-index: 2;
}

.left-container {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 15px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.hamburger.open .line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open .line:nth-child(2) {
    opacity: 0;
}

.hamburger.open .line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.line {
    height: 3px;
    background-color: #000;
    transition: all 0.3s ease;
}

.menu-text {
    font-size: 16px;
    color: #000;
}

.menu:hover .line {
    background-color: #0066B0;
}

.menu:hover .menu-text {
    color: #0066B0;
}

.right-container {
    display: flex;
    align-items: center;
}

.brand-text {
    text-align: left;
    margin-right: 10px;
}

.brand-line {
    display: block;
    line-height: 1px; /* Reduces space between lines */
    margin: 0;
}

.logo {
    height: 65px;
}

.hidden-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #ddd;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.hidden-menu.show {
    display: flex;
    justify-content: center;
}

.hidden-menu a {
    margin: 0 15px;
    font-size: 16px;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hidden-menu a:hover {
    color: #0066B0;
}

.image-container {
    position: relative;
    width: 100%;
    margin-top: 0px; /* Add margin to ensure it's below the header */
    overflow: hidden;
}

.image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none; /* Disable interactions for non-active images */
}

.image-wrapper.active {
    opacity: 1;
    pointer-events: auto; /* Enable interactions for active image */
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.text-overlay {
    position: absolute;
    bottom: 25%; /* Adjust this value to move the text overlay up or down */
    left: 5%;
    color: white;
}

.text-row.large {
    font-family: "BMWType2Bold", sans-serif;
    font-size: 60px; /* Adjust as needed */
    letter-spacing: 1px; /* Adjust the spacing between letters */
}

.text-row.small {
    font-family: "BMWType2Bold", sans-serif;
    font-size: 24px; /* Adjust as needed */
    margin-top: 2px; /* Ensures only 1px space between rows */
}

.button {
    display: inline-block;
    margin-top: 10px; /* Space between text and button */
    padding: 10px 45px;
    font-family: "BMWType2Regular", sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #000;
    background-color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.button:hover {
    color: #fff;
    background-color: #0066B0;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .image-container {
        height: 780px;
    }
}

@media (max-width: 767px) {
    .image-container {
        height: 400px;
    }
}
