:root {
    --earthPosition: 0;
    --rotationValue: 0; /* Define a custom property for rotation */
}
  
html,
body {
    background-color: #121215;
        font-family: 'Space Mono';

}

body {
    padding: 0;
    margin: 0;
  }
  
  #galaxy {
    z-index: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-transition: background 0.8s ease-out;
    -moz-transition: background 0.8s ease-out;
    -o-transition: background 0.8s ease-out;
    -ms-transition: background 0.8s ease-out;
    transition: background 0.8s ease-out;
  }
  #galaxy,
  #galaxy .bg {
    width: 100%;
    height: 100%;
  }
  #galaxy * {
    position: absolute;
  }

  #galaxy .bg.center {
    top: 50%;
    left: 50%;
    width: 400px;
    height: 200px;
    margin: -100px 0 0 -200px;
    opacity: 0.8;
    -webkit-border-radius: 500px;
    -moz-border-radius: 500px;
    border-radius: 500px;
  }
  #galaxy [class^="stars"] {
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
  }
  #galaxy .stars-back {
    background: url('https://raw.githubusercontent.com/gurde/css3-animated-galaxy/master/img/back.png');
    -webkit-animation: orbit-clock-wise 440s infinite linear;
    -moz-animation: orbit-clock-wise 440s infinite linear;
    -o-animation: orbit-clock-wise 440s infinite linear;
    -ms-animation: orbit-clock-wise 440s infinite linear;
    animation: orbit-clock-wise 440s infinite linear;
  }
  #galaxy .stars-middle {
    background: url('https://raw.githubusercontent.com/gurde/css3-animated-galaxy/master/img/middle.png');
    -webkit-animation: orbit-counter-clock-wise 360s infinite linear;
    -moz-animation: orbit-counter-clock-wise 360s infinite linear;
    -o-animation: orbit-counter-clock-wise 360s infinite linear;
    -ms-animation: orbit-counter-clock-wise 360s infinite linear;
    animation: orbit-counter-clock-wise 360s infinite linear;
  }
  #galaxy .stars-front {
    background: url('https://raw.githubusercontent.com/gurde/css3-animated-galaxy/master/img/front.png');
    -webkit-animation: orbit-clock-wise 160s infinite linear;
    -moz-animation: orbit-clock-wise 160s infinite linear;
    -o-animation: orbit-clock-wise 160s infinite linear;
    -ms-animation: orbit-clock-wise 160s infinite linear;
    animation: orbit-clock-wise 160s infinite linear;
  }
  @-webkit-keyframes orbit-clock-wise {
    0% { opacity: 0.4; -webkit-transform: rotate(0deg); }
    2% { opacity: 0.8; }
    4% { opacity: 0.2; }
    5% { opacity: 0.8; }
    100% { opacity: 0.4; -webkit-transform: rotate(360deg); }
  }
  @-webkit-keyframes orbit-counter-clock-wise {
    from { -webkit-transform: rotate(360deg); } to { -webkit-transform: rotate(0deg); }
  }
  @-moz-keyframes orbit-clock-wise {
    0% { opacity: 0.4; -moz-transform: rotate(0deg); }
    2% { opacity: 0.8; }
    4% { opacity: 0.2; }
    5% { opacity: 0.8; }
    100% { opacity: 0.4; -moz-transform: rotate(360deg); }
  }
  @-moz-keyframes orbit-counter-clock-wise {
    from { -moz-transform: rotate(360deg); } to { -moz-transform: rotate(0deg); }
  }
  @-o-keyframes orbit-clock-wise {
    0% { opacity: 0.4; -o-transform: rotate(0deg); }
    2% { opacity: 0.8; }
    4% { opacity: 0.2; }
    5% { opacity: 0.8; }
    100% { opacity: 0.4; -o-transform: rotate(360deg); }
  }
  @-o-keyframes orbit-counter-clock-wise {
    from { -o-transform: rotate(360deg); } to { -o-transform: rotate(0deg); }
  }
  @-ms-keyframes orbit-clock-wise {
    0% { opacity: 0.4; -ms-transform: rotate(0deg); }
    2% { opacity: 0.8; }
    4% { opacity: 0.2; }
    5% { opacity: 0.8; }
    100% { opacity: 0.4; -ms-transform: rotate(360deg); }
  }
  @-ms-keyframes orbit-counter-clock-wise {
    from { -ms-transform: rotate(360deg); } to { -ms-transform: rotate(0deg); }
  }
  @keyframes orbit-clock-wise {
    0% { opacity: 0.4; transform: rotate(0deg); }
    2% { opacity: 0.8; }
    4% { opacity: 0.2; }
    5% { opacity: 0.8; }
    100% { opacity: 0.4; transform: rotate(360deg); }
  }
  @keyframes orbit-counter-clock-wise {
    from { transform: rotate(360deg); } to { transform: rotate(0deg); }
  }
  View Compiled
  
  .picture{
    position: absolute;
    left: 40vh; 
    top: 0; 
    bottom: 0; 
    margin: auto;
    width: 50vh;
    height: 70vh;
    overflow: auto;
    background-image: url(https://i.imgur.com/WfmAUit.png);
    background-repeat: no-repeat;
    background-size: cover;
    filter: drop-shadow(0 0 0.9rem black);
    opacity: 1;
  }

nav
{
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    margin: 41px 57px;}



.solar-system {
    position: relative;
    width: 70%;
}

.orbit {
    border: 1px dashed #eee;
}

#sun,
.orbit,
.orbit+div,
.orbit+div>div {
    position: absolute;
}

#sun,
.orbit,
.orbit+div {
    top: 50%;
    left: 50%;
}

.orbit+div>div {
    top: 0;
    left: 50%;
}

.orbit,
.orbit+div div,
#earth {
    border-radius: 50%;
}

