body{
    background-color: black;
    font-family:'Times New Roman', Times, serif;
}

#background-img {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%; 
    min-height: 100%;
    z-index: -1; /* Keeps the video behind the content */
    object-fit: cover;
}

.stars-section {
    padding: 2em;
    background-color: transparent;
    color: white;
    text-align: center;
}

.stars-section h2 {
    color: violet;
    font-size: 50px;
}
#star-image {
    width: 400px;
    height: 350px;
}


.star-info {
    display:flex;
    justify-content: space-between;
    padding: 1em;
}

.star-map, .constellation-info, .astronomy-facts, .stargazing-tips {
    width: 100%;
    border-radius: 10px solid #ffcc00;
    border: #ffcc00;
    text-align: center;
    
}
.star-map h3, .constellation-info h3, .star-classifications h3, .stargazing-tips h3 , .famous-stars h3 {
    
    color: white;
    font-size: 40px;
}
.star-map p,  .constellation-info p{
    color: white;
    
}
.star-classifications p , .famous-stars p{
    color: white;
    /*background-color: rgba(116, 127, 205, 0.7);*/
    border-radius: 20px;
    font-size: x-large;
}

.star-info ul {
    list-style: none;
}

.star-info a {
    color: #ffcc00;
    text-decoration: none;
    font-size: large;
}

.stargazing-tips, .star-classifications {
    margin-top: 1.5em;
}

iframe {
    border: none;
    
}

.stargazing-tips{
    width: 95%;
    height: auto;
    background-color: rgba(128,128,128,0.6);
    color: white;
    border-radius: 30px;
    border: 10px solid rgba(128,128,128,0.6);
    
}
.stargazing-tips h4{
    color: white;
    text-align: left;
    font-size:30px ;
    margin: 0;
    
  
}
.stargazing-tips p{
    text-align: left;
    font-size: 20px;
    margin: 1;
    
}


.constellations{
    display: flex;
    flex-wrap: wrap;
    column-count: 3;
    align-items: center;
    background-color: transparent;
    padding: 30px;

    
}
.constellation {
    width: 25%;
    padding:1%;
    margin: 1%;
    max-width: 600px;
    
    cursor: pointer;
    border: 1px solid transparent;
    align-items: center;
    border-radius: 5px;
    
    background-color: rgba(94, 59, 59, 0.8);
    transition: background-color 0.3s;
}
.constellation h2{
    color: orange;
    font-size: large;
}

.constellation:hover {
    background-color: gray;
}

.details {
    
    display: none;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: black;
    height: fit-content;
    max-height: 0; /* Initially, the dropdown is hidden */
    transition: max-height 0.5s ease-out; /* Smooth*/
    overflow-y: auto;
   
   
}

.details textarea {
    width: 100%;
    height: 800px;
    border: 1px solid black;
    border-radius: 5px;
    padding: 5px;
    font-size: 14px;
    overflow-y: auto;
    color: #ddd;
    background-color: #000;
   
    
}

.details.show {
    
    z-index: 9999;
    color: black;
    display: block; /* Make it visible */
    max-height: 200px; /* Adjust according to your textarea height */
    padding: 10px; /* Add padding when showing */
    transition: max-height 0.5s ease-in, padding 0.5s ease-in; /* Smooth transition */
}


/* Small image styling */
.small-image {
    width: 40%; /* Initial small size */
    height: auto;
    transition: transform 0.3s ease-in-out; /* Smooth transition */
    cursor: pointer; /* Pointer cursor to indicate clickability */
}

/* Enlarged image styling */
.large-image {
    transform: scale(2); /* Enlarge the image to 2x its size */
    cursor: pointer; /* Pointer cursor for clicking when large */
    
}

.star-class-types{
    display: flex;
    flex-direction:initial;
}
.types {
    text-align: left;
    padding: 1%;
    background-color:rgba(116, 127, 205, 0.7) ;
    border-radius: 20px;
    margin: 1%;
   
}
.types h4{
    font-size: 25px;
}
.types p{
    font-size: medium;
}
.types b{
    font-weight: bold;
    font-size: 19px;
    color: #15ff00;
}

.fstars {
    display: flex;
    flex-wrap: wrap;
    
}
.stars{
    width: 16%;
    padding: 1%;
    background-color:rgba(103, 38, 7, 0.7) ;
    border-radius: 20px;
    margin: 1%;
}
.stars p{
    font-size: medium;
    
}
.stars b{
    font-size: large;
    color: aqua;
}
.stars h4{
    font-size: x-large;
}
/* Hamburger Menu Icon */
.menu-icon {
    display: inline-block;
    cursor: pointer;
    margin: 20px;
    
}

.menu-icon .bar {
    width: 35px;
    height: 5px;
    background-color: #333;
    margin: 6px 0;
    transition: 0.4s;
    z-index: 1000;
    
}



