﻿.plane {
    /*margin: 20px auto;*/
    max-width: 25%;
    float:right;
    width:22%;
}
.cockpit {
    height: 250px;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-bottom: 5px solid #d8d8d8;
}

    .cockpit:before {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        height: 500px;
        width: 100%;
        border-radius: 50%;
        border-right: 5px solid #d8d8d8;
        border-left: 5px solid #d8d8d8;
    }

    .cockpit h1 {
        width: 70%;
        margin: 0px auto 15px auto;
        font-size: 24px;
        font-weight: 800;
    }
    .cockpit h2 {
        width: 70%;
        margin: 0px auto 0px auto;
        color: #898989;
        font-size: 18px;
    }
    .cockpit img {
        width: 70px;
        height: 70px;
        margin: 20px auto;
        border-radius: 50%;
        position: static;
    }

.exit {
    position: relative;
    height: 40px;
}

    .exit:before, .exit:after {
        content: "EXIT";
        font-size: 14px;
        line-height: 18px;
        padding: 0px 2px;
        font-family: "Arial Narrow", Arial, sans-serif;
        display: block;
        position: absolute;
        background: green;
        color: white;
        top: 50%;
        transform: translate(0, -50%);
    }

    .exit:before {
        left: 0;
    }

    .exit:after {
        right: 0;
    }

.fuselage {
    border-right: 5px solid #d8d8d8;
    border-left: 5px solid #d8d8d8;
    direction: ltr;
    padding-top: 5px;
}
.fuselage .row{
    margin-right:0px;
    margin-left:0px;
    justify-content:space-evenly;
}
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.FlightPassengersTotal{
    padding:0px 5px;
    margin:1px 0px;
    background-color:#ffc9c9; 
    border-radius:5px;

}
.BrFlightPassengersTotal{
    margin-bottom:5px;
}

.SeatTooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}

    .SeatTooltip .tooltiptext {
        visibility: hidden;
        width: 160px;
        font-size:12px;
        background-color: black;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 5px 0; 
        position: absolute;
        z-index: 1;
        top:15px;
        right:25px;
    } 

    .SeatTooltip:hover .tooltiptext {
        visibility: visible;
    }


.seats {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    width:100%;
}

.seat {
    display: flex;
    flex: 0 0 14.2857142857%;
    /*padding: 5px;*/
    position: relative;
    min-width: 40px;
}

    .seat:nth-child(2) {
        margin-right: 14.2857142857%;
    }

    .seat input[type=checkbox] {
        position: absolute;
        opacity: 0;
    }

        .seat input[type=checkbox]:checked + label {
            background: #bada55;
            -webkit-animation-name: rubberBand;
            animation-name: rubberBand;
            animation-duration: 300ms;
            animation-fill-mode: both;
        }

        .seat input[type=checkbox]:disabled + label {
            background: #d79797;
            text-indent: -9999px;
            overflow: hidden;
        }

            .seat input[type=checkbox]:disabled + label:after {
                content: "X";
                text-indent: 0;
                position: absolute;
                top: 4px;
                left: 50%;
                transform: translate(-50%, 0%);
            }

            .seat input[type=checkbox]:disabled + label:hover {
                box-shadow: none;
                cursor: not-allowed;
            }

    .seat label {
        display: block;
        position: relative;
        width: 100%;
        text-align: center;
        font-size: 14px;
        font-weight: bold;
        line-height: 1.5rem;
        padding: 4px 0;
        background: #d1d1d1;
        border-radius: 5px;
        animation-duration: 300ms;
        animation-fill-mode: both;
    }

        .seat label:before {
            content: "";
            position: absolute;
            width: 75%;
            height: 75%;
            top: 1px;
            left: 50%;
            transform: translate(-50%, 0%);
            background: rgba(255, 255, 255, 0.4);
            border-radius: 3px;
        }

        .seat label:hover {
            cursor: pointer;
            box-shadow: 0 0 0px 2px #5c6aff;
        }

@-webkit-keyframes rubberBand {
    0% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }

    30% {
        -webkit-transform: scale3d(1.25, 0.75, 1);
        transform: scale3d(1.25, 0.75, 1);
    }

    40% {
        -webkit-transform: scale3d(0.75, 1.25, 1);
        transform: scale3d(0.75, 1.25, 1);
    }

    50% {
        -webkit-transform: scale3d(1.15, 0.85, 1);
        transform: scale3d(1.15, 0.85, 1);
    }

    65% {
        -webkit-transform: scale3d(0.95, 1.05, 1);
        transform: scale3d(0.95, 1.05, 1);
    }

    75% {
        -webkit-transform: scale3d(1.05, 0.95, 1);
        transform: scale3d(1.05, 0.95, 1);
    }

    100% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
}

@keyframes rubberBand {
    0% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }

    30% {
        -webkit-transform: scale3d(1.25, 0.75, 1);
        transform: scale3d(1.25, 0.75, 1);
    }

    40% {
        -webkit-transform: scale3d(0.75, 1.25, 1);
        transform: scale3d(0.75, 1.25, 1);
    }

    50% {
        -webkit-transform: scale3d(1.15, 0.85, 1);
        transform: scale3d(1.15, 0.85, 1);
    }

    65% {
        -webkit-transform: scale3d(0.95, 1.05, 1);
        transform: scale3d(0.95, 1.05, 1);
    }

    75% {
        -webkit-transform: scale3d(1.05, 0.95, 1);
        transform: scale3d(1.05, 0.95, 1);
    }

    100% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
}

.rubberBand {
    -webkit-animation-name: rubberBand;
    animation-name: rubberBand;
}
