﻿body {
    height: 100vh;
    padding-top: 50px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

.display-toggle {
    display: none;
}

#add-btn-container {
    margin: 3px;
}

.btn-icon, .btn-icon-add, .btn-icon-del {
    font-size: 22px !important;
    padding: 2px 11px !important;
    border: none !important;
}

.btn-icon {
    border-color: transparent;
    font-size: 18px;
    padding: 6px 20px;
}

.btn-icon-add {
    margin-left: 8px;
    height: 37px !important;
}

.btn-icon-del {
    width: 40px !important;
    height: 37px !important;
}

.branch-index {
    height: 37px !important;
    padding-right: 10px;
}

.branch-target {
    padding: 18px 0 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.branch-top-input {
    padding-top: 0 !important;
}

.branch-input {
    padding: 5px 0px;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

#contactArea {
    display: none;
}

#formContainer, #completedContainer {
    background-color: #fff;
    padding-bottom: 50px;
    max-width: 90vw;
    border: 1px solid #ccc;
    border-radius: 10px;
}

@media screen and (min-width: 992px) {
    #formContainer, #completedContainer {
        width: 768px;
    }
}

.radio-memo-container, .checkbox-memo-container {
    flex: auto;
    margin-left: 15px;
}
.else-checkbox-label {
    margin-left: 0.25rem;
}

#formContainer {
    overflow: hidden;
}

.mt-title {
    margin-top: 35px;
}

.mt-checkbox {
    margin-top: 32px;
}

.content-padding {
    padding-left: 30px !important;
    padding-right: 30px !important;
}

.input-padding {
    padding-left: 55px !important;
    padding-right: 30px !important;
}

.mt-rem {
    margin-top: 40px;
}

.gray-bgc {
    background-color: #f7f7f7;
    height: 50px;
}

.title-number {
    width: 22px;
    height: 22px;
    font-weight: 700;
    font-size: 14px;
    line-height: 22px;
    margin-right: 4px;
    color: #ffffff;
    text-align: center;
    border-radius: 5px;
}

.standard-font {
    font-weight: 700;
    font-size: 21px;
    line-height: initial;
}

.standard-background {
    height: 15px;
}

#completedContainer {
    position: relative;
    margin-top: 20vh;
    padding-top: 40px;
    border: none;
}

@media screen and (max-width: 768px) {
    #completedContainer {
        margin-top: 12vh;
    }
}

.img-container img {
    width: 90px;
}

.error-img-container img {
    max-width: 100vw;
}

#completedShadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    filter: blur(5px);
    z-index: -2;
}

#completedBase {
    position: absolute;
    top: 2%;
    left: -2.5%;
    width: 105%;
    height: 96%;
    border-radius: 10px;
    z-index: -1;
}

input, select {
    max-width: none;
}

    input.invalid, input.invalid-repeat {
        border: 1px solid red;
    }

.validate-alert, .repeat-alert {
    color: red;
}

.question-margin {
    margin-top: 10px !important;
    margin-bottom: 6px !important;
}


/* loading animation */
#loading-bgc {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 500;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    margin-top: -28px;
    margin-left: -28px;
    animation: loading 2.5s infinite linear both;
}

.loading-dot {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    animation: loading-dot 2.0s infinite ease-in-out both;
}

    .loading-dot:before {
        content: '';
        display: block;
        width: 25%;
        height: 25%;
        background-color: #dbdbdb;
        border-radius: 100%;
        animation: loading-dot-before 2.0s infinite ease-in-out both;
    }

    .loading-dot:nth-child(1) {
        animation-delay: -1.1s;
    }

    .loading-dot:nth-child(2) {
        animation-delay: -1.0s;
    }

    .loading-dot:nth-child(3) {
        animation-delay: -0.9s;
    }

    .loading-dot:nth-child(4) {
        animation-delay: -0.8s;
    }

    .loading-dot:nth-child(5) {
        animation-delay: -0.7s;
    }

    .loading-dot:nth-child(6) {
        animation-delay: -0.6s;
    }

    .loading-dot:nth-child(1):before {
        animation-delay: -1.1s;
    }

    .loading-dot:nth-child(2):before {
        animation-delay: -1.0s;
    }

    .loading-dot:nth-child(3):before {
        animation-delay: -0.9s;
    }

    .loading-dot:nth-child(4):before {
        animation-delay: -0.8s;
    }

    .loading-dot:nth-child(5):before {
        animation-delay: -0.7s;
    }

    .loading-dot:nth-child(6):before {
        animation-delay: -0.6s;
    }

@keyframes loading {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes loading-dot {
    80%, 100% {
        transform: rotate(360deg);
    }
}

@keyframes loading-dot-before {
    50% {
        transform: scale(0.4);
    }

    100%, 0% {
        transform: scale(1.0);
    }
}
