body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    background: #f0f2f5;
}

a {
    text-decoration: none;
}

#timeline {
    position: fixed;
    left: 0;
    top: 0;
    width: 180px;
    height: 100vh;
    background: #fff;
    padding: 1rem;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    flex-shrink: 0;
    z-index: 1000;
}

#timeline button {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border: none;
    border-radius: 50px;
    background: #0077cc;
    color: white;
    cursor: pointer;
}

#timeline button:hover {
    background: #005fa3;
}

a.codebutton {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background-color: #0077cc;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 0.5rem;
}

a.codebutton:hover {
    background-color: #005fa3;
}

#content {
    flex: 1;
    padding: 2rem;
    min-width: 0;
    max-width: 1200px;
}

.update {
    margin-bottom: 2rem;
    margin-left: 200px;
    padding: 2rem;
}

iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    body {
        display: block;
        overflow-x: hidden;
    }

    #timeline {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        justify-content: flex-start;
        height: auto;
        display: flex;
        overflow-x: auto;
        padding: 0.5rem;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    #timeline button {
        flex: 0 0 auto;
        width: auto;
        align-items: center;
        margin: 0 0.2rem;
        white-space: nowrap;
        overflow-x: auto;
    }

    #content {
        margin-left: 0;
        margin-top: 3.5rem;
        padding: 1rem;
        max-width: 100%;
        text-align: center;
    }

    .update {
        margin-left: 0;
        padding: 1rem;
    }

    iframe {
        width: 100%;
        height: 250px;
    }
}
