body {
    margin: 0;
}

main {
    margin: auto;
    margin-top: 80px;
}

h1 {
    margin: 20px;
    text-align: center;
}

h3 {
    font-weight: 500;
}

hr {
    margin: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 150px;
    opacity: 20%;
}

.timeline-card p.split-center {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 4px;
}

.timeline-card p.split-center .left {
    justify-self: end;
}

.timeline-card p.split-center .divider {
    justify-self: center;
}

.timeline-card p.split-center .right {
    justify-self: start;
    text-align: left;
}

.buttons {
    flex: 0 0 1px;
    margin: auto;
    max-width: 2000px;
    text-align: center;
}

.button {
    background-color: #4da3ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    margin: 20px;
    padding: 10px;
    width: 150px;
    font-size: 20px;
    transition: all 200ms ease;
}

.timeline-container {
    display: flex;
    margin: auto;
    overflow-x: auto;
    padding: 10px;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    flex-wrap: wrap;
}

.timeline-card {
    flex: 0 0 250px;
    border-radius: 8px;
    border: solid 2px transparent;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    padding: 16px;
    max-width: 500px;
    text-align: center;
    transition: all 200ms ease;
    z-index: 2;
}

.timeline-card h2 {
    margin-top: 0;
    font-size: 1.2em;
    pointer-events: none;
}

.timeline-card h3 {
    margin-bottom: 10px;
    pointer-events: none;
}

.timeline-card p {
    pointer-events: none;
}

.timeline-card .images {
    max-height: 400px;
}

.timeline-card img {
    max-width: 90%;
    max-height: 200px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
    border-radius: 10px;
}

.iPhone,
.iPad,
.AppleWatch,
.AirPods,
.AppleTV,
.HomePod,
.iPod {
    display: none;
}

#footer {
    margin: auto;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 650px;
    text-align: center;
    pointer-events: none;
    z-index: -1;
}

a.links {
    color: #8bc3ff;
    text-decoration: none;
    transition: all 200ms ease;
    pointer-events: auto;
}

@media (hover: hover) {
    .timeline-card:hover,
    .timeline-card:focus {
        border: solid 2px #4da3ff;
        box-shadow: 0 4px 10px rgba(139, 195, 255, 0.7);
        transform: scale(1.03);
    }

    .button:hover,
    .button:focus {
        background-color: #0063cc;
        transform: scale(1.1);
    }

    a.links:hover,
    a.links:focus {
        color: #0063cc;
        transform: scale(1.4);
    }
}

@media (max-width: 768px) {
    .timeline-card {
        flex: 0 0 350px;
        margin: auto;
        width: 100%;
    }

    .timeline-card .images {
        max-height: 500px;
    }

    #footer {
        margin-top: 10px;
        margin-bottom: 30px;
        max-width: 350px;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background: #111;
        color: #eee;
    }

    .nav-container,
    .desktop-nav,
    .mobile-header,
    .mobile-nav {
        background: #000;
    }

    .timeline-card,
    #footer {
        background: #222;
    }

    @media (hover: hover) {
        .timeline-card:hover,
        .timeline-card:focus {
            box-shadow: 0 4px 10px rgba(139, 195, 255, 0.3);
        }
    }
}

@media (prefers-color-scheme: light) {
    body {
        background: #eee;
        color: #111;
    }

    .nav-container,
    .desktop-nav,
    .mobile-header,
    .mobile-nav {
        background: #ddd;
    }

    .timeline-card {
        background: #fff;
    }
}
