/*planet history*/

body {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

img {
    margin: 1rem 0px 1rem 0px;
}

/* Navbar Custom Width */
.navbar.menu-active {
  width: 290px;
}

.planets {
    display: flex;
    flex-direction: column;
    max-width: 20%;
    align-items: flex-start;
    align-items: center;
    text-align: center;
}

.planets div img {
    width: 20vw;
    min-width: 200px;
}

.planet {
    height: 25vw;
    width: 25vw;
    margin: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    
}

.planet img {
    width: 100%;    /* Fill the container */
    height: 100%;   /* Fill the container */
    object-fit: contain; /* Maintain aspect ratio */
    transition: transform 0.3s ease; /* Smooth hover effect */
    border-radius: 1em;
}

.planet img:hover {
    transform: scale(1.1); /* Slight zoom on hover */
}

.planets-container {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.planet {
    cursor: pointer;
    position: relative;
    border-radius: 50%;
}

.planet img {
    border-radius: 50%;
}

body.light .planet img {
    box-shadow: 0 0 2vw rgb(0, 0, 0);
}

body.dark .planet img {
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 2vw rgba(255, 255, 255, 0.5);
}

#sun img {
    border: 2px solid rgb(232, 105, 0);
    box-shadow: 0 0 2vw rgb(232, 105, 0);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    color: white;
}

.modal-content {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 80%;
    position: relative;
}

body.light .modal-content {
    background-color: white;
    color: black;
}

body.dark .modal-content {
    background-color: black;
    color: white;
}

.modal img {
    max-width: 200px;
    border-radius: 50%;
    box-shadow: 0px 0px 15px black;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}