body {
    margin: 0;
    padding: 0;
    background-color: black;
    background-image: url('../images/mood.jpg');
    background-size: cover;
    background-repeat: no-repeat;
}

* {
    font-family: "Barlow Condensed", sans-serif;
    color: #4a4a4a;
    font-weight: 100;
    font-style: normal;
    font-size: 18px;
}

h1 {
    font-weight: 700;
    font-size: 32px;
    font-style: italic;
    margin: 0 0 12px 0;
}

input[type=text], input[type=password], button, select, textarea {
    padding: 10px;
    margin: 5px;
    border-radius: 12px;
    outline: 0;
    border-width: 0;
}

input[type=text]:disabled {
    opacity: 0.5;
}

.shakeable {
    transition: all 80ms;
}

select {
    /* styling */
    background-color: white;
    display: inline-block;
    font: inherit;

    /* reset */
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* arrow */
    background-image:
            linear-gradient(45deg, transparent 50%, gray 50%),
            linear-gradient(135deg, gray 50%, transparent 50%);
    background-position:
            calc(100% - 20px) calc(1em + 2px),
            calc(100% - 15px) calc(1em + 2px),
            calc(100% - .5em) .5em;
    background-size:
            5px 5px,
            5px 5px,
            1.5em 1.5em;
    background-repeat: no-repeat;
}

button {
    background: #4a4a4a;
    color: #ffde00;
    min-width: 100px;
    cursor: pointer;
}

button[disabled] {
    opacity: 0.5;
}

a {
    text-decoration: underline;
    cursor: pointer;
}

button.secondary {
    background: transparent;
    font-weight: 300;
    color: #4a4a4a;
    text-decoration: underline;
}

/* general styling */

.bold {
    font-weight: 500;
}

.italic {
    font-style: italic;
}

.centered {
    text-align: center;
}

.paragraph {
    margin-top: 16px;
    margin-bottom: 16px;
    margin-left: 5px;
    margin-right: 5px;
}

.form-field {
    text-align: left;
    padding-bottom: 10px;
}

.form-field label {
    display: block;
    text-align: left;
    padding-left: 10px;
    font-size: 75%;
}

.app-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    background: rgba(0,0,0,0.7);
}

.app {
    width: 90%;
    max-width: 900px;
    height: 90%;
    max-height: 700px;
}

.app .header {

}

.app .header .logo {
    float: left;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-bottom: 12px;
    background-image: url('../images/Plaans-App-Icon-180x180.png');
    background-size: cover;
}

.app .header .app-name {
    display: inline-block;
    height: 40px;
    align-content: center;
    color: #ffde00;
    padding: 0 12px;
    font-style: italic;
}

.app .header .logout {
    display: inline-block;
    padding: 0 20px;
    float: right;
    margin-bottom: 12px;
    border: 1px solid #ffde00;
    border-radius: 12px;
    background: rgba(0,0,0,0.3);
    color: #ffde00;
    height: 38px;
    cursor: pointer;
    align-content: center;
}

.app .views {
    display: inline-block;
    width: 100%;
    overflow: hidden;
    height: calc(100% - 52px);
    border-radius: 15px;
    background: #ffde00;
    -webkit-box-shadow: 9px 10px 17px 0 rgba(0,0,0,0.32);
    box-shadow: 9px 10px 17px 0 rgba(0,0,0,0.32);
}

