@import url("main.css");

#debug{
    display: none;
    margin: 10px;
    padding: 10px;
    line-height: 12px;
    background: #FFFFFF;
    border: solid 1px #000000;
}

#debug_ratio{
    display: none;
    margin: 10px;
    padding: 10px;
    line-height: 12px;
    background: #FFFFFF;
    border: solid 1px #000000;
}

#desktopLinks .link:link, #desktopLinks .link:visited, #desktopLinks .link:hover,
#navIcons a:link,#navIcons a:hover, #navIcons a:visited{
    color: #006F95;
    text-decoration: none;
}


.toastWrapper{
    display: none;
}

.toast{
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;

    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;

    -ms-flex-align: center;
    -webkit-align-items: center;
    -webkit-box-align: center;

    align-items: center;
    position: absolute;
    z-index: 10000;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.toast .alert{
    margin: auto;
    vertical-align: center;
    border: 3px solid #82cad1;
    padding: 10px;
    background: #006F95;
    color: #82cad1;
    max-width: 50%;
}

#desktopGrid{
    display: none;
}

#leftFooter{
    display: none;
}

#debug_ratio:after{
    content: "no-ratio";
}

document, html, body {
    height: 100%;
    width: 100%;
    padding: 0px;
    margin: 0px;
}

#footerLogo{
    display: none;
}

body.index {
    height: 100%;
}

body.index .side-blend {
    display: none;
}

#mobileGrid {
    display: flex;
    flex-flow: column;
    height: 100%;
}

.row.services {
    height: 25%;
}

.row.services.top {
    height: 30%;
}

.row.icons {
    height: 25px;
}

#remainingLogo {
    background-image: url("../assets/logo-banner-rope-xs.jpg");
    background-repeat: no-repeat;
    background-size: 58%;
    background-position: center -30px;
    flex-grow: 1;
}

#navIcons {
    height: 1.8rem;
    line-height: 1.8rem;
    text-align: center;
}

#navIcons a {
    text-decoration: none;
    color: #82cad1;
    padding-right: 1rem;
    padding-left: 1rem;
    border-right: solid 1px #2F611C;
}

#navIcons a:last-child {
    border-right: none;
}

#copyrights {
    text-align: center;
    height: 1.1rem;
    line-height: 1.1rem;
    padding-left: 0.3rem;
    padding-right: 0.3rem;
    font-size: .8rem;
}

#navIcons a{
    text-decoration: none;
    color: #006F95;
}

#copyrights a{
    text-decoration: none;
    color: #82CAD1;
}

.row.services a.item {
    text-decoration: none;
}

.row.services .item {
    display: flex;
    flex-flow: column;
    float: left;
    width: 50%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.row.services .item .blend {
    flex-grow: 1;
}

.row.services .item .caption {
    height: 1.2rem;
    line-height: 1.2rem;
    margin: .4rem;
    padding: .2rem;
    text-align: center;
}

#powerYoga {
    background-image: url("../assets/icon_poweryoga-portrait.png");
}

#powerYoga .caption {
    background: #006F95;
    color: #82cad1;
}

#aquaCycling {
    background-image: url("../assets/icon_aquacycle-portrait.png");
}

#aquaCycling .caption {
    background: #82cad1;
    color: #006F95;
}

#rehaSport {
    background-image: url("../assets/icon_rehasport_portrait.png");
    background-position: top;
}

#rehaSport .caption {
    background: #82cad1;
    color: #006F95;
}

#aquaGym {
    background-image: url("../assets/icon_aquagym-portrait.png");
}

#aquaGym .caption {
    background: #006F95;
    color: #82cad1;
}

@media screen and (max-aspect-ratio: 4/5){
    #debug_ratio:after{
        content: "kleiner 4/5";landscape
    }

    #remainingLogo {
        background-size: 60%;
    }
}

@media screen and (max-aspect-ratio: 3/4){
    #debug_ratio:after{
        content: "kleiner 3/4";
    }

    #remainingLogo {
        background-size: 65%;
    }
}

@media screen and (max-aspect-ratio: 10/16){
    #debug_ratio:after{
        content: "kleiner 10/16";
    }

    #remainingLogo {
        background-size: 80%;
    }
}

@media screen and (max-aspect-ratio: 9/16){
    #debug_ratio:after{
        content: "kleiner 9/16";
    }

    #remainingLogo {
        background-size: 93%;
    }
}

@media screen and (max-aspect-ratio: 9/21){
    #debug_ratio:after{
        content: "kleiner 9/21";
    }

    #remainingLogo {
        background-size: 100%;
    }
}

