* {
    margin: 0;
    box-sizing: border-box;
}

:root {
    color-scheme: light dark;

    --md-sys-color-primary: #007bff;
    --md-sys-color-primary-container: white;
    --md-sys-color-on-primary: rgb(51, 51, 51, 0.87);
    --md-sys-color-surface-container-highest: white;
    --background-color: white;
    --text-color: rgb(51, 51, 51, 0.87);
    --md-sys-color-on-surface: var(--text-color);
    --md-sys-color-on-surface-variant: var(--text-color);
    --md-sys-color-outline: var(--text-color);
    
}


@media (prefers-color-scheme: dark) {
    :root {
        --md-sys-color-primary: #759fcc;
        --background-color: #121212;
        --text-color: rgb(255, 255, 255, 0.87);
        --md-sys-color-on-surface: var(--text-color);
        --md-sys-color-on-surface-variant: var(--text-color);
        --md-sys-color-on-primary: #222;
        --md-sys-color-outline: var(--text-color);
        --md-switch-track-color: var(--background-color);
        --md-switch-hover-track-color: var(--md-sys-color-on-primary);

    }
}

html,
body {
    font-size: 100%;
    line-height: normal;
    font-family: sans-serif;
    width: 100%;
    background: var(--background-color);
    color: var(--text-color);
}

body {
    padding: 1rem;
}

@media (orientation: landscape) {
    body {
        max-width: 40rem;
        margin: 0 auto;
    }
}

p,
ul {
    margin: 1.5rem 0;
}

a {
    color: var(--md-sys-color-primary);
}

md-outlined-text-field {
    width: 100%;
}

.switch-container {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin: 2rem 0;
}


#control-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin: 2rem 0;
}
