:root {
    --primary-color: #4CAF50;
    --secondary-color: #f1f1f1;
    --text-color: #333;
    --font-family: 'Arial', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--secondary-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

h1,
h2,
h3 {
    color: var(--primary-color);
}

p,
li,
span {
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 80%;
    margin: auto;
    padding: 20px;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 0;
    text-align: center;
}

nav {
    display: flex;
    gap: 15px;
}

main {
    /* min-height: 80vh; */
    padding-bottom: 200px;
}

footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 10px 0;
    /* position: fixed; */
    bottom: 0;
    width: 100%;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: all .2s ease;
}

.btn:hover {
    /* background-color: lighten(var(--primary-color), 10%); */
    filter: lighten(85%);
}

input[type="text"],
input[type="email"],
input[type="password"] {
    border: 1px solid var(--primary-color);
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 5px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: darken(var(--primary-color), 10%);
    outline: none;
}

input[type="date"] {
    font-family: var(--font-family);
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 5px;
    text-transform: uppercase;
    border: 1px solid #555;
}

select {
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid var(--primary-color);
    background-color: white;
    color: var(--text-color);
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    header,
    footer {
        padding: 15px 0;
    }

    button {
        width: 100%;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.2em;
    }

    h3 {
        font-size: 1em;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"] {
        padding: 8px;
    }

    button {
        padding: 10px;
        font-size: 14px;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #333;
        color: #f1f1f1;
    }

    header,
    footer {
        background-color: #444;
    }

    a {
        color: #80d4ff;
    }

    button {
        background-color: #555;
        color: white;
    }

    button:hover {
        background-color: #666;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"] {
        border: 1px solid #555;
        background-color: #222;
        color: #f1f1f1;
    }

    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="password"]:focus {
        border-color: #80d4ff;
    }

    input[type="date"] {
        font-family: var(--font-family);
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
        border-radius: 5px;
        text-transform: uppercase;
        border: 1px solid #555;
        background-color: #222;
        color: #f1f1f1;
    }

    select {
        background-color: #222;
        color: #f1f1f1;
        border: 1px solid #555;
    }

    select:focus {
        border-color: #80d4ff;
    }

}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    padding: 12px 15px;
    border: 1px solid #555;
    text-align: left;
}

th {
    background-color: #444;
}

tr:nth-child(odd) {
    background-color: #44444488;
}

tr:hover {
    background-color: #555;
}

/* modal */

.dimmer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-content: center;
    justify-items: center;
    z-index: 1000;
}

/* modal */

canvas {
    background-color: #fff;
}