body {
    margin: 0;
    font-family: Arial, sans-serif;
}
nav {
    background-color: black;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
    box-sizing: border-box;
}
nav .logo {
    display: flex;
    align-items: center;
}
nav .title {    
    font-size: 24px;
}
.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
}
nav .menu {
    display: none;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}
nav .menu li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}
nav .menu li a:hover {
    color: gray;
}
.menu {
    display: none;
}
.carousel-indicators .active { 
    background: gray;
}   
@media (max-width: 720px) {
    .carousel {
        position: absolute;
        height: 40vh;
        overflow: hidden;
        width: 100%;
        margin-top: 62.4px;
    }

    .carousel-inner {
        display: flex;
        transition: transform 0.5s ease;
        height: 100%;
    }

    .carousel-item {
        min-width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .carousel-item img { 
        width: 100%; 
        height: 100%;
        min-height: 100%;
        object-fit: cover; 
        display: block; 
    }

    .carousel-indicators {
        position: absolute;
        display: flex;
        gap: 5px;
        bottom: 5px;
        left: 5px;
    }

    .carousel-indicators div {
        background: white;
        cursor: pointer;
        width: 12px;
        height: 12px;
    }
    .menu-toggle {
        display: block;
    }
    .menu {
        display: none;
        flex-direction: column;
        background-color: black;
        position: fixed;
        top: 60px;
        right: 0;
        width: 80%;
        height: 100%;
    }
    .submenu {
        display: none;
        flex-direction: column; 
        padding-left: 10px;
        width: 100%; 
        list-style-type: none;
    }
    .submenu li {
        display: fixed;
        justify-content: left;
        margin: 0;
        width: 100%;
        padding-top: 10px;
    }
    .submenu li a {
        display: block;
        color: white; 
        -webkit-tap-highlight-color: transparent; 
    }
    
    .menu.active {
        display: flex;
    }
    .menu li {
        padding-right: 10px;
    }
    .menu li a{
        padding-left: 20px; 
    }
    .menu li:last-child {
        border-bottom: none;
    }
    nav .logo {
        justify-content: flex-start;
    }
    nav .title {
        text-align: center;
        margin-left: 0.75em;
        margin-top: 0.25em;
        font-size: 1.6em;
    }
    nav ul li ul.submenu { 
        display: none;
        
    }
    .menu-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent; 
    }
    .menu li:focus {
        background-color: #f0f0f0;
    }
    .submenu.active {
        display: flex;        
    }
    .arrow {
        transition: transform 0.3s ease;
    }
    
    .rotated {
        transform: rotate(180deg);
    }
}

@media (min-width: 720px) {
    .carousel { 
        position: relative; 
        overflow: hidden; 
        width: 100%; 
        height: 96vh; 
        margin: 20px auto; 
        box-sizing: border-box; }
    .carousel-inner { 
        display: flex; 
        transition: transform 0.5s ease; 
        height: 100%; }
    .carousel-item { 
        min-width: 100%; 
        height: 100%; 
    }
    .carousel-item img { 
        width: 100%;
        height: 100%; 
        object-fit: cover; 
    }
    .carousel-indicators { 
        position: absolute; 
        bottom: 10px; 
        left: 10px; 
        display: flex; 
        gap: 5px; 
    }
    .carousel-indicators div { 
        width: 15px; 
        height: 15px; 
        background: white; 
        cursor: pointer; 
    }
    .menu-toggle {
        display: none;
    }
    nav .menu {
        display: flex;
        position: relative;
    }
    .nav-container {
        justify-content: space-between;
    }
    .logo {
        justify-content: flex-start;
    }
    .title {
        text-align: center;
        flex-grow: 1;
        margin-top: 8px;
    }
    .arrow {
        display: none;
    }
    nav ul li ul.submenu {
        display: none;
        position: absolute;
        background: rgba(0, 0, 0, 0.7); 
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        top: 100%;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
        padding: 10px 0; top: 100%;
        transform: translateX(-12%);
        min-width:160px;
    }
	nav ul li:hover ul.submenu {
        display: block;
    }
	nav ul li ul.submenu li a {
        padding-top: 20px;
        text-decoration:underline;
    }
	nav ul li ul.submenu li {
        display: block;
        padding: 10px 20px;
    }
}

