* {
    margin: 0;
    padding: 0;
    /* Disables grey flashing when clicking on ios */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    background: white;
    font-family: Avenir;
    margin-top: 1rem;
}

nav {
    padding: 1rem 4rem;
    border-bottom: 1px solid #DBDBDB;
    display: flex;
    gap: 4rem;
    margin-bottom: 1rem;
}
nav > h1 {
    font-size: 1.5rem;
}
nav > div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

nav a {
    font-weight: bold;
    color: grey;
    text-decoration: none;
}
nav a:hover {
    color: black;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;  
    padding: 1rem;
    font-weight: bold;
    color: grey;
    border-top: 1px solid #DBDBDB;
    gap: 20px;
}

#article {
    font-family: verdana;
    font-size: 0.9rem;
    margin: 2rem;
}

#article ul {
    list-style-position: inside; 
}

#article h1 {
    font-size: 1.1rem;
}
#article h2, h3, h4, h5 {
    font-size: 1rem;
}

#article pre {
    overflow: auto;
    background: lightgrey; 
    padding: 2px;
}

.binary-switch {
    position: relative;
    display: inline-flex;
    background: #e5e5ea;
    border-radius: 999px;
    padding: 3px;
}

.binary-switch input {
    display: none;
}

.binary-switch label {
    position: relative;
    z-index: 1;
    padding: 6px 18px;
    cursor: pointer;
    color: #555;
    transition: color 0.2s;
}

.binary-switch .switch-slider {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
    background: white;
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: transform 0.25s ease;
}

.binary-switch input:checked ~ .switch-slider {
    transform: translateX(100%);
}

.binary-switch input:not(:checked) ~ .label-left {
    color: black;
}

.binary-switch input:checked ~ .label-right {
    color: black;
}
