@import url('https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&family=Arima:wght@100..700&family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Concert+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&family=Arima:wght@100..700&family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Concert+One&display=swap');
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body{
    height: 100%;
    width: 100%;
}
nav{
    width: 100%;
    height: 60px;
    background-color: rgb(13, 13, 37);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
    padding: 10px 50px;
    position: fixed;
    z-index: 9999999;
    
}
nav h1 a{
    color: white;
    text-decoration: none;
}
nav .explore{
    padding: 10px 10px;
    background-color:#C96868;
    border-radius: 50px;
    border: none;
    font-size: 15px;
    color: white;
    transition: 0.5s;
}

.navelem ul li{
    display: inline-block;
    color: white;
    padding:5px 10px;
    border: 1px solid white;
    border-radius: 50px;
    gap: 30px;
    transition: 0.5s;
    z-index: 99999;
    
    

    
}

.navelem ul li a{
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 10px;
    z-index: 999999;

}
.navelem ul li:hover{
    border: 2px solid white;
    background-color: white;
    z-index: 99999;
    
}
.navelem ul li a:hover{
    color: black;
    background-color: transparent;
    z-index: 99999;
}
.space{
    width: 5%;
}
nav .explore:hover{
    background-color: #FD8B51;
}
ul li {
    position: relative; /* Ensures the dropdown is positioned relative to the parent li */
}

.dropdown {
    display: none;
    position: absolute;
    margin-top: 5px;
    top: 100%; /* Makes sure it appears just below the parent menu item */
    left: 0;
    background-color:  rgb(13, 13, 37);
    z-index: 1; /* Ensures the dropdown is on top */
    padding: 10px 0;
    border-radius: 10px;
}

ul li:hover .dropdown, 
.dropdown:hover {
    display: block; /* Keeps the dropdown visible when hovering over it */
}

.dropdown ul {
    margin: 0;
    padding: 0;
}

.dropdown ul li {
    display: block;
    margin: 10px 0;
    border: none;
    white-space: nowrap;
}
.dropdown ul li:hover{
    background-color:white;
    border-radius:0%;
    

}
/* /* ---------------------------------- */
ul li {
    position: relative; /* Ensures the dropdown is positioned relative to the parent li */
}

.dropdown1 {
    display: none;
    position: absolute;
    margin-top: 5px;
    top: 100%; /* Makes sure it appears just below the parent menu item */
    left: 0;
    background-color:  rgb(13, 13, 37);
    z-index: 1; /* Ensures the dropdown is on top */
    padding: 10px 0;
    border-radius: 10px;
}

ul li:hover .dropdown1, 
.dropdown11:hover {
    display: block; /* Keeps the dropdown visible when hovering over it */
}

.dropdown1 ul {
    margin: 10px;
    padding: 0;
}

.dropdown1 ul li {
    display: block;
    margin: 10px 0;
    border: none;
    white-space: nowrap;
}
.dropdown1 ul li:hover{
    background-color:white;
    border-radius:0%;
} 
#menu-icon{
    position: absolute;
    right: 3%;
    font-size: 20px;
    padding: 5px 10px;
    background-color: #C96868;
    color: white;
    border: none;
}
/* ////////////////////////////media queries and side bar//////////// */
.sidebar {
    position: fixed;
    top: 0;
    right: -250px; /* Initially off-screen */
    width: 250px;
    height: 100vh;
    background-color: rgb(13, 13, 37);
    transition: right 0.3s ease; /* Smooth transition */
    z-index: 9999;
    padding: 20px; /* Add some padding */
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 20px 0; /* Space between items */
    color: white;
    
}
.sidebar ul li:hover {
   
    color: black;
    
}

.sidebar ul li a{
    color: white;
    text-decoration: none;
}

.sidebar.open {
    right: 0; /* Move sidebar into view */
}
.sidebar .explore{
    padding: 5px 5px;
    background-color:#C96868;
    border-radius: 50px;
    border: none;
    font-size: 15px;
    color: white;
    transition: 0.5s;
}
/* Media Queries */
@media (max-width: 1024px) {
    .navelem {
        display: none; /* Hide horizontal navigation on small screens */
    }

    .sidebar {
        width: 200px; /* Adjust sidebar width for smaller screens */
    }

    .sidebar.open {
        right: 0; /* Ensure sidebar is visible */
    }

    nav {
        padding: 10px; /* Adjust padding for smaller screens */
    }

    nav h1 {
        font-size: 18px; /* Adjust font size for smaller screens */
    }

    nav .explore {
        font-size: 20px; /* Adjust button size for smaller screens */
        display: none;
    }
   
}
.top{
    position: absolute;
    top: 15%;
    left: 10%;
    background-color: #4379F2;
    width: 80%;
    display: flex;
    justify-content: center;
}
.top h1{
    font-size: 40px;
    font-family: "Afacad Flux", sans-serif;
    color: white;
}
/* ===================================================================================================== */
.outercontainer{
    height: 55vh;
    width: 90%;
    position: absolute;
    top: 30%;
    left: 5%;
    /* background-color: red; */
    display: flex;
    justify-content: space-between;
    
}
.outercontainer2{
    height: 55vh;
    width: 90%;
    position: absolute;
    top: 100%;
    left: 5%;
    /* background-color: red; */
    display: flex;
    justify-content: space-between;
}
.outercontainer3{
    height: 55vh;
    width: 90%;
    position: absolute;
    top: 170%;
    left: 5%;
    /* background-color: red; */
    display: flex;
    justify-content: space-between;
}
.outercontainer4{
    height: 55vh;
    width: 90%;
    position: absolute;
    top: 240%;
    left: 5%;
    /* background-color: red; */
    display: flex;
    justify-content: space-between;
}

