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

html, body {
    min-width: 100%;
    min-height: 100%;
}

body {
    min-height: 100%;
    height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    background-color: #172c47;

    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    color: #172c47;
}

body::after {
    content: ' ';
    z-index: 1;

    height: 100vh;
    width: 100vw;

    position: fixed;
    top: 0;
    left: 0;

    background-image: url('/static/background.png');
    background-size: cover;

    filter: blur(2px);
}

header {
    height: 66px;
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: #fff;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.39);

    z-index: 2;
}

#header-container {
    max-width: 900px;
    height: 100%;

    flex-grow: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px;
}

#logo {
    height: 50px;
}

button,
input[type="submit"] {
    background-color: #e0370f;
    padding: 10px 14px;
    color: #fff;
    border-radius: 4px;
    border: none;
    font-size: 1em;
    cursor: pointer;

    transition: 230ms;
}

button:disabled,
input[type="submit"]:disabled {
    opacity: 0.5;
}

input[type="submit"]:hover:not(:disabled) {
    background-color: #f37a5e;
}

main {
    width: 900px;

    background-color: #fff;
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.39);

    border-radius: 5px;

    z-index: 2;

    display: flex;
    flex-direction: row;
    align-items: stretch;

    padding: 20px;
    gap: 20px;
}

main form {
    width: 100%;
}

.column {
    width: 50%;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#answer {
    width: 100%;
    min-height: 200px;
    max-height: 200px;

    border: 2px solid #e5e9ec;
    background-color: #e5e9ec;
    border-radius: 4px;

    padding: 10px;

    color: #172c47;
    font-size: 15px;

    overflow-y: scroll;
}

.loading #answer {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

main form textarea {
    width: 100%;
    min-height: 200px;
    max-height: 200px;

    border: 2px solid #e5e9ec;
    border-radius: 4px;

    resize: none;

    flex: 1;

    padding: 10px;
    
    color: #172c47;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
}

.center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading textarea,
.loading {
    cursor: wait !important;
}

label {
    user-select: none;
    margin-bottom: -13px;
    width: 100%;
    padding-left: 14px;
    color: #e0370f;
    font-weight: 700;
}

#sources-list {
    width: 100%;
    min-height: 15px;

    transition: height 230ms ease-in-out;

    /* border: 2px solid #e5e9ec; */
    background-color: #e5e9ec;
    border-radius: 4px;
    padding: 8px 0;

    list-style: none;

    font-size: 13px;
    color: #314053;
}

#sources-list li {
    padding: 2px 10px;
    border-top: 1px solid #ebf3f8;
}

#sources-list li:last-of-type {
    border-bottom: 1px solid #ebf3f8;
}