/* Navigation Menu (Initially Hidden) */
#site-navigation {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 200px;
    background-color: #333;
    color: white;
    transform: translateX(100%); /* Hidden by default */
    transition: transform 0.3s ease;
    z-index: 9999;
}

#site-navigation ul {
    list-style-type: none;
    padding: 0;
    margin: 50px 0 0;
    text-align: center;
    
}

#site-navigation li {
    padding: 10px 0;
}

#site-navigation a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
}

#site-navigation a:hover {
    background-color: #575757;
}

/* Show Menu When Active */
#site-navigation.active {
    transform: translateX(0); /* Show the navigation */
}

/* Utility Class to Hide the Menu */
.hidden {
    display: none;
}



@media (max-width: 480px) {

    /* Adjustments for the stars section */
.stars-section {
    padding: 1em;
    background-color: transparent;
    color: white;
    text-align: center;
}

.stars-section h2 {
    color: violet;
    font-size: 2em; /* Reduce font size for mobile */
}

#star-image {
    width: 90%; /* Make image responsive */
    height: auto;
}

/* Flex layout adjustments for star-info */
.star-info {
    display: flex;
    flex-direction: column; /* Stack items vertically for mobile */
    align-items: center;
    padding: 1em;
}

/* General sections adjustments */
.star-map, .constellation-info, .astronomy-facts, .stargazing-tips {
    width: 100%; /* Full width on mobile */
    text-align: center;
    margin: 10px 0; /* Add margin for better spacing */
}

.star-map h3, .constellation-info h3, .star-classifications h3, .stargazing-tips h3, .famous-stars h3 {
    font-size: 1.5em; /* Reduce font size for mobile */
}

.star-map p, .constellation-info p {
    color: white;
}

.star-classifications p, .famous-stars p {
    color: white;
    font-size: large;
}

/* List styling */
.star-info ul {
    list-style: none;
    padding: 0;
}

/* Anchor link styling */
.star-info a {
    color: #ffcc00;
    text-decoration: none;
    font-size: medium;
}

/* Adjust stargazing tips for mobile */
.stargazing-tips {
    width: 100%;
    background-color: rgba(128,128,128,0.6);
    color: white;
    border-radius: 15px;
    border: 5px solid rgba(128,128,128,0.6);
    padding: 10px;
}

.stargazing-tips h4 {
    font-size: 1.2em;
    margin: 0;
}

.stargazing-tips p {
    text-align: left;
    font-size: 1em;
}

/* Adjust constellation grid for mobile */
.constellations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center items */
    padding: 10px;
}

.constellation {
    width: 90%; /* Full width on mobile */
    margin: 10px;
    padding: 10px;
    background-color: rgba(94, 59, 59, 0.8);
}

.constellation h2 {
    color: orange;
    font-size: large;
}

/* Details section */
.details {
    display: none;
    padding: 10px;
    background-color: black;
    max-height: 0;
    transition: max-height 0.5s ease-out;
    overflow-y: auto;
}

.details.show {
    display: block;
    max-height: 200px;
    transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

/* Small image styling for mobile */
.small-image {
    width: 70%; /* Larger image for mobile */
    height: auto;
}

.large-image {
    transform: scale(1.5); /* Less zoom for mobile */
}

/* Star class types adjustments */
.star-class-types {
    display: flex;
    flex-direction: column; /* Stack vertically on mobile */
}

.types {
    width: 100%;
    padding: 10px;
    background-color: rgba(116, 127, 205, 0.7);
    margin: 10px 0;
}

.types h4 {
    font-size: 1.2em;
}

.types p {
    font-size: medium;
}

/* Famous stars section */
.fstars {
    display: flex;
    flex-wrap: wrap;
}

.stars {
    width: 45%; /* Adjust width for mobile */
    margin: 10px;
    background-color: rgba(103, 38, 7, 0.7);
    padding: 10px;
}

.stars h4 {
    font-size: 1.5em;
}

/* Menu styling */
.menu-icon {
    display: inline-block;
    cursor: pointer;
    margin: 20px;
}

.menu-icon .bar {
    width: 30px;
    height: 4px;
    background-color: #333;
    margin: 6px 0;
}

#site-navigation {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 250px; /* Adjust width for mobile */
    background-color: #333;
    color: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

#site-navigation ul {
    padding: 0;
    margin: 50px 0 0;
    text-align: center;
}

#site-navigation li {
    padding: 10px 0;
}

#site-navigation a {
    color: white;
    padding: 10px;
}





    .stars-section h2 {
        font-size: 1.5em; /* Further adjust for mobile phones */
    }

    #star-image {
        width: 100%;
    }

    .stargazing-tips h4 {
        font-size: 1.2em;
    }

    .constellation {
        width: 90%; /* Full width on mobile */
    }

    .stars {
        width: 90%; /* Make stars section full width on mobile */
    }
}