.sec1 {
    overflow: visible;
    
}
.planets {
    /*background-color: #062020;*/
    background-image: url("../media/images/planetfield2.png");
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    overflow: visible;
}

#planet-next, #planet-previous {
    position: absolute;
    top: 85%;
    transform: translateY(-50%);
    background: rgba(250, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    padding: 8px;
    cursor: pointer;
    z-index: 5;
}
#planet-next {
    right: 60%;
    transform: translate(-150%, -50%);
}
#planet-previous {
    left: 60%;
    transform: translate(150%, -50%);
}

.planet-field {
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 0;
    overflow: visible;
}

.planet {
    border-radius: 50%;
    background: radial-gradient(circle, #afcfc7, #53746e);
    box-shadow: 0 0 10px rgba(217, 240, 240, 0.459);
    transition-property: width, height;
    transition-duration: 600ms;
    transition-timing-function: ease-in-out;
}

.planet-info-text {
    margin-top: 20px;
    transition: all 0.3s ease-in-out;
}
.planet-info-text h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.planet-info-text p {
    font-size: 1.2rem;
    color: #ccc;
}
#planet-panel{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 998;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
}

.side-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 32vw;
    height: 100%;
    color: white;
    background-color: rgb(15, 56, 54);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.side-panel-content {
    padding: 2vw;
    padding-right: 10px;
    padding-top: 90px;
    height: 100%;
    overflow-y: auto;
    position: relative;
}

.side-line{
    border: 0;
    border-top: 3px solid #ecfff9;
    max-width: 96%;
}

#side-panel-name {
    color: rgb(219, 255, 247);
    font-weight: 600;
    font-size: 2.5em;
    letter-spacing: 2px;
    font-family: "Crimson Text";
}

#side-panel-text p{
    font-family: "Crimson Text";
    color: white;
    font-size: 1.5em;
    text-align: justify;
    max-width: 96%;
}

.side-panel-image-block {
    text-align: center;
    margin: 1.5em 0;
}

.side-panel-image {
    width: 96%;
    height: auto;
}

.image-name {
    font-size: 0.9em;
    color: #ecf3f1;
    margin-top: 25px;
}
.image-name a {
    color: #aef1e1;
    text-decoration: none;
}

.hidden {
    display: none;
}

.side-panel-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 2vw;
    gap: 10px;
}

.side-panel .close {
    display: flex;
    align-items: center;
}

#planet-previous-side {
    margin-right: 1.5vw;
}

#planet-next-side, #planet-previous-side, #side-panel-close {
    background: rgba(250, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 5;
    padding: 0; 
}

#planet-next:hover, #planet-previous:hover, #planet-next-side:hover, #planet-previous-side:hover,  #side-panel-close:hover {
    background: rgba(155, 199, 188, 0.8);
    box-shadow: 0 0 10px rgb(202, 255, 239);
    color: white;
}

.planet-active .planet {
    /*background: radial-gradient(circle, #9fcfc2, #4c8f83) !important;*/
    box-shadow: 0 0 20px rgba(60, 99, 99, 0.904) !important;
    width: 14vw !important; 
    height: 14vw !important;
    cursor: pointer;
}
.planet-active {
    width: 14vw !important; 
    height: 14vw !important;
}

.planet-container {
    width: 11vw;
    height: 11vw;
    color:#000000;
    display: flex;
    justify-content: space-around;
    align-items: center;

    transition-property: width, height;
    transition-duration: 600ms;
    transition-timing-function: ease-in-out;
}

#planet1 {
    background-image: url('../media/images/planet1.png');
    background-size: cover;
    background-position: center;
    width: 11vw;
    height: 11vw;
    box-shadow: 0 0 30px rgba(250, 196, 164, 0.9);
}
#planet2 {
    background-image: url('../media/images/planet2.png');
    background-size: cover;
    background-position: center;
    width: 3.5vw;
    height: 3.5vw;
}
#planet3 {
    background-image: url('../media/images/planet3.png');
    background-size: cover;
    background-position: center;
    width: 4vw;
    height: 4vw;
    box-shadow: 0 0 10px rgba(221, 188, 138, 0.8);
}
#planet4 {
    background-image: url('../media/images/planet4.png');
    background-size: cover;
    background-position: center;
    width: 4vw;
    height: 4vw;
}
#planet5 {
    background-image: url('../media/images/planet5.png');
    background-size: cover;
    background-position: center;
    width: 3vw;
    height: 3vw;
    box-shadow: 0 0 10px rgba(221, 188, 138, 0.8);
}
#planet6 {
    background-image: url('../media/images/planet6.png');
    background-size: cover;
    background-position: center;
    width: 9vw;
    height: 9vw;
    box-shadow: 0 0 10px rgba(216, 138, 93, 0.8);
}
#planet7 {
    background-image: url('../media/images/planet7.png');
    background-size: cover;
    background-position: center;
    width: 8vw;
    height: 8vw;
    box-shadow: 0 0 10px rgba(194, 142, 112, 0.8);
}
#planet8 {
    background-image: url('../media/images/planet8.png');
    background-size: cover;
    background-position: center;
    width: 5.5vw;
    height: 5.5vw;
}
#planet9 {
    background-image: url('../media/images/planet9.png');
    background-size: cover;
    background-position: center;
    width: 5vw;
    height: 5vw;
}

@media (width <= 800px) {
    .side-panel {
      width: 100vw;
    }
    .side-panel-content {
        padding-top: 130px;
    }
}