/* @import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@100;200;300;400;500;600;700;800;900&family=Oxygen:wght@300;400;700&display=swap');*/
@import url("https://use.typekit.net/lvr8qsz.css");
:root {
    --red: #831A3D;
}
body {
    margin: unset;
    color: var(--red);
    display: flex;
    flex-direction: column;
}
main {
    overflow-x: hidden;
    display: grid;
    grid-template-rows: 80% 20%;
    max-height: 100%;
    height: 100vh;
}
header {
    background: white;
    display: grid;
    padding: 2rem 0;
    position: fixed;
    width: 100%;
    z-index: 25;
}
h1, h2, h3, h4, h5, li, a, p, span, button, input, label {
    margin-block-start: unset;
    margin-block-end: unset;
    margin-inline-start: unset;
    margin-inline-end: unset;
    padding-inline-start: unset;
    padding-inline-end: unset;
}
button {
    outline: unset;
    border: unset;
    background: unset;
    cursor: pointer;
}
a {
    text-decoration: unset;
    color: var(--red);
}
header a {
    font-family: hind, sans-serif;
    font-size: clamp(1.2rem, 0.14vw + 1.17rem, 1.33rem);
}
h1 {
    font-family: garamond-premier-pro, serif;
    font-size: clamp(2.07rem, 1.14vw + 1.79rem, 3.16rem);
    line-height: 1;
}
p {
    font-family: "Hind", sans-serif;
    font-size: clamp(1.2rem, 0.14vw + 1.17rem, 1.33rem);
    padding-inline-start: unset;
    padding-inline-end: unset;
    line-height: 1.4;
    /*    max-width: 132ch;*/
}
header div:nth-child(1) {
    display: flex;
    grid-column: 1/2;
    grid-row: 1/2;
    justify-content: center;
    align-items: center;
}
#logo {
    /*    max-width: 240px;*/
    width: clamp(60px, 124px + 12vw, 360px);
}
header div:nth-child(2) {
    display: flex;
    grid-column: 1/2;
    grid-row: 1/2;
    justify-content: flex-end;
    align-items: center;
    padding-right: 2rem;
}
header div:nth-child(2) button {
    border: 2px solid var(--red);
    border-radius: 8px;
    padding: 0.8rem 0.6rem;
}
header div:nth-child(2) button a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
/*id*/
#hero {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-rows: 1fr;
    grid-column: 1/2;
    grid-row: 1/3;
    z-index: 1;
    /*    height: 68vh;*/
}
#hero #prev {
    grid-column: 1/2;
    grid-row: 1/2;
    z-index: 10;
}
#hero #prev button svg, #hero #next button svg {
    width: clamp(18px, 24px + 4vw, 60px);
}
#hero #prev button:hover circle {
    opacity: 1;
}
#hero #stairlift {
    grid-column: 2/3;
    grid-row: 1/2;
    z-index: 10;
    /*    height: clamp(40vh, 60% + 8vw, 80vh);*/
}
#hero #next {
    grid-column: 3/4;
    grid-row: 1/2;
    z-index: 10;
}
#hero #next button:hover circle {
    opacity: 1;
}
#hero .carousel {
    background-position: top;
    background-size: cover;
    grid-column: 1/4;
    grid-row: 1/2;
    /*    opacity: 0;*/
    /*    visibility: hidden;*/
    z-index: -5;
    /*    transition: 1s ease-out;*/
}
#hero .carousel.display {
    /*    visibility: visible;*/
    /*    opacity: 1;*/
    z-index: 5;
    /*    transition: 0.4s ease-out;*/
}
#hero .out-L {
    /*
    transform: translateX(-50%);
    transition: 0.4s ease-out;
*/
    animation: outLeft 1s forwards
}
#landscape {
    display: none;
}
@keyframes outLeft {
    0% {
        transform: translateX(0%);
        z-index: 3;
    }
    100% {
        transform: translateX(-100%);
        z-index: 2;
    }
}
#hero .out-R {
    /*
    transform: translateX(50%);
    transition: 0.4s ease-out;
*/
    animation: outRight 1s Forwards
}
@keyframes outRight {
    0% {
        transform: translateX(0%);
        z-index: 3;
    }
    100% {
        transform: translateX(100%);
        z-index: 2;
    }
}
#hero .in-L {
    /*
    transform: translateX(0%);
    transition: 0.4s ease-in;
*/
    animation: inLeft 1s forwards;
}
@keyframes inLeft {
    0% {
        transform: translateX(-100%);
        z-index: 4;
    }
    100% {
        transform: translateX(0%);
        z-index: 5;
    }
}
#hero .in-R {
    /*
    transform: translateX(0%);
    transition: 0.4s ease-in;
*/
    animation: inRight 1s forwards;
}
@keyframes inRight {
    0% {
        transform: translateX(100%);
        z-index: 4;
    }
    100% {
        transform: translateX(0%);
        z-index: 5;
    }
}
#hero .carousel1 {
    background-image: url('/assets/bgbg3.jpg');
}
#hero .carousel2 {
    background-image: url('/assets/bgbg2.jpg');
}
#hero .carousel3 {
    background-image: url('/assets/bgbg.jpg');
}
#stairlift {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 80%;
}
#stairlift #image {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
    align-items: center;
}
#stairlift #image img {
    /*
    width: 100%;
    object-fit: contain;
    max-height: calc(468px + 8vw);
    user-select: none;
*/
    user-select: none;
    object-fit: contain;
    height: 54vh;
}
#circle {
    display: flex;
    flex-direction: row;
    gap: calc(0.8rem + 2vw);
    padding-bottom: 3rem;
    justify-content: center;
    align-items: center;
}
#circle .dot {
    cursor: pointer;
    display: flex;
    place-items: center;
}
#circle .dot.display svg circle {
    opacity: 1;
}
#circle .dot svg .dotToggle {
    transition: 0.4s ease-in-out;
    opacity: 0;
}
#circle .dot svg .dotToggle.progress {
    transition: linear;
    opacity: 1;
}
/* #circle .dot svg .dotToggle {*/
/*     animation: animate 10s linear forwards;*/
/*     animation: animate forwards;*/
/* }*/
/*
@keyframes animate {
    100% {
        stroke-dashoffset: 0;
    }
}
*/
/*
 #circle .dot .dotToggle {
     stroke-dasharray: 500;
 }
*/
#content {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(2px);
    display: grid;
    /*    padding-top: 2rem;*/
    align-content: center;
    grid-column: 1/2;
    grid-row: 2/3;
    z-index: 2;
    /*    padding: 4rem 0;*/
}
#content .text {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 2.4rem;
    width: 90%;
    grid-column: 1/2;
    grid-row: 1/2;
    text-align: left;
    max-width: 1920px;
    margin: auto;
    /*    padding: 0 1rem;*/
    opacity: 0;
    /*    background: rgba(255, 255, 255, 0.75);*/
}
#content .text h1 {
    grid-column: 2/3;
}
#content .text p {
    grid-column: 2/3;
}
#content .text picture {
    width: 100%;
    max-width: 90px;
    height: auto;
    object-fit: contain;
    grid-column: 1/2;
    grid-row: 1/3;
}
#content .text.display {
    opacity: 1;
}
#control {
    display: grid;
    place-items: center;
}
#play {
    grid-column: 1/2;
    grid-row: 1/2;
    visibility: hidden;
    z-index: 1;
}
#pause {
    grid-column: 1/2;
    grid-row: 1/2;
    visibility: hidden;
    z-index: 1;
}
#play.display {
    visibility: visible;
    z-index: 5;
}
#pause.display {
    visibility: visible;
    z-index: 5;
}
/*class*/
.div-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}
.login {
    display: flex;
    justify-content: center;
    align-content: center;
}
form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-direction: column;
}
form input {
    font-family: "Hind", sans-serif;
    font-size: clamp(1rem, 0vw + 1rem, 1rem);
}
.btn-login {
    font-family: "Hind", sans-serif;
    font-size: clamp(1rem, 0vw + 1rem, 1rem);
    text-decoration: underline;
}
/*
#content .text:nth-child(1).display .bg-m {
    background-image: url(/assets/mgmd.jpg);
    filter: blur(2px);
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
#content .text:nth-child(2).display .bg-m {
    background-image: url(/assets/mgmd2.jpg);
    filter: blur(2px);
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
#content .text:nth-child(3).display .bg-m {
    background-image: url(/assets/mgmd3.jpg);
    filter: blur(2px);
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
*/
@media screen and (max-width: 559px) {
    header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-evenly;
    }
    header div:nth-child(2) {
        padding-right: unset;
    }
    header div:nth-child(2) button {
        padding: 0.6rem 0.4rem;
    }
    #stairlift #image img {
        max-height: 92vw;
        height: 42vh;
    }
    #hero .carousel1 {
        background-image: url('/assets/bgsm-1.png');
    }
    #hero .carousel2 {
        background-image: url('/assets/bgsm-2.png');
    }
    #hero .carousel3 {
        background-image: url('/assets/bgsm-3.png');
    }
    #circle {
        padding-bottom: 2rem;
    }
    #hero {
        grid-row: 1/2;
    }
}
@media screen and (max-width: 1039px) {
    #hero .carousel {
        background-size: cover;
    }
    #stairlift #image img {
        max-height: 92vw;
        height: 48vh;
    }
    #prev {
        padding-left: 1rem;
    }
    #next {
        padding-right: 1rem;
    }
    #hero {
        grid-row: 1/2;
    }
    #hero #prev button:hover circle {
        opacity: 0.6;
    }
    #hero #next button:hover circle {
        opacity: 0.6;
    }
    #hero .carousel1 {
        background-image: url('/assets/bg3-sm.jpg');
    }
    #hero .carousel2 {
        background-image: url('/assets/bg2-sm.jpg');
        background-position: center;
    }
    #hero .carousel3 {
        background-image: url('/assets/bg1-sm.jpg');
    }
    #hero #stairlift {
        height: unset;
        ;
    }
    #circle {
        padding-bottom: 1rem;
    }
    #content {
        padding-top: unset;
        align-content: stretch;
    }
    #content .text {
        grid-template-columns: auto 1fr;
        padding: 1rem;
        column-gap: 1.2rem;
        row-gap: 0.6rem;
        margin: 0;
        position: relative;
        height: 100%;
        width: fit-content;
        background: rgba(255, 255, 255, 0.75);
    }
    #content .text:nth-child(1).display .bg-m {
        background-image: url(/assets/mgmd.jpg);
        filter: blur(2px);
        background-size: cover;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
    }
    #content .text:nth-child(2).display .bg-m {
        background-image: url(/assets/mgmd2.jpg);
        filter: blur(2px);
        background-size: cover;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
    }
    #content .text:nth-child(3).display .bg-m {
        background-image: url(/assets/mgmd3.jpg);
        filter: blur(2px);
        background-size: cover;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
    }
    #content .text h1 {
        grid-column: 2/3;
        display: flex;
        align-items: center;
    }
    #content .text p {
        grid-column: 1/3;
    }
    #content .text picture {
        width: 100%;
        max-width: 90px;
        height: auto;
        object-fit: contain;
        grid-column: 1/2;
        grid-row: 1/2;
        display: flex;
        align-items: center;
    }
    @media screen and (max-width: 930px) and (orientation: landscape) {
        #hero {
            display: none;
        }
        #content {
            display: none;
        }
        #landscape {
            display: flex;
            grid-column: 1/2;
            grid-row: 1/3;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            padding-bottom: 2rem;
            row-gap: 2rem;
    }
}