* {
    box-sizing: border-box;
}

body {
    display: flex;
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    overflow: hidden;
    background: #F5F5F5;
    align-items: center;
    justify-content: center;
}

h1, h2, h3, h4, h5, h6, p, span, button, a, li, label {
    font-size: 16px;
    font-family: Roboto, sans-serif;
}

#background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    z-index: 100;
    background-color: #F5F5F5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    visibility: hidden;
}

#loading img {
    width: 64px;
    margin-bottom: 20px;
}

#loading .success,
#loading .error {
    display: none;
    width: 45px;
}

#loading #loading-text {
    color: grey;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 14px;
}

#loading.active {
    visibility: visible;
}

#loading.success .load,
#loading.error .load{
    display: none;
}

#loading.success .success {
    display: block;
}

#loading.error .error {
    display: block;
}

#color {
    position: relative;
    display: block;
    width: 100%;
    height: 40vh;
    background: linear-gradient(90deg, #2D3891, #8B278F);
}

#color::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 130%;
    height: 20vh;
    background-color: #F5F5F5;
    transform: rotate(-3deg) translateX(-15%) translateY(10vh);
}

#container {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 700%;
    margin: auto;
    background: #F5F5F5;
    box-shadow: 0 3px 40px 0px rgba(0,0,0,0.36);
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

#container #wrapper {
    display: flex;
    padding: 50px 30px 30px;
    width: 100%;
    flex-direction: column;
    justify-content: space-between;
    overflow: auto;
    flex-grow: 1;
}

@media screen and (min-width: 768px) {
    #container {
        min-width: 390px;
        width: 38%;
        height: 92%;
        max-width: 440px;
        max-height: 800px;
        border-radius: 15px;
    }
}

#container nav, #container ul {
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#container nav {
    margin-bottom: 30px;
}

#container nav ul li {
    width: 49.4%;
    display: inline-block;
    margin: 0;
    padding: unset;
    padding-bottom: 10px;
}

#container nav ul li.title {
    color: #2D3891;
    font-weight: 700;
    border-bottom: 2px solid #2D3891;
    letter-spacing: 1.5px;
    font-size: 14px;
    text-align: right;
    text-transform: uppercase;
}

#container nav ul li.logo img {
    width: 75%;
    display: inline-block;
}

#credit-card-container {
    width: 100%;
    display: block;
    margin-bottom: 210px;
    position: relative;
}

#credit-card-form {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 3px 70px 5px rgba(0,0,0,0.16);
}

#credit-card-form .line {
    display: block;
    width: 100%;
    padding: 20px 30px;
    border-bottom: 1px solid #c7c7c7;
}

#credit-card-form .line:last-child {
    border-bottom: unset;
}

#credit-card-form .line label {
    display: block;
    color: #C2C2C2;
    font-size: 14px;
    font-weight: 400;
}

#credit-card-form .line .col {
    display: inline-block;
    width: 75%;
}

#credit-card-form .line .col:last-child {
    width: 23%;
}

#credit-card-form .line input {
    background-color: transparent;
    border: unset;
    width: 100%;
    font-size: 16px;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    line-height: 40px;
    color: #878787;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#credit-card-form .line input:focus {
    outline: unset;
}

#card-button {
    display: block;
    width: 100%;
    border: unset;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #2D3891, #8B278F);
    padding: 25px 0;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
}