.app .views .login {
    position: relative;
    display: flex;
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.app .views .login .form {
    position: relative;
    padding: 16px;
    width: 50%;
}

@media (max-width: 620px) {
    .app .views .login .form {
        width: auto;
    }
}

.app .views .account {
    display: flex;
    height: 100%;
}

.app .views .account .selector {
    padding: 16px;
    min-width: 200px;

}

.app .views .account .selector h2 {
    display: none;
    margin: 0;
    text-align: center;
}

.app .views .account .selector .links {
    display: flex;
    flex-direction: column;
}

.app .views .account .selector .links .section {
    transition: all 0.5s ease;
    cursor: pointer;
    display: inline-block;
    padding: 0 15px;
    color: #4a4a4a;
    height: 40px;
    align-content: center;
    border-radius: 12px;
    margin-bottom: 5px;
    background-color: #ffde00;
    opacity: 0.7;
}

.app .views .account .selector .links .section.selected {
    background-color: rgba(255,255,255,0.5);
    opacity: 1;
}

.app .views .account .selector .links .section i {
    margin-right: 5px;
    width: 20px;
    text-align: center;
}

.app .views .account .selector .links .section .section-name {
    margin-right: 5px;
    width: 20px;
    text-align: center;
}

.app .views .account .sections {
    background: #F1F1F1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
}

.app .views .account .sections .content {
    margin: 16px;
    flex: 1;
    display: flex;
}

.app .views .account .sections .address .form {
    display: grid;
    grid-template-columns: repeat(4, [col] 25% ) ;
    grid-template-rows: repeat(3, [row] auto  );
}

.app .views .account .sections .address .form .form-field input {
    width: calc(100% - 30px);
    margin: 5px 5px 0 5px;
}

.app .views .account .sections .address .form .form-field.company {
    grid-column: col / span 2;
    grid-row: row ;
}
.app .views .account .sections .address .form .form-field.vatNumber {
    grid-column: col 3 / span 2 ;
    grid-row: row ;
}
.app .views .account .sections .address .form .form-field.firstName {
    grid-column: col / span 2;
    grid-row: row 2 ;
}
.app .views .account .sections .address .form .form-field.lastName {
    grid-column: col 3 / span 2 ;
    grid-row: row 2 ;
}
.app .views .account .sections .address .form .form-field.street {
    grid-column: col / span 4 ;
    grid-row: row 3 ;
}
.app .views .account .sections .address .form .form-field.zipCode {
    grid-column: col / span 1;
    grid-row: row 4 ;
}
.app .views .account .sections .address .form .form-field.city {
    grid-column: col 2 / span 3 ;
    grid-row: row 4 ;
}
.app .views .account .sections .address .form .form-field.country {
    grid-column: col / span 4 ;
    grid-row: row 5 ;
}
.app .views .account .sections .address .form .form-field.country select {
    width: 75%;
}
.app .views .account .sections .address .save button {
    width: 50%;
}

.app .views .account .sections .devices {
    overflow-y: scroll;
}

.app .views .account .sections .devices-interface {
    flex: 1;
}

.app .views .account .sections .devices .device-list {
    margin-bottom: 20px;
}

.app .views .account .sections .devices .device {
    padding: 15px;
    color: #4a4a4a;
    align-content: center;
    border-radius: 12px;
    margin: 5px 0;
    background-color: rgba(255,255,255,0.5);
}

.app .views .account .sections .devices .device .device-info {
    float: left;
}

.app .views .account .sections .devices .device .device-info .name {
    font-weight: 500;
    margin-bottom: 5px;
}

.app .views .account .sections .devices .device .device-info .additional-info {
    font-size: 15px;
}

.app .views .account .sections .devices .add-device {
    margin-bottom: 20px;
}

.app .views .account .sections .devices .add-device.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.app .views .account .sections .devices .form {
    display: grid;
    grid-template-columns: repeat(4, [col] 25% ) ;
    grid-template-rows: repeat(3, [row] auto  );
}

.app .views .account .sections .devices .form .form-field input {
    width: calc(100% - 30px);
    margin: 5px 5px 0 5px;
}

.app .views .account .sections .devices .add-device .form .form-field.firstName {
    grid-column: col / span;
    grid-row: row ;
}

.app .views .account .sections .devices .add-device .form .form-field.lastName {
    grid-column: col 2 / span;
    grid-row: row ;
}

.app .views .account .sections .devices .add-device .form .form-field.email {
    grid-column: col 3 / span;
    grid-row: row ;
}

.app .views .account .sections .devices .add-device .form .submit {
    grid-column: col 4 / span;
    grid-row: row;
    align-content: end;
    padding-bottom: 5px;
}

.app .views .account .sections .devices .add-device .form .submit button {
    width: calc(100% - 10px);
}

.app .views .account .sections .devices .device .remove-device {
    float: right;
    cursor: pointer;
}

.app .views .account .sections .help .message {
    width: 60%;
    margin: 10px 0;
    height: 120px;
}

.app .views .account .sections .help .submit {
    margin: 0;
}

.app .views .account .sections .content .subscription {
    flex: 1;
}

.app .views .account .sections .content .subscription .plan-details {
    display: flex;
    align-items: center;
    color: white;
    padding: 16px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 5px 6px 12px 0 rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    margin-bottom: 12px;
}

.app .views .account .sections .content .subscription .plan-details.orange {
    background: rgb(255,166,46);
    background: linear-gradient(130deg, rgba(255,166,46,1) 0%, rgba(234,77,44,1) 100%);
}

.app .views .account .sections .content .subscription .plan-details.blue {
    background: rgb(46, 215, 255);
    background: linear-gradient(130deg, rgba(46, 215, 255, 1), rgba(27, 154, 191, 1));
}

.app .views .account .sections .content .subscription .plan-details.green {
    background: rgb(139, 231, 57);
    background: linear-gradient(130deg, rgba(139, 231, 57, 1), rgba(114, 191, 27, 1));
}

.app .views .account .sections .content .subscription .plan-details .checkmark {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: white;
    margin-right: 16px;
    background-image: url('../images/checkmark.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.app .views .account .sections .content .subscription .plan-details .info {
    flex: 1
}

.app .views .account .sections .content .subscription .plan-details .info .name {
    font-size: 36px;
    font-weight: 300;
    font-style: italic;
    text-align: left;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.5);
}

.app .views .account .sections .content .subscription .plan-details .info .description {
    color: white;
}

.app .views .account .sections .content .subscription .plan-details .info .device-limit {
    color: white;
    font-weight: 400;
    margin-bottom: 12px;
}

.app .views .account .sections .content .subscription .plan-details .cta {
    text-align: center;
}

.app .views .account .sections .content .subscription .plan-details .cta .price {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: white;
}

.app .views .account .sections .content .subscription .plan-details .cta button {
    background: #ffffff;
    color: #ff6700;
    font-weight: 600;
    font-size: 20px;
    width: 80%;
    min-width: 120px;
}

.app .views .account .sections .content .subscription .invoices {
    padding-bottom: 16px;
}

.app .views .account .sections .content .subscription .invoices .invoice {
    padding: 8px;
}

.app .views .account .sections .content .subscription .invoices .invoice img {
    vertical-align: text-bottom;
}

.app .views .account .sections .content .subscription .invoices .invoice a {
    font-weight: 600;
}

.app .views .account .sections .content .subscription .waiting {
    vertical-align: text-bottom;
    mix-blend-mode: color-dodge;
    margin: 6px 0;
}

.app .views .account .sections .content .subscription .waiting-for-approval div,
.app .views .account .sections .content .subscription .waiting-for-approval a {
    color: white;
    font-size: smaller;
}
