@font-face {
    font-family: 'Agency';
    src: url('../fonts/AgencyPLRegular.woff2') format('woff2'),
         url('../fonts/AgencyPLRegular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Birch Std';
    src: url('../fonts/BirchStd.woff2') format('woff2'),
    url('../fonts/BirchStd.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

.paper {
    position: relative;
    background-color: white;
    margin: 2vw auto;
}


/* Actual Paper Sizes */
.paper.us {
    box-sizing: border-box;
    width: 55.88vw;
    padding-left: 1.6vw;
    padding-right: 0.4vw;
    /* --------- 279.4mm in total --- */
    height: 43.18vw;
    padding-top: 0.5vw;
    /* --------- 215.9mm in total --- */
    /*ARE YOU ALIVE?!*/

}

.paper.eu {
    box-sizing: border-box;
    width:59.4vw;
    padding-left: 2.6vw;
    padding-right: 0.4vw;
    /* --------- 297mm in total --- */
    height: 42vw;
    padding-top: 0.8vw;
    /* --------- 210mm in total --- */
    /*background: url("/Themes/default/images/RPE_01.jpg") center center;
    background-size: contain;*/

}


.paper.us:after, .paper.eu:after{
    content: '';
    position:absolute;
    z-index:-1;
    bottom:-3px;
    width:94%;
    left:50%;
    margin-left:-47%;
    height:30px;
    box-shadow: 0 16px 30px -5px rgba(0, 0, 0, 1);
    -webkit-transform: perspective(800px) rotateY(0deg) rotateX(45deg);
    -moz-transform: perspective(800px) rotateY(0deg) rotateX(45deg);
    -ms-transform: perspective(800px) rotateY(0deg) rotateX(45deg);
    -o-transform: perspective(800px) rotateY(0deg) rotateX(45deg);
    transform: perspective(800px) rotateY(0deg) rotateX(45deg);
}


#birthplan {
    font-family: 'Agency', 'Teko', sans-serif;
    font-weight: 300;
    font-size: 1vw;
}

/*TEMP COLORS FOR DEV*/
#birthplan header {
    background-color: palegoldenrod;
}

#birthplan .people {
    background-color: yellow;
}

#birthplan .side.panel {
    background-color: palegreen;
}

#birthplan .side.panel double {
    background-color: #f3f3f2;
}

#birthplan .bottom.panel {
    background-color: paleturquoise;
}


/* BirthPlan Layout */

#birthplan header {
    width: 63.3%;
    float: left;
    margin-bottom: 1.4vw;
    margin-top: 0.8vw;
}

#birthplan .people {
    min-width: 25%;
    float: right;
    text-align: center;
    margin-right: 0.2vw;
}

#birthplan .pref {
    width: 74.5%;
    float: left;
}

#birthplan .side.panel {
    width: 23.222%;
    text-align: center;
    z-index: 1000;
    position: absolute;
    bottom: 0;
    right: 0;
    margin-right: 0.7vw;
    max-height: 35.75vw;
    padding-top: 0.75vw;
    overflow: hidden;
}

#birthplan .bottom.panel {
    overflow: hidden;
    width: 70.8%;
    position: absolute;
    bottom: 0;
}

#birthplan footer {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 13.468%;
    text-align: center;
    color: #77b3d4;
    font-size: 1vw;
    letter-spacing: 0.04vw;
    margin-right: 0;
}

#birthplan footer img {
    width: 100%;
}

/* BP Elements */

#birthplan img.circle-img {
    max-width: 4.34vw;
    width: 34.5%;
    border-radius: 50%;
}

#birthplan h1, #birthplan h2, #birthplan .people .name {
    font-family: 'Birch Std', 'Oranienbaum', serif;
    font-size: 2.4vw;
    padding: 0;
    margin: 0;
    font-weight:normal;
    overflow: hidden;
    white-space: nowrap;
    text-transform: capitalize;
}