@media screen and (orientation: portrait) and (max-width: 290px) {
    #navIcons a:link{
        text-decoration: none;
        color: #82cad1;
        padding-right: .2rem;
        padding-left: .2rem;
        border-right: solid 1px #2F611C;
    }
}

@media screen and (orientation: landscape){
    #debug_ratio:after{
        content: "Landscape-table";
    }

    #remainingLogo{
        display: none;
    }

    #topServices, #bottomServices{
        height: 40%;
    }

    #navIcons, #copyrights{
        text-align: right!important;
    }

    #leftFooter{
        display: inline-block;
        float: left;
        width: 30%;
        height: 100%;
    }

    #leftFooter img{
        margin-top: .3rem;
        margin-left: .3rem;
        height: 2.9rem;
        height: 4rem;
    }

    #rightFooter{
        display: inline-block;
        float: left;
        width: 70%;
        height: 100%;
    }
}

@media screen and (orientation: landscape) and (min-height: 500px){
    #leftFooter img{
        margin-top: .6rem;
        margin-left: .6rem;
        height: 8rem;
    }
}

@media screen and (orientation: landscape) and (min-height: 800px) {

    #mobileGrid {
        display: none;
    }

    #desktopGrid {
        display: flex;
        flex-flow: column;
        height: 100%;
        width: 100%;
    }

    #desktopGrid .flexible {
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: auto
    }

    #desktopServices {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        align-content: center;
    }

    #desktopServices .service {
        flex: 1 0 auto;
    }

    #desktopServices .inner {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        align-content: center;
        height: 13rem;
        width: 13rem;
        border-left: 1px solid white;
        border-top: 1px solid white;
        border-bottom: 1px solid white;
        text-decoration: none;
    }

    #desktopServices .inner div {
        flex: 1 1 auto;
    }

    #desktopServices .inner .blend {
        flex-grow: 1;
        flex-shrink: 0;
        flex-basis: auto;
    }

    #desktopServices .inner .caption {
        flex-grow: 0;
        flex-shrink: 1;
        flex-basis: auto;
        text-align: center;
        padding-top: .3rem;
        padding-bottom: .3rem;
        border-top: 1px solid #FFF;
        width: 100%;
    }

    #service-1 .caption, #service-3 .caption {
        background: #006F95;
        color: #82cad1;
    }

    #service-2 .caption, #service-4 .caption {
        background: #82cad1;
        color: #006F95;
    }

    #service-1 {
        background-image: url("../assets/icon_poweryoga-portrait.png");
    }

    #service-2 {
        background-image: url("../assets/icon_aquacycle-portrait.png");
    }

    #service-3 {
        background-image: url("../assets/icon_rehasport_big.png");
    }

    #service-4 {
        background-image: url("../assets/icon_aquagym-portrait.png");
    }

    #desktopServices div {
        background-size: cover;
    }

    #desktopLogo {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        align-content: center;
        padding-bottom: 1rem;
    }

    #desktopLinks {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        align-content: center;
    }

    #desktopLinks .link:link, #desktopLinks .link:visited, #desktopLinks .link:hover {
        text-decoration: none;
        flex: 1 1 auto;
        margin-top: .7rem;
        margin-bottom: .7rem;
        padding-right: 0.7rem;
        margin-left: 0.7rem;
        padding-top: .4rem;
        padding-bottom: .4rem;
        border-right: 1px solid #82cad1;
    }

    #desktopLinks .link:nth-child(1) {
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: auto;
    }

    #desktopLinks .link:nth-child(2) {
        flex-grow: 0;
        flex-shrink: 1;
        flex-basis: auto;
    }

    #desktopLinks .link:nth-child(3) {
        flex-grow: 0;
        flex-shrink: 1;
        flex-basis: auto;
    }

    #desktopLinks .link:nth-child(4) {
        flex-grow: 0;
        flex-shrink: 1;
        flex-basis: auto;
        border: none;
    }

    #desktopLinks .link:nth-child(5) {
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: auto;
    }

    #desktopCopyright {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        align-content: center;
    }

    #desktopCopyright .item {
        flex: 1 1 auto;
        height: 3rem;
    }

    #desktopCopyright .item:link{
        text-decoration: none;
        color: #82cad1;
    }

    #desktopCopyright .item:nth-child(1) {
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: auto;
    }

    #desktopCopyright .item:nth-child(2) {
        flex-grow: 0;
        flex-shrink: 1;
        flex-basis: auto;
    }

    #desktopCopyright .item:nth-child(3) {
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: auto;
    }
}