@import url(https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Raleway:wght@700&display=swap);


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto";
}

@media (max-width: 700px) {
    .navbar {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Align links to the left */
        background: #000;
        position: absolute;
        top: 60px;
        right: 10px;
        width: 180px; /* Decrease width of the dropdown box */
        border-radius: 5px;
        overflow: hidden;
        height: 0;
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
        transition: opacity 0.3s ease, height 0.3s ease;
        padding: 5px 10px; /* Reduce padding for a smaller box */
    }

    .navbar.active {
        height: auto;
        opacity: 1;
        transform: scaleY(1);
    }

    .navbar a {
        margin: 5px 0; /* Adjust space between links */
        padding: 8px 10px; /* Reduce padding for smaller clickable areas */
        width: 100%; /* Ensure links take up full width */
        text-align: left; /* Align text to the left */
        font-size: 16px !important; /* Adjust font size if necessary */
    }

    .navbar a::before {
        display: none; /* Remove the underline in dropdown */
    }

    .navbar a:hover::before {
        display: none; /* Ensure underline does not appear on hover */
    }

    .hamburger {
        display: block;
        font-size: 26px;
        color: #fff;
        cursor: pointer;
    }

    .banner-text{
        font-size: 29px !important;
    }
}

@media (max-width: 450px){
    .banner-text{
        font-size: 23px !important;
    }
}

@media (max-height: 450px){
    #title{
        font-size: 32px !important;
    }
}


.hamburger {
    display: none;
}

body{
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-color: #fff;
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px; /* Explicit height */
    padding: 10px 5%;
    background: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo img {
    width: 30px;
    height: auto;
    display: block;
}

.navbar {
    display: flex;
    justify-content: flex-end; /* Align links to the right */
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping */
}

.navbar a {
    position: relative;
    font-size: 18px;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    margin-left: 20px; /* Adjust margin to reduce spacing if needed */
}


.navbar a::before {
    content: '';
    position: absolute;
    top: 100%;
    width: 0;
    height: 2px;
    background: #e94560;
    transition: .3s;
}


.navbar a:hover::before {
    width: 100%;
}

.banner {
    background-image: url(images/interstellar-is-the-greatest-movie-ever-made/interstellar-mainimage.jpg);
    background-size: cover;
    background-position: center center;
    top: 100px;
    height: 45vh;
}

.banner-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    color: #fff;
    background-color: transparent;
    text-align: center;
    font-size: 32px;
    margin: 0;
    height: 110%;
}

#title {
    margin: 0;
    padding: 0;
}

#author {
    font-size: 13px;
}

.all-content{
    border: 5px solid;
    border-color: #f9f9f9;
    max-width: 800px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    margin: 40px auto;
}


h2{
    font-size: 25px;
}

p{
    padding: 10px 20px;
    margin: 0;
    line-height: 2;
    text-indent: 5.5%;
}

img{
    width: 100%;
    margin: 40px auto;
    border-radius: 5px;
}

#buttons{
    text-align: center;
    margin: 20px;
}

.latest-button{
    padding: 10px 20px;
    background-color: black;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.latest-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.home-button{
    padding: 10px 20px;
    background-color: black;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.citations-button{
    padding: 10px 20px;
    background-color: black;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.citations-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}