.container{
    height: 100%;
    width: 23%;
    /* background-color: green; */
    
    
}
.container .photo1{
    height: 50%;
    background-color: blue;
    background-image: url(image.png);
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    margin-bottom: 7px;
}
.container .photo2{
    height: 50%;
    background-color: blue;
    background-image: url(https://erepublic.brightspotcdn.com/dims4/default/dd83c3a/2147483647/strip/true/crop/4096x1991+0+0/resize/1440x700!/quality/90/?url=http%3A%2F%2Ferepublic-brightspot.s3.us-west-2.amazonaws.com%2F2b%2F37%2Ff4e2a40449dbade591f580fd0c03%2Fhttps-download.shutterstock.com%2Fgatekeeper%2FW3siZCI6ICJzaHV0dGVyc3RvY2stbWVkaWEiLCAiayI6ICJwaG90by8xODE2MTcyODQ2L2h1Z2UuanBnIiwgImRjIjogImlkbF8xMjMiLCAiZSI6IDE2MzM3NTI5OTQsICJtIjogMX0sICJsQStHMTlqanNNYS93VVRpcjhNb21TNkhSRWciXQ%3D%3D%2Fshutterstock_1816172846.jpg);
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    margin-bottom: 7px;
}
.container .photo3{
    height: 50%;
    background-color: blue;
    background-image: url();
    background-position: center;
    border-radius: 20px;
    margin-bottom: 7px;
}
.container .photo4{
    height: 50%;
    background-color: blue;
    background-image: url(https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSFtqiP6L4HttJT3qudTh03wKe9YHwfeV4yZA&s);
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    margin-bottom: 7px;
}
.container .message{
    height: 50%;
    background-color: #4070F4;
    padding: 5px 10px;
    color: white;
    border-radius: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: 0.5s;
}
.container .message:hover{
    background-color:#CD5C08;
}
.container .message h2{
    margin-bottom: 8px;
    font-family: "Afacad Flux", sans-serif;
    color: yellow;
}
.container .message p{
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: 100;
}
.container .message h4{
    position: absolute;
    bottom:3%;
    background-color: rgb(11, 11, 52);
    color: white;
    padding: 5px 10px;
    border-radius: 50px;
    transition: 0.5s;
}
.container .message h4:hover{
    background-color: white;
    color: black;

}
/* ================= */
@media (max-width: 768px) {
    .outercontainer,
    .outercontainer2,
    .outercontainer3,
    .outercontainer4 {
        display: flex;
        overflow-x: auto; /* Allow horizontal scrolling */
        scroll-snap-type: x mandatory; /* Add scroll snap */
    
    }
    .outercontainer2{
        position: absolute;
        top: 80%;
    }
    .outercontainer3{
        position: absolute;
        top: 130%;
    }
    .outercontainer4{
        position: absolute;
        top: 180%;
    }
    .container {
        width: 100%; /* Full width for each container */
        flex: 0 0 auto; /* Prevent shrinking */
        scroll-snap-align: start; /* Snap alignment */
    }

    .container .photo1 {
        width: 95%; /* First box takes 75% of the width */
    }

    .container .photo2 {
        width: 95%; /* Second box takes 25% of the width */
    }

    /* Optional: Ensure all other boxes are of equal width */
    .container .photo3,
    .container .photo4 {
        width: 95%; /* Each of the remaining boxes takes 25% */
    }

    /* Adjust heights if needed */
    .container .photo1,
    .container .photo2,
    .container .photo3,
    .container .photo4 {
        height: 50%; /* Keep the height consistent */
    }
    .container .message p{
        display: none;
    }
    .container .message{
        height: 25%;
        width: 95%;
        position: relative;
    }
    .container .message a h4{
        position: absolute;
        top: 20%;
        right: 2%;
        /* border: 1px solid white; */
        /* border-radius: 10px; */
        
        /* background-color: transparent; */
        background-color: rgb(11, 11, 52);
        color: white;
        padding: 0 10px;
        padding-top: 10px;
        padding-bottom: 0;
        border-radius: 20px;
    } 
    .top h1{
        font-size: 30px;
        position: relative;
        top: 10%;
    }
}
@media (max-width:1024px){
    .outercontainer,
    .outercontainer2,
    .outercontainer3,
    .outercontainer4{
        height: 35vh;
        
    }
    .outercontainer{
        position: absolute;
        top: 20%;
    }
    .outercontainer2{
        position: absolute;
        top: 60%;
    }
    .outercontainer3{
        position: absolute;
        top: 100%;
    }
    .outercontainer4{
        position: absolute;
        top: 140%;
    }
    .container .message p{
        display: none;
    }
}


