/**
 * Colours
 * Orange: #FF5821
 * Blue:   #003865
 * Grey:   #4D4D4F
*/

/* RESET */
html, body {
    margin: 0;
    padding: 0;
    font-family: Calibri, Helvetica;
    color: #4D4D4F;
}


/* TAGS */
body {
    display: flex;
    flex-direction: column;
}

button {
    background: #FF5821;
    color: #FFF;
    font-size: 1rem;
    height: 3.2rem;
    padding: 0.8rem 1.4rem;
    border: 0;
    border-radius: 0.4rem;
}

header, main, footer {
    box-sizing: border-box;
}

header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    background: #003865;
    height: 5rem;
    width: 100%;
    padding: 0.2rem 1rem;
    z-index: 1;
}

main {
    margin: 5.5rem 0;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5rem;
    padding: 0 1rem;
    background: #003865;
    z-index: 1000;

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

label {
    font-size: 1.1rem;
}

input {
    width: 96%;
    max-width: 100%;
    height: 1.5rem;
    font-size: 0.9rem;
}

select {
    width: 100%;
    max-width: 100%;
    height: 1.9rem;
    font-size: 0.9rem;
}


/* SPECIFICS */
#logo {
    width: 191px;
    height: 4.4rem;
}

.ui-tabs {
    padding: 0;
}

.tabs {
    text-align: center;
}

#product-image {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    width: 12rem;
}

#product-image img {
    width: 100%;
    height: 100%;
}

#aircraft, #power {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    row-gap: 2rem;
    padding: 1.8rem 0.6rem;
}

.card-option-custom-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-option.custom {
    z-index: 1;
}

.card-option-custom-q {
    font-size: 5rem;
    line-height: 5rem;
    padding: 0;
    margin: 0;
}

#aircraft-custom-inputs {
    width: 38vw;
    height: 9rem;
    box-sizing: border-box;
    padding: 2rem 1rem 1rem;
    margin-top: -9.5rem;
    border-radius: 0.4rem;
    box-shadow: 0 0.2rem 0.6rem rgb(0, 0, 0, .16);
    animation: aircraft-custom-slide-in 0.5s ease-in;
    -webkit-animation: aircraft-custom-slide-in 0.5s ease-in;
}
@keyframes aircraft-custom-slide-in {
    0% { margin-top: -0.5rem; }
    100% { margin-top: -9.5rem; }
}
@-webkit-keyframes aircraft-custom-slide-in {
    0% { margin-top: -0.5rem; }
    100% { margin-top: -9.5rem; }
}

.card-option.custom.selected + #aircraft-custom-inputs {
    margin-top: -0.5rem;
    animation: aircraft-custom-slide 0.5s ease-in;
    -webkit-animation: aircraft-custom-slide 0.5s ease-in;
}
@keyframes aircraft-custom-slide {
    0% { margin-top: -9.5rem; }
    100% { margin-top: -0.5rem; }
}
@-webkit-keyframes aircraft-custom-slide {
    0% { margin-top: -9.5rem; }
    100% { margin-top: -0.5rem; }
}

#aircraft-custom-inputs td {
    padding-bottom: 0.9rem;
}

#aircraft-custom-inputs td:first-child {
    text-align: right;
    padding-right: 0.5rem;
}

#power-custom-inputs {
    width: 38vw;
    height: 6.5rem;
    box-sizing: border-box;
    padding: 2rem 1rem 1rem;
    margin-top: -7rem;
    border-radius: 0.4rem;
    box-shadow: 0 0.2rem 0.6rem rgb(0, 0, 0, .16);
    animation: power-custom-slide-in 0.5s ease-in;
    -webkit-animation: power-custom-slide-in 0.5s ease-in;
}
@keyframes power-custom-slide-in {
    0% { margin-top: -0.5rem; }
    100% { margin-top: -7rem; }
}
@-webkit-keyframes power-custom-slide-in {
    0% { margin-top: -0.5rem; }
    100% { margin-top: -7rem; }
}

.card-option.custom.selected + #power-custom-inputs {
    margin-top: -0.5rem;
    animation: power-custom-slide 0.5s ease-in;
    -webkit-animation: power-custom-slide 0.5s ease-in;
}
@keyframes power-custom-slide {
    0% { margin-top: -7rem; }
    100% { margin-top: -0.5rem; }
}
@-webkit-keyframes power-custom-slide {
    0% { margin-top: -7rem; }
    100% { margin-top: -0.5rem; }
}

#power-custom-inputs td {
    padding-bottom: 0.9rem;
}

#power-custom-inputs td:first-child {
    text-align: right;
    padding-right: 0.5rem;
}

#power-setup select {
    margin: 0.5rem 0 2rem;
}

#power-setup input {
    width: 100%;
    margin: 0.5rem 0;
}

#custom-power {
    opacity: 1;
    margin-top: 0rem;
    animation: custom-power-slide 0.5s ease-in;
    -webkit-animation: custom-power-slide 0.5s ease-in;
}
@keyframes custom-power-slide {
    0% { opacity: 0; margin-top: -2rem; }
    100% { opacity: 1; margin-top: 0rem; }
}
@-webkit-keyframes custom-power-slide {
    0% { opacity: 0; margin-top: -2rem; }
    100% { opacity: 1; margin-top: 0rem; }
}

#custom-power.hidden {
    opacity: 0;
    margin-top: -2rem;
}

#p3-add-another {
    margin-right: 1rem;
}

#print-logo {
    display: inline-block;
    width: 191px;
    height: auto;
}


/* REUSABLES */
.hidden {
    display: none;
}

.warning {
    color: red;
}

.page {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
}

.card-option {
    width: 42vw;
    height: 12.5rem;
    background-color: #FFF;
    border-radius: 0.4rem;
    box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, .16);

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

.card-option.selected {
    box-shadow: 0 0.2rem 0.6rem #FF5821;
}

.card-option-image {
    max-width: 100%;
    max-height: 8.85rem;
    width: auto;
    height: auto;
}

.card-option-title {
    margin-top: 0.5rem;
}

.aircraft-details h2,
.quote-results h2 {
    margin-top: 0.7rem;
    margin-bottom: 0.7rem;
}

.aircraft-details h2 span:first-child,
.quote-results h2 span:first-child {
    font-weight: 500;
}

.aircraft-details h2 span:nth-child(2),
.quote-results h2 span:nth-child(2) {
    text-transform: capitalize;
}

.aircraft-details .warning {
    width: 60vw;
    margin: auto;
}

.detail-image-container {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin: 0 10%;
}

.detail-image-container img {
    width: 45%;
}

.button-container {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.button-container button {
    width: 10.5rem;
}

.quote-results table {
    display: inline-table;
    font-size: 1.3rem;
}

.quote-results td {
    padding-right: 2.5rem;
    text-align: right;
}

.quote-card {
    border: 1px solid #4D4D4F;
    border-radius: 0.4rem;
    margin-bottom: 3rem;
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}

/* Print Config */
@media print {
    #print-header {
        page-break-before: always;
        display: block;
        position: relative;
        background: none;
        text-align: start;
        margin-top: 1rem;
    }

    .other-header {
        padding: 0;
    }

    main {
        margin: 0;
    }

    header, footer, button {
        display: none;
    }

    .quote-card {
        margin-top: 2rem;
        margin-bottom: 0;
    }
}
