:root {
    --main-bg-color: #f0f0f0;
    --header-bg-color: #04a7b0;
    --button-primary: #04a7b0;
    --button-primary-hover: #028b92;
    --button-secondary: #707070;
    --button-secondary-hover: #5e5e5e;
    --button-close: #ee2020;
    --button-close-hover: #d31c1c;
}

body {
    background-color: var(--main-bg-color);
    font-family: sans-serif;
}

header {
    background-color: var(--header-bg-color);
    padding: 24px;
}

header h1 {
    color: white;
    text-align: center;
    font-size: 2rem;
}

main {
    width: 80%;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
}

h2 {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 24px 0;
}

label {
    display: block;
    margin-bottom: 16px;
}

input[type="file"] {
    width: 350px;
    padding: 10px;
    border: none;
    margin-bottom: 24px;
    margin-left: 24px;
}

input[type="file"]::file-selector-button {
    margin-right: 20px;
    background: var(--button-secondary);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
    background: var(--button-secondary-hover);
}

button {
    width: 20%;
    background: var(--button-primary);
    border: none;
    padding: 10px;
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 32px;
    cursor: pointer;
    align-self: end;
}

button:hover {
    background: var(--button-primary-hover);
}

#card {
    padding: 8px;
    margin: 0 24px 24px 24px;
    border: 1px solid black;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

#card h3 {
    font-weight: bold;
    margin: 8px;
}

.error_li {
    margin: 24px;
}

.success {
    color: green;
}

.fail {
    color: red;
}

.hide {
    display: none;
}

.display {
    display: block;
}

#close {
    float:right;
    padding:2px 7px;
    background-color: var(--button-close);
    border: none;
    border-radius: 4px;
    color: white;
    text-align: center;
    line-height: 1rem;
    cursor: pointer;
}

#close:hover {
    background-color: var(--button-close-hover);
}
  