/* BP Header */

    #birthplan header h1 span.extra-info, #birthplan h2  {
        color: #76c2af;
        font-size: 1.8vw;
        text-transform: none;

    }

    #birthplan header p.duedate {
        text-transform: uppercase;
        margin: 0.4vw 0;
    }

    #birthplan header p span.date-term {
        color: #808080;
    }

#birthplan header .badge {
    background-color: #f3f3f2;
    color: #000;
    font-size: 95%;
    font-weight: normal;

    }

/* BP People */

    #birthplan .person{
        text-align: center;
        /*width: 4vw;*/
        margin: 0 0.08vw;
        font-size: 0.9vw;
        color: #c75c5c;
        display: inline-block;
        text-transform: uppercase;
        vertical-align: top;
        white-space: nowrap;
    }

    #birthplan .people .photo {
        width: 3.75vw;
        height: 3.75vw;
        border-radius: 50%;
        background-image: url(/Themes/default/images/head.png);
        background-color: #f0f0e9;
        background-size: cover;
    }

    #birthplan .people .no.photo {
        width: 4.4vw;
        height: 4.4vw;
        margin-top:0.4vw;
    }


    #birthplan .people .name {
        font-size: 1.6vw;
        color: #000;
        text-transform: capitalize;
    }

    #birthplan .people.longnames .name {
        font-size: 1.4vw;
    }

    #birthplan .people.longnames .person{
        font-size: 0.9vw;
    }

    #birthplan .people .name {
        padding-top: 0.1vw;
    }


    #birthplan .people .no.photo + .name {
        margin-top: -3.25vw;
        font-size: 1.4vw;
    }

   /* #birthplan .people .name::after, #birthplan .people .name + div::after {
        content:".";
        font-size: 0;
    }*/


 /* BP Pref */

    #birthplan .pref .stage {
       width: 31.5%;
       display: block;
       margin-left: 0.8vw;
       border: 0.06vw solid #76c2af;
       min-height: 27vw;
       float: left;
    }

    #birthplan .pref .stage.one {
        margin-left: 0;
    }

    #birthplan .pref .stage.two {
        border-color: #77b3d4;
    }

    #birthplan .pref .stage.three {
        border-color: #4f5d73;
    }

    #birthplan .pref h2 {
        color: #c75c5c;
        background-color: #fff;
        width: 5.4vw;
        margin: -1.06vw auto 0.2vw auto;
        text-align: center;
    }

    #birthplan .pref h2 span {
        vertical-align: super;
        font-size: 1vw;
    }

    #birthplan .pref h2 + div:first-of-type {
        margin-top: -0.5vw;
    }

    #birthplan .pref ul {
        list-style-type:none;
        margin-bottom: 0.75vw;
    }

    #birthplan .pref img {
        margin: 0.4vw 0 0.4vw 0.8vw;
    }

    #birthplan .pref .stage .pref-text {
        width: 6.9vw;
        height: 5vw;
        display: inline-block;
        vertical-align: top;
    }

    #birthplan .pref .stage .pref-text .content {
        font-size: 1.18vw;
        left: 0.6vw;
        position: relative;
        float: left;
        top: 50%;
        transform: translate(0, -50%);
        line-height: 1.30vw;
    }
    #birthplan .pref .stage .pref-text .content::first-letter {
        text-transform: lowercase;
    }

    #birthplan .pref .stage .pref-text .content small {
        font-size: 1.13vw;
    }

    #birthplan .pref .stage .pref-text .content.hyphenate {
        overflow-wrap: break-word;
        word-wrap: break-word;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        -moz-hyphens: auto;
        hyphens: auto;
    }

    #birthplan .pref .stage .pref-text .content.not-lowercase {
        text-transform: inherit;
    }


   #birthplan .pref .stage  .pref-text .content span.details, #birthplan .pref .stage  .pref-text .content span.caps {
       font-size: 1vw;
       padding-top: 0;
       padding-left: 0;
   }

    #birthplan .pref .stage  .pref-text .content span.details {
        color: #999;
    }