#sun {
    height: 200px;
    width: 200px;
    background-color: #fae20a;
    margin-top: -100px;
    margin-left: -100px;
    border-radius: 50%;
    box-shadow: 0 0 84px orange;
}

#earth {
    position: absolute;
    top: 0;
    left: 50%;
    height: 80px;
    width: 80px;
    margin-left: -40px;
    margin-top: -40px;
    border-radius: 50%;
    box-shadow: 0 0 34px #3a4385;
    background: url("https://raw.githubusercontent.com/everdimension-personal/codepen-assets/master/earth_small_150.jpg") no-repeat center center;
    background-size: cover;
}
.earth-orbit,
.earth-spin {
    width: 600px;
    height: 600px;
    margin-left: -295px;
    margin-top: -295px;
}

#moon {
    margin-top: -30px;
    margin-left: -30px;
    height: 39px;
    width: 39px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 14px #3a4385;
}
.moon-orbit,
.moon-spin {
    height: 185px;
    width: 185px;
    margin-top: -95px;
    margin-left: -95px;
    border-color: #eee;
}


 @keyframes spin-right {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotate-earth {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes backgroundChange {
    0% {
        background: black;
    }

    25% {
        background: #333;
        /* Color 1 */
    }

    50% {
        background: #666;
        /* Color 2 */
    }

    75% {
        background: #999;
        /* Color 3 */
    }

    100% {
        background: white;
    }
}

@keyframes backgroundChange2 {
    0% {
        background: white;
    }

    25% {
        background: #999;
        /* Color 1 */
    }

    50% {
        background: #666;
        /* Color 2 */
    }

    75% {
        background: #333;
        /* Color 3 */
    }

    100% {
        background: black;
    }
}


.control-panel {
    z-index: 1001;
}

.control-panel button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin: 5px;
    transition: background-color 0.3s ease;
}

.control-panel button:hover {
    opacity: 0.8;
}


#start-button {
    background-color: transparent;
    color: white;
    border: solid white 1px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;

}

#pause-button {
    background-color: transparent;
    color: white;
    border: solid white 1px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;

}

#resume-button {
    background-color: transparent;
    color: white;
    border: solid white 1px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;

}

#reset-button {
    background-color: transparent;
    color: white;
    border: solid white 1px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;

}

#speed-up-button {
    background-color: transparent;
    color: white;
    border: solid white 1px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;

}

#slow-down-button {
    background-color: transparent;
    color: white;
    border: solid white 1px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;

}


.date
{

    font-size: 41px;
    color:white;
    margin-bottom:0;    
}

#dateDisplay
{
    font-size: 31px;
    color:white;
}

/* Popup Styles */
.popup {
    z-index: 1000;
    width:30%;
    margin-left:50px;
}

.popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    width: 365px;
}

.main
{
    display: flex;
    justify-content: space-around;
    margin: 99px 0;
}

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

/* Additional styling for a professional look */
h2 {
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
}

p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}


@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1); /* Scale up by 10% */
    }
    100% {
        transform: scale(1);
    }
}


#start-quiz {


    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;

    background-color: transparent;
    color: white;
    border: solid white 2px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 800;

    animation: pulse 2s infinite; /* 2s duration, infinite loop */
    transform-origin: center; /* Scale from the center */
    z-index: 1001;

}


.date-section
{
    margin: -17px 73px;
}

#start-quiz:hover {
    background-color: #0056b3;
}

.quiz-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.quiz-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    text-align: left;
    max-width: 400px;
}

#question {
    font-size: 18px;
    margin-bottom: 10px;
    color: #444;
}

.choice-list {
    list-style-type: none;
    padding: 0;
    margin-top: 6px;
}

.choice-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.choice-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid black;
    flex-shrink: 0;
    margin-right: 10px;
}

.choice-button {
    flex-grow: 1;
    background-color: #f4f4f4;
    padding: 10px;
    text-align: left;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
    color: #333;
}

.choice-button:hover {
    background-color: #ddd;
}

#next-button {
    background-color: #0074d9;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

#next-button:hover {
    background-color: #0056b3;
}

.next-label {
    margin-left: 10px;
    font-size: 20px;
    vertical-align: middle;
}

.popDivBtn
{
    text-align: center;
}

.popBtn
{
    background-color: #289d31;
    color: white;
    border: solid white 1px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    padding: 10px 20px;
    /* margin: 5px; */
    margin: auto;
    cursor: pointer;
}


@media (max-width: 1150px) {
    nav, .date-section, .main {
        flex-direction: column-reverse;
        align-items: center;
    }
    
    .main
    {
        transform: scale(0.55);
        justify-content: space-between;
        height:690px;
    }

    .popup
    {
        width: auto;
        margin-left: 0;
    }

    .solar-system
    {
        width:auto;
    }

    /* Adjust other styles as needed for smaller screens */
    nav {
        margin: 20px;
    }

    .date-section {
        margin: 20px;
    }
}





