
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #1e1e1e;
}

header a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f8f8f8;
    text-decoration: none;
    transition: color 0.3s ease;
}

header a:hover {
    color: #ff4081;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #f8f8f8;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff4081;
}



.dropdown-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 150px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-list li {
    padding: 10px;
    background-color: #f9f9f9;
    color: #333;
}

.dropdown-list li a {
    color: #333;
    text-decoration: none;
    display: block;
}

.dropdown-list li:hover {
    background-color: #eeeeee;
}

/* Show dropdown when hovering over "Planets" */
.dropdown:hover .dropdown-list {
    display: block;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    text-align: center;
    max-width: 1100px;
    height: 100vh;
    
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #bbbbbb;
}

.cta-button {
    padding: 0.75rem 2rem;
    background-color: #ff4081;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #ff79b0;
}

footer {
    background-color: #1e1e1e;
    padding: 1rem;
    text-align: center;
    color: #bbbbbb;
}

#body {
    background-image: url('Images/back.jpg');
    background-size: cover;
    
}



#main2{
    
    width: 1000px;
    height: 600px;
    margin-top:10px;
    margin-left: 10px;
}

.container {
    margin-top: 50px;
}

.buttons {
    margin: 20px;
}

#sun{
    background-color: #ffcc00;
    color: #000;
}
#mercury{
    background-color: #b0b0b0;
    color: #000;
}
#venus{
    background-color: #ff9900;
    color: #000;
}
#earth{
    background-color: #3399ff;
    color: #fff;
}
#mars{
    background-color: #ff3300;
    color: #fff;
}
#jupiter{
    background-color: #ff6600;
    color: #fff;
}
#saturn{
    background-color: #ffcc99;
    color: #000;
}
#uranus{
    background-color: #66ccff;
    color: #000;
}
#neptune{
    background-color: #3399cc;
    color: #fff;
}
#all{
    background-color: #66ff66;
    color: #000;
}
button {
    margin: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 10px;
    background-color: #fff;
    transition: background-color 0.3s;
    border: none;
}

#sun:hover, #mercury:hover, #venus:hover, #earth:hover, #mars:hover, #jupiter:hover, #saturn:hover, #uranus:hover, #neptune:hover, #all:hover {
    background-color: #ff4081;
}

.image-container {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.image-box {
    position: relative;
    margin: 10px;
    width: fit-content;
    height: fit-content;
    overflow: hidden;
}

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

.image-box .overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(173, 216, 230, 0.7); 
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: top .6s ease;
    font-size: 20px;
    font-weight: bold;
    text-transform: capitalize;
    overflow: hidden;
}
.image-box:hover .overlay {
    opacity: 1;
    top: 0;
}


.image-container {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.image-box {
    position: relative;
    margin: 10px;
    width: 200px;
}

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




#overlay11 {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}