/* Questions - Bottom Panel / Side Panel */
    #birthplan .bottom.panel span,
    #birthplan .bottom.panel .babycare span,
    #birthplan .bottom.panel .babycare h2 {
        vertical-align: top;
        display: inline-block;
        padding: 0.23vw 0;
    }

    #birthplan .bottom.panel .ask, #birthplan .side.panel .ask {
        text-transform: uppercase;
        line-height: 1.1;
        padding-top: 0.5vw;
        font-size: 0.95vw;
    }

    #birthplan .side.panel h2 + .ask {
        margin-bottom: 0.4vw;
        line-height: 0.6;
    }

    #birthplan .side.panel .double .ask {
        padding-bottom: 0.25vw;
    }


    #birthplan .bottom.panel .bracket, #birthplan .side.panel .bracket {
        font-size: 3.2vw;
        font-family: 'Oranienbaum', serif;
        color:#77B3D4;
    }

    #birthplan .bottom.panel.note div.bp-img, #birthplan .bottom.panel.note div img  {
        display:inline-block;
        width: 3.8vw;
        height: 3.8vw;
        margin-top: 0.3vw;
    }

    #birthplan .bottom.panel.note div.bp-note {
        display:inline-block;
    }

    #birthplan .bottom.panel.note div.bp-note h2 {
        color: #4E5D74;
        padding-left: 0.6vw;
        padding-top: 0.2vw;
    }

    #birthplan .bottom.panel.note span {
        font-size: 1vw;
        padding-top: 0;
        padding-left: 0.6vw;
        width: 34vw;
        display: inline-block;
        white-space: pre-wrap;
        line-height: 1.2vw;
        overflow: hidden;
        height: 5.5vw;
    }

    #birthplan .bottom.panel > .circle-img {
        width: 3.8vw;
    }

    #birthplan .bottom.panel .questions {
        padding: 1.1vw 0;
        white-space: nowrap;
    }

    #birthplan section.bottom.panel .bracket + span {
        margin-right: 1vw;
    }

    #birthplan .bottom.panel .ask, #birthplan .bottom.panel .bracket {
        margin: 0.7vw 0.3vw;
    }

    #birthplan .bottom.panel > img {
        margin-top: 0.7vw;
        margin-left: 0.4vw;
    }

    /* Baby Care */
    #birthplan .bottom.panel .babycare {
        /*background-color: #f3f3f2;*/
        background: #FFF;
        background: linear-gradient(180deg,rgba(255, 255, 255, 1) 17%, rgba(243, 243, 241, 1) 17%);
        padding-bottom: 1.5vw;
    }

    #birthplan .bottom.panel .babycare .circle-img {
        margin: 0.65vw 0.6vw 0.25vw 0.8vw;
    }

    #birthplan .bottom.panel .babycare h2 {
        line-height: 5.3vw;
        font-size: 1.5vw;
    }

    #birthplan .bottom.panel .babycare h2 span {
        line-height: 1.65vw;
        margin-top: 0.85vw;
        display: block;
    }

    #birthplan .bottom.panel .babycare .bracket {
        color: #76c2af;
        line-height: 3.8vw;
    }

    #birthplan .bottom.panel .babycare > div {
        width: 4.7vw; /*was 4.9 before 2024 changes*/
        display: inline-block;
        vertical-align: top;
    }

    #birthplan .bottom.panel .babycare div > img.circle-img {
        width: 2.94vw;
        height: 2.94vw;
        margin-top: 0.4vw;
        margin-left: 0.8vw;
        margin-right: 0;
    }

    #birthplan .bottom.panel .babycare .pref-text {
        max-width: 4.5vw;;
        margin-top: 0.1vw;
        text-transform: uppercase;
        text-align: center;
        font-size: smaller;
        max-height: 1.7vw;
        overflow-y: hidden;
    }


    .care-item p.oneliner {
        margin-top: 1vw;
    }


  /* Side panel specifics */
    #birthplan .side.panel .double {
        background-color: #f3f3f2;
        padding-top: 0.76vw;
    }

    #birthplan .side.panel img.circle-img {
        margin-bottom: 0.6vw;
    }

    #birthplan .side.panel .questions {
        line-height: 1.2vw;
    }

    #birthplan .side.panel .double .questions {
        line-height: 1.1vw;
    }

    #birthplan .side.panel p {
        padding: 0.2vw 0 0 0;
        line-height: 1.15;
        margin-bottom: 0.2vw;
    }

    #birthplan .side.panel .personal-note {
        white-space: pre-wrap;
        line-height: 1.3vw;
        margin-top: -1.5vw;
    }

    #birthplan .side.panel h2 {
        color: #4E5D74;
        font-size:1.5vw;
        line-height: 1;
    }

    #birthplan .side.panel .red {
        color: #c75c5c;
    }

    #birthplan .side.panel .dblue {
        color: #4E5D74;
    }

    #birthplan .side.panel p span, #birthplan .side.panel p.personal-note {
        color: #4f5d73;
        overflow: hidden;
        max-height: 28vw;
    }
    #birthplan .side.panel .dots {
        color: #4E5D74;
        font-family: sans-serif;
        font-size: 1vw;
        margin: 0.3em;
    }

        #birthplan .side.panel .double .dots {
            display:none; /*Hide dots in double-side bar*/
        }


    #birthplan .side.panel .hypno-box {
        background-color: #f1f1f1;
        padding: 0.45vw;
        margin: 0.7vw 1.3vw;
        border-radius: 3px;
        font-size: 0.9vw;
    }

    #birthplan .side.panel .double .hypno-box {
        background-color: #fff;
        border-radius: 2px;
        font-size: 0.85vw;
    }

    #birthplan .side.panel .double > div {
        font-size:0.9vw;
        padding-bottom: 2vw;
        border-top: white 1px solid;

    }

    #birthplan .side.panel .double .circle-img {
        max-width: 3vw;
    }

        #birthplan .side.panel .double > div:first-child {
            margin-top: -0.75vw;
        }

        /*#birthplan .side.panel .double > div:first-child .circle-img {*/
        /*    margin-top: -0.75vw;*/
        /*}*/
        #birthplan .side.panel .double > div .circle-img {
            margin-top: -0.75vw;
        }



    /*personal note */
    #birthplan .side.panel p.personal-note {
        padding-top: 2vw;
    }


    .side.panel h2 sup {
        font-size: small;
    }

    #overlay {
        display:none;
        z-index: 20;
    }

    /* SCREENS BIGGER THAN MOBILES */
