body {
    font-family: "Arial", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f8ff;
    color: #000;
}

.light-rays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 80px);
    background: #f0f8ff;
    overflow: hidden;
    perspective: 1000px;
}

.top-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 75vh;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: -1;
}

.light-ray {
    position: absolute;
    top: 0;
    height: 100%;
    filter: blur(15px);
    transform-origin: top center;
    background: linear-gradient(
        to bottom,
        #4a86e8 0%,
        rgba(74, 134, 232, 0.5) 30%,
        rgba(74, 134, 232, 0.1) 50%,
        rgba(74, 134, 232, 0) 70%
    );
}

.light-ray:nth-child(1) {
    left: 5%;
    width: 45px;
    transform: rotateX(10deg) rotateY(-5deg);
}

.light-ray:nth-child(2) {
    left: 8%;
    width: 70px;
    transform: rotateX(12deg) rotateY(2deg);
}

.light-ray:nth-child(3) {
    left: 24%;
    width: 55px;
    transform: rotateX(8deg) rotateY(-1deg);
}

.light-ray:nth-child(4) {
    left: 35%;
    width: 80px;
    transform: rotateX(11deg) rotateY(3deg);
}

.light-ray:nth-child(5) {
    left: 44%;
    width: 40px;
    transform: rotateX(9deg) rotateY(-2deg);
}

.light-ray:nth-child(6) {
    left: 52%;
    width: 65px;
    transform: rotateX(10deg) rotateY(1deg);
}

.light-ray:nth-child(7) {
    left: 62%;
    width: 50px;
    transform: rotateX(12deg) rotateY(-3deg);
}

.light-ray:nth-child(8) {
    left: 71%;
    width: 75px;
    transform: rotateX(9deg) rotateY(2deg);
}

.light-ray:nth-child(9) {
    left: 83%;
    width: 60px;
    transform: rotateX(11deg) rotateY(-1deg);
}

.light-ray:nth-child(10) {
    left: 94%;
    width: 65px;
    transform: rotateX(8deg) rotateY(3deg);
}

.light-ray:nth-child(11) {
    left: 18%;
    width: 55px;
    transform: rotateX(10deg) rotateY(0deg);
}

.light-ray:nth-child(12) {
    left: 30%;
    width: 40px;
    transform: rotateX(11deg) rotateY(-2deg);
}

.light-ray:nth-child(13) {
    left: 57%;
    width: 70px;
    transform: rotateX(9deg) rotateY(1deg);
}

.light-ray:nth-child(14) {
    left: 76%;
    width: 50px;
    transform: rotateX(12deg) rotateY(-1deg);
}

.light-ray:nth-child(15) {
    left: 88%;
    width: 35px;
    transform: rotateX(8deg) rotateY(2deg);
}

.content {
    position: relative;
    z-index: 5;
}

.header {
    background: #000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0;
    z-index: 1000; /* Ensure header stays on top */

    font-family:
        Courier New,
        monospace;
}

.enter {
    text-align: center;
    padding: 20px 0;
    background-color: #000;
    color: white;
    border-radius: 8px;
    margin-bottom: 20px;
}

a {
    color: #fff;
    text-decoration: none;
}

.domain-nav {
    background: #000;
    color: #ccc;
    margin-bottom: 0;
}

.domain-container {
    width: 1000px;
    margin: 0 auto;
    padding: 4px;
    font-size: 16px;
    text-align: left;
}

.domain-nav a {
    color: #ccc !important;
    font-size: 1em !important;
    font-weight: normal !important;
    margin: 0 !important;
}

.domain-nav a:hover {
    color: #fff !important;
    text-decoration: underline;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

header {
    border: 5px solid rgba(0, 0, 0, 0.5);
    text-align: center;
    padding: 20px 0;
    background-color: #4a86e8;
    color: white;
    border-radius: 8px;
    margin-bottom: 20px;
}

h1 {
    margin: 0;
}

.intro {
    margin-bottom: 30px;
    line-height: 1.6;
}

.mitosis-container {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.phase-navigation {
    display: flex;
    background-color: #e6f2ff;
    border-bottom: 1px solid #d1e0ff;
}

.phase-tab {
    flex: 1;
    padding: 15px 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    border-bottom: 3px solid transparent;
}

.phase-tab.active {
    background-color: #fff;
    border-bottom: 3px solid #4a86e8;
    color: #4a86e8;
}

.phase-content {
    display: none;
    padding: 20px;
}

.phase-content.active {
    display: block;
}

.phase-info {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .phase-info {
        flex-direction: row;
    }
}

.phase-text {
    flex: 1;
    padding-right: 20px;
}

.phase-text h2 {
    color: #4a86e8;
    margin-top: 0;
}

.visualization-container {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.canvas-container {
    width: 100%;
    height: 100%;
    position: relative;
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.highlight-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.highlight-point {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 2px solid #ff6347;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    pointer-events: auto;
}

.tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    max-width: 200px;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.phase-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #4a86e8;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.legend {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.legend-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.color-box {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 1px solid #333;
}

.blue {
    background-color: #4a86e8;
}

.yellow {
    background-color: #ffcc00;
}

.arrows {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.arrow-btn {
    padding: 10px 20px;
    background-color: #4a86e8;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.arrow-btn:hover {
    background-color: #3a76d8;
}

.arrow-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.app-parallel {
    background-color: rgba(74, 134, 232, 0.1);
    padding: 12px 15px;
    border-left: 3px solid #4a86e8;
    margin-top: 15px;
    border-radius: 0 5px 5px 0;
}

.app-parallel h3 {
    margin-top: 0;
    color: #4a86e8;
    font-size: 16px;
}

.app-parallel p {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.5;
}

footer {
    padding: 1em 0;
    text-align: center;
    color: #555;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

footer p {
    margin: 10px 0;
    line-height: 1.5;
}

footer a {
    color: #4a86e8;
    font-weight: bold;
    text-decoration: underline;
    transition: all 0.3s;
}

footer a:hover {
    color: #3a76d8;
}

.copyright {
    margin: 1em 0 2em;
    font-size: 14px;
    color: #888;
    text-align: center;
}

.copyright a {
    color: #444;
}
