.tools-parent-container {
    /* Animated stars background */
}

.tools-parent-container .stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.tools-parent-container .star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite alternate;
}

@keyframes twinkle {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.tools-parent-container {
    /* Main container */
}

.tools-parent-container .container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tools-parent-container {
    /* Header */
}

.tools-parent-container .header {
    text-align: center;
    margin-bottom: 30px;
    animation: slideDown 1s ease-out;
}

.tools-parent-container .title {
    font-family: "Fredoka One", cursive;
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: #FFD700;
    text-shadow: 3px 3px 0px #FF6B6B, 6px 6px 0px #4ECDC4;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

.tools-parent-container .subtitle {
    font-size: clamp(1rem, 4vw, 1.5rem);
    color: #1e1e1e;
    font-weight: 600;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.tools-parent-container {
    /* Solar system container */
}

.tools-parent-container .solar-system {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    margin: 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: clip;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.tools-parent-container {
    /* Sun */
}

.tools-parent-container .sun {
    position: absolute;
    width: clamp(80px, 12vw, 120px);
    height: clamp(80px, 12vw, 120px);
    background: radial-gradient(circle, #FFD700, #FFA500, #FF6347);
    border-radius: 50%;
    box-shadow: 0 0 30px #FFD700, 0 0 60px #FFA500;
    animation: sunGlow 3s ease-in-out infinite alternate;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 5;
}

.tools-parent-container .sun:hover {
    transform: scale(1.1);
}

@keyframes sunGlow {
    0% {
        box-shadow: 0 0 30px #FFD700, 0 0 60px #FFA500;
    }

    100% {
        box-shadow: 0 0 50px #FFD700, 0 0 100px #FFA500;
    }
}

.tools-parent-container {
    /* Orbit paths */
}

.tools-parent-container .orbit {
    position: absolute;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: rotateOrbit 20s linear infinite;
}

.tools-parent-container .orbit-1 {
    width: 200px;
    height: 200px;
    animation-duration: 8s;
    z-index: 10;
}

.tools-parent-container .orbit-2 {
    width: 280px;
    height: 280px;
    animation-duration: 12s;
    z-index: 9;
}

.tools-parent-container .orbit-3 {
    width: 360px;
    height: 360px;
    animation-duration: 16s;
    z-index: 8;
}

.tools-parent-container .orbit-4 {
    width: 440px;
    height: 440px;
    animation-duration: 20s;
    z-index: 7;
}

.tools-parent-container .orbit-5 {
    width: 520px;
    height: 520px;
    animation-duration: 24s;
    z-index: 6;
}

.tools-parent-container .orbit-6 {
    width: 600px;
    height: 600px;
    animation-duration: 28s;
    z-index: 5;
}

.tools-parent-container .orbit-7 {
    width: 680px;
    height: 680px;
    animation-duration: 32s;
    z-index: 4;
}

.tools-parent-container .orbit-8 {
    width: 760px;
    height: 760px;
    animation-duration: 36s;
    z-index: ;
    z-index: 3;
}

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

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

.tools-parent-container {
    /* Planets */
}

.tools-parent-container .planet {
    position: absolute;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: planetFloat 4s ease-in-out infinite;
}

.tools-parent-container .planet:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

@keyframes planetFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

.tools-parent-container {
    /* Individual planet styles */
}

.tools-parent-container .mercury {
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, #8C7853, #A0522D);
    top: -12.5px;
    left: 87.5px;
}

.tools-parent-container .venus {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #FFC649, #FF8C00);
    top: -15px;
    left: 125px;
}

.tools-parent-container .earth {
    width: 35px;
    height: 35px;
    background: radial-gradient(circle, #6B93D6, #4169E1, #228B22);
    top: -17.5px;
    left: 162.5px;
}

.tools-parent-container .mars {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #CD5C5C, #B22222);
    top: -15px;
    left: 205px;
}

.tools-parent-container .jupiter {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, #D2691E, #CD853F, #A0522D);
    top: -25px;
    left: 235px;
}

.tools-parent-container .saturn {
    width: 45px;
    height: 45px;
    background: radial-gradient(circle, #FAD5A5, #DEB887);
    top: -22.5px;
    left: 277.5px;
    position: relative;
}

.tools-parent-container .saturn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border: 3px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
}

.tools-parent-container .uranus {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #4FD0E7, #00CED1);
    top: -20px;
    left: 320px;
}

.tools-parent-container .neptune {
    width: 38px;
    height: 38px;
    background: radial-gradient(circle, #4169E1, #0000CD);
    top: -19px;
    left: 361px;
}

.tools-parent-container {
    /* Planet info modal */
}

.tools-parent-container .planet-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.tools-parent-container .modal-content {
    background: linear-gradient(45deg, #dfab46 40%, #dfb86d 40%, #dfab46 61%);
    padding: 30px;
    border-radius: 25px;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease;
    overflow-y: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.tools-parent-container .modal-planet {
    width: clamp(80px, 20vw, 150px);
    height: clamp(80px, 20vw, 150px);
    margin: 0 auto 20px;
    border-radius: 50%;
    animation: planetSpin 4s linear infinite;
}

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

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

.tools-parent-container .modal-title {
    font-family: "Fredoka One", cursive;
    font-size: clamp(2rem, 6vw, 3rem);
    color: #FFD700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.tools-parent-container .modal-fact {
    font-size: clamp(1rem, 4vw, 1.3rem);
    color: white;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 600;
}

.tools-parent-container .close-btn {
    background: #FF6B6B;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: clamp(1rem, 4vw, 1.2rem);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Nunito", sans-serif;
}

.tools-parent-container .close-btn:hover {
    background: #FF5252;
    transform: scale(1.05);
}

.tools-parent-container {
    /* Control panel */
}

.tools-parent-container .controls {
    position: fixed;
    bottom: 20px;
    right: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.tools-parent-container .control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tools-parent-container .sound-btn {
    background: #4ECDC4;
    color: white;
}

.tools-parent-container .speed-btn {
    background: #FFD93D;
    color: #333;
}

.tools-parent-container .control-btn:hover {
    transform: scale(1.1);
}

.tools-parent-container {
    /* Astronaut character */
}

.tools-parent-container .astronaut {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 80px;
    height: 80px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="40" r="25" fill="%23f0f0f0"/><circle cx="50" cy="40" r="20" fill="%23333"/><circle cx="45" cy="35" r="3" fill="%23fff"/><circle cx="55" cy="35" r="3" fill="%23fff"/><rect x="35" y="60" width="30" height="35" rx="5" fill="%23e0e0e0"/><circle cx="50" cy="85" r="8" fill="%23ff6b6b"/></svg>') no-repeat center;
    background-size: contain;
    animation: astronautFloat 3s ease-in-out infinite;
    cursor: pointer;
    z-index: 100;
}

@keyframes astronautFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(-5deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.tools-parent-container {
    /* Responsive design */
}

@media (max-width: 768px) {
    .tools-parent-container .solar-system {
        height: 70vh;
        min-height: 500px;
    }

    .tools-parent-container .orbit-1 {
        width: 150px;
        height: 150px;
    }

    .tools-parent-container .orbit-2 {
        width: 200px;
        height: 200px;
    }

    .tools-parent-container .orbit-3 {
        width: 250px;
        height: 250px;
    }

    .tools-parent-container .orbit-4 {
        width: 300px;
        height: 300px;
    }

    .tools-parent-container .orbit-5 {
        width: 350px;
        height: 350px;
    }

    .tools-parent-container .orbit-6 {
        width: 400px;
        height: 400px;
    }

    .tools-parent-container .orbit-7 {
        width: 450px;
        height: 450px;
    }

    .tools-parent-container .orbit-8 {
        width: 500px;
        height: 500px;
    }

    .tools-parent-container .mercury {
        left: 62.5px;
    }

    .tools-parent-container .venus {
        left: 85px;
    }

    .tools-parent-container .earth {
        left: 107.5px;
    }

    .tools-parent-container .mars {
        left: 135px;
    }

    .tools-parent-container .jupiter {
        left: 150px;
    }

    .tools-parent-container .saturn {
        left: 177.5px;
    }

    .tools-parent-container .uranus {
        left: 205px;
    }

    .tools-parent-container .neptune {
        left: 231px;
    }

    .tools-parent-container .controls {
        bottom: 10px;
        right: 10px;
    }

    .tools-parent-container .control-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .tools-parent-container .astronaut {
        width: 60px;
        height: 60px;
        bottom: 10px;
        left: 10px;
    }
}

@media (max-width: 480px) {
    .tools-parent-container .container {
        padding: 10px;
    }

    .tools-parent-container .solar-system {
        height: 60vh;
        min-height: 400px;
    }

    .tools-parent-container .orbit-1 {
        width: 120px;
        height: 120px;
    }

    .tools-parent-container .orbit-2 {
        width: 160px;
        height: 160px;
    }

    .tools-parent-container .orbit-3 {
        width: 200px;
        height: 200px;
    }

    .tools-parent-container .orbit-4 {
        width: 240px;
        height: 240px;
    }

    .tools-parent-container .orbit-5 {
        width: 280px;
        height: 280px;
    }

    .tools-parent-container .orbit-6 {
        width: 320px;
        height: 320px;
    }

    .tools-parent-container .orbit-7 {
        width: 360px;
        height: 360px;
    }

    .tools-parent-container .orbit-8 {
        width: 400px;
        height: 400px;
    }

    .tools-parent-container .mercury {
        left: 47.5px;
    }

    .tools-parent-container .venus {
        left: 65px;
    }

    .tools-parent-container .earth {
        left: 82.5px;
    }

    .tools-parent-container .mars {
        left: 105px;
    }

    .tools-parent-container .jupiter {
        left: 115px;
    }

    .tools-parent-container .saturn {
        left: 137.5px;
    }

    .tools-parent-container .uranus {
        left: 160px;
    }

    .tools-parent-container .neptune {
        left: 181px;
    }

    .tools-parent-container .modal-content {
        padding: 20px;
        margin: 10px;
    }
}

.tools-parent-container {
    /* Loading animation */
}

.tools-parent-container .loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #dfab46 40%, #dfb86d 40%, #dfab46 61%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 2s ease 3s forwards;
}

.tools-parent-container .loading-rocket {
    width: 100px;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,10 60,40 50,35 40,40" fill="%23ff6b6b"/><rect x="45" y="35" width="10" height="30" fill="%23e0e0e0"/><circle cx="50" cy="45" r="3" fill="%23333"/><polygon points="40,65 50,70 60,65 55,80 45,80" fill="%23ffd93d"/></svg>') no-repeat center;
    background-size: contain;
    animation: rocketLaunch 3s ease-in-out infinite;
}

@keyframes rocketLaunch {

    0%,
    100% {
        transform: translateY(0px) rotate(-5deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.tools-parent-container {
    /* Game section */
}

.tools-parent-container .game-section {
    background: #ffebc4;
    border-radius: 25px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
    backdrop-filter: blur(10px);
}

.tools-parent-container .game-title {
    font-family: "Fredoka One", cursive;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: #1e1e1e;
    margin-bottom: 20px;
}

.tools-parent-container .game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tools-parent-container .game-card {
    background: linear-gradient(45deg, #dfab46 40%, #dfb86d 40%, #dfab46 61%);
    border-radius: 20px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.tools-parent-container .game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: #FFD700;
}

.tools-parent-container .game-card h3 {
    color: #1e1e1e;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-family: "Fredoka One", cursive;
}

.tools-parent-container .game-card p {
    color: #1e1e1e;
    font-size: 1rem;
    line-height: 1.4;
}