@media (min-width: 768px) {

    #overlay {
        display: block!important;
        z-index: 2;
    }

}

@page {
      /*  size: 297mm 210mm;*/
        margin-left: 7mm;
        margin-top: 5mm;
        margin-right: 13mm;
        margin-bottom: 0;
  /*      size: 297mm 210mm landscape;*/
        size: landscape;
    }


    @media print {
        main {
            background:none;
        }

        .paper {
            margin:0;
        }

        .print-bar {
            display:none;
        }
    }



/* Image Upload */
.box {
    padding: 0.5em;
    width: 100%;
    margin:0.5em;
}



.options label,
.options input{
    width:4em;
    padding:0.5em 1em;
}
/*
.btn{
    background:white;
    color:black;
    border:1px solid black;
    padding: 0.5em 1em;
    text-decoration:none;
    margin:0.8em 0.3em;
    display:inline-block;
    cursor:pointer;
}
*/
.hide {
    display: none;
}

#modal_image_upload img {
    max-width: 100%;
}
/*
@media (min-width: 750px) {
    .modal-dialog {
        max-width: 700px;
        margin: 1.75rem auto;
    }
}
 */

.loading_icon {
    display: none;
}

.loading-bar {
    animation: loadingbar-progress 6s steps(48) forwards;
}

@keyframes loadingbar-progress {
    from { width: 0; }
    to { width: 96%; }
}