:root {
    --primary-accent: orangered;
    --primary-backround:#404347;
    --primary-text: #fff;
}

* {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

body {
    background: url('../low-poly-grid-haikei.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#content_wrapper {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

label, h3, p {
    color: var(--primary-text);
}

#data_range_form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 5em;
    width: 100%;
}

#data_range_form > * {
    margin: 0.3em;
    text-align: center;
    font-weight: 700;
}

#data_range_form > input[type="date"] {
    background-color: var(--primary-backround);
    color: var(--primary-text);
    padding: 1em;
    width: calc(100% - 3em);
    border-radius: 1em;
    border-width: 0;
}

#loading_icon {
    display: none;
    width: 2em;
    height: 2em;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(359deg);
    }
}

#data_range_form > button {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    background-color: var(--primary-accent);
    color:  var(--primary-text);
    padding: 1em;
    border-radius: 1em;
    border-width: 0;
    transition: filter 0.2s ease-in-out;
}

#data_range_form > button:hover {
    filter: brightness(0.8);
    transition: filter 0.2s ease-in-out;
}

#data_range_results {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 3em;
    width: 100%;
}

.result_card {
    text-align: center;
    margin: 0.5em;
    padding: 1em;
    background-color: var(--primary-backround);
    border-radius: 1em;
    border-width: 0;
    width: calc(100% - 3em);
}

.raw_data_card > table{
    width: 100%;
    border-collapse: collapse;
    border-width: 0;
}

#raw_data_header {
    text-align: center;
    color: var(--primary-text);
    font-weight: 700;
}

.raw_data_table {
    margin-top: 1em;
}

.raw_data_table tbody > * {
    color: var(--primary-text);
}