﻿html {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    color: #f8f8f8;
    box-sizing: border-box;
}

body {
    /* Sizing */
    width: 100%;
    /* Positioning */
    padding-top: 50px;
    padding-bottom: 20px;
    margin: 10px auto;
    /* Coloring */
    background-color: #353535;
}

h1 {
    /* Sizing */
    width: 100%;
    /* Text Properties */
    text-align: center;
    font-size: 6vw;
    font-weight: 300;
}

div {
    display: block;
}

p {
    font-size: 4vw;
}

sup {
    color: #ff7e4a;
    font-size: 70%;
}

table {
    table-layout: fixed;
    width: 100%;
    height: 100%;
    font-variant-numeric: lining-nums tabular-nums;
    font-size: 2vw;
}

th, td {
    text-align: left;
    padding: 1vw;
    word-wrap: break-word;
    width: 120px;
}

thead tr th:first-child, 
tbody tr td:first-child {
    width: auto;
    text-align: left;
}

a, input {
    -webkit-transition: opacity 0.5s;
}

a {
    color: #ff7e4a;
    text-decoration: none;
}

input[type=button]:hover, input[type=url]:hover, input[type=file]:hover, a:hover{
    cursor: pointer !important;
}

.submit-button {
    /* Sizing */
    height: 5vw;
    width: 15vw;
    /* Positioning */
    position: relative;
    background-color: rgba(0,0,0,0.2);
    /* Border */
    border: solid 1px #ff7e4a;
    /* Text Properties */
    color: lightgray;
    text-align: center;
    text-decoration: none;
    font-size: 2.2vw;
}

    .submit-button:enabled {
        background-color: #ff7e4a;
        color: white;
        border-bottom: 5px solid #a3502f;
        cursor: pointer;
    }

    .submit-button:disabled {
        opacity: .50;
    }

    .submit-button:hover, a:hover {
        opacity: .75;
    }

.file-uploader {
    z-index: 1;
    opacity: 0;
}

.file-uploader-overlay {
    /* Positioning */
    z-index: 0;
    /* Border */
    border: dashed 2px #ff7e4a;
    border-radius: 10px;
    /* Text Properties */
    text-align: center;
    color: #ff7e4a;
    font-size: 2.9vw;
    font-weight: 500;
    white-space: normal;
    overflow: hidden;
    line-height: 280px;
}

.file-uploader-common {
    /* Sizing */
    width: 80%;
    height: 220px;
    /* Positioning */
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    transform: translateX(-50%);
    margin: 0 auto;
    padding: 0;
}

.div-container {
    padding: 10px;
    margin-bottom: 1px;
    text-align: center;
    background-color: rgba(0,0,0,0.2);
    box-shadow: 0 1px 4px 0 rgba(0,0,0,0.5);
}

.save-icon {
    width: 2.2vw;
    height: 2.2vw;
    border: 0;
}

.reset-table-button {
    left: -5px;
}

.under-submit-button-label {
    font-size: 1.5vw;
    color: white;
}

.ui-widget-content a {
    color: #ff7e4a;
}

.ui-widget-content {
    font-size: 12px;
}

#file-upload-box {
    padding: 20px;
    height: 220px;
}

#description-box {
    margin-bottom: 6px;
    padding-bottom: 1px;
}

#button-box {
    height: 8vw;
    padding: 10px;
}

#download-svg {
    height: 85px;
    width: 85px;
    margin-top: 30px;
}

#tableHeader {
    border-bottom: 1pt solid black;
}

#loader {
    /* Sizing */
    width: 60px;
    height: 60px;
    /* Positioning */
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 500;
    /* Animation Properties */
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    -webkit-animation: spin 2s linear infinite;
    -moz-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

#resetButton {
    height: 2.5vw;
    font-size: 1.35vw;
    font-weight: normal;
    line-height: 2px;
    border-bottom: 3px solid #a3502f;
    display: table;
    margin: 0 auto;
    position: static;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@-moz-keyframes spin {
    0% {
        -moz-transform: rotate(0deg);
    }

    100% {
        -moz-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media screen and (min-width: 900px) {
    body {
        width: 80%;
    }

    h1 {
        font-size: 300%;
    }

    p {
        font-size: 170%;
    }

    th, td {
        padding: 12px;
    }

    sup {
        font-size: 70%;
    }

    table {
        font-size: 100%;
        padding: 12px;
    }

    .file-uploader-common {
        width: 66%;
    }

    .file-uploader-overlay {
        font-size: 160%;
    }

    .submit-button {
        height: 50px;
        width: 150px;
        font-size: 100%;
    }

    .under-submit-button-label {
        position: relative;
        font-size: 90%;
        top: 20px;
    }

    #resetButton {
        font-size: 12px;
        height: 25px;
        width: 75px;
    }

    #button-box {
        height: 100px;
    }

    #submitButton{
        top: 5px;
    }
}

@media screen and (min-width: 1375px) {
    body {
        width: 1100px;
    }

    .file-uploader-common {
        width: 900px;
    }

    h1 {
        font-size: 300%;
    }

    .save-icon {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }

    #resetButton {
        left: -30px;
    }
}

@media screen and (max-width: 450px) {
    .under-submit-button-label {
        position: relative;
        top: -6px;
        font-size: 9px;
    }

    .submit-button {
        top: -4px;
        font-size: 10px;
    }

    .file-uploader-common {
        height: 140px;
        line-height: 230px;
        font-size: 15px;
    }

    #file-upload-box {
        height: 140px;
    }

    #download-svg {
        margin-top: 20px;
    }

    h1 {
        font-size: 22px;
    }

    p {
        font-size: 15px;
    }

    table {
        font-size: 9px;
    }
}

@media screen and (max-width: 330px) {
    table {
        font-size: 7px;
    }

    .under-submit-button-label {
        font-size: 8px;
        position: relative;
        top: -10px;
    }

    .submit-button {
        top: -5px;
        font-size: 10px;
    }

    #download-svg {
        margin-top: 5px;
        height: 20vw;
        width: 20vw;
    }

    .file-uploader-common {
        height: 100px;
        line-height: 150px;
    }

    #file-upload-box {
        height: 100px;
    }
}
