h1 {
    display: none;
}
.imageTextContainer {
    background-color: rgba(255, 255, 255, .5);
    position: relative;
    padding: 0;
    margin: 0;
}
.textContainer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(255, 255, 255, .7);
    padding: 0;
    margin: 0;
}
.textWrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}
.textWrapper p {
    font-size: 2rem;
    padding: 0;
    margin: 0 1rem;
}
.textWrapper p:nth-of-type(1) {
    font-size: 4rem;
}
.textWrapper .buttonContainer  {
    padding-top: 12rem;
    font-size: 1.5rem;
    display: flex;
    justify-content: space-evenly;
}
button {
    width: 11rem;
    margin: 1em;
    padding: 1em 2em;
    background: white;
    position: relative;
    z-index: 1;
    cursor: pointer;
    color: var(--comp);
    font-size: 1rem;
    border: 3px solid var(--comp2);
    transition: border-color 0.4s, color 0.4s;
    border-radius: 30px;
}
button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    -webkit-transform: scale3d(0.7, 1, 1);
    transform: scale3d(0.7, 1, 1);
    -webkit-transition: -webkit-transform 0.4s, opacity 0.4s;
    transition: transform 0.4s, opacity 0.4s;
    -webkit-transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
    transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
    background: var(--comp2);
    -webkit-transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
    transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
    border-radius: 30px;
}
button:hover {
    color: white;
}
button:hover::before {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}
.testimonialContainer {
    right: -15rem;
    width: 30rem;
    height: 10rem;
    display: block;
    position: absolute;
    background-color: white;
    padding: 0;
    top: 50%;
    transform: translatey(-50%);
    list-style-type: none;
    margin: 0;
    border-radius: 50px;
}
.testimonialContainer li {
    padding: 0;
    margin: 0;
    border-radius: 50px;
}
.testimonialContainer input { 
    display: none; 
}
.testimonial-inner {
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    transform: scale(0);
    transition: all .7s ease-in-out;
    display: grid;
    column-gap: 1rem;
    align-items: center;
    grid-template-columns: 1fr 6fr;
    grid-template-areas: 
        "img testimonialText"
        "img author";
}
.testimonial-inner img {
    width: 100%;
    height: auto;
    grid-area: img;
    align-self: start;
}
.testimonialText {
    grid-area: testimonialText;
}
.author {
    grid-area: author;
    text-align: right;
    font-style: italic;
}
.sb-bignav {
    display: none;
    position: absolute;
    z-index: 9;
    cursor: pointer;
    font-size: 5rem;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    left: -2rem;
    color: var(--main);
}
label[title="Next"] { 
    left: 100%; 
}
input:checked + .testimonial  {
    height: 100%;
    border: 1px solid #ccc;
    box-shadow: 1px 1px 6px 1px rgba(0, 0, 0, .5);
}
input:checked + li > .testimonial-inner {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1s ease-in-out;
    padding: 1rem;
}
input:checked + li > label { 
    display: block; 
}
@media only screen and (max-width: 1600px) {
    .textWrapper .testimonial {
        right: -30px;
    }
}
@media only screen and (max-width: 995px) {
    .textWrapper .testimonial {
        position: initial;
        width: 75%;
        margin: 2rem auto;
    }
    .testimonial img {
        width: 10%;
    }
    .textWrapper p {
        font-size: 1.5rem;
    }
    .textWrapper p:nth-of-type(1) {
        font-size: 2.5rem;
    }
    .textWrapper .buttonContainer {
        padding-top: 3rem;
        margin: 0;
    }
}
@media only screen and (max-width: 760px) {
    .imageTextContainer {
        height: 90vh;
    }
}
@media only screen and (max-width: 500px) {
    .textWrapper .testimonial {
        width: 100%;
    }
    .textWrapper p:nth-of-type(1) {
        font-size: 2rem;
    }
    .textWrapper p {
        font-size: 1rem;
    }
    .imageTextContainer {
        text-align: center;
    }
    .textWrapper .buttonContainer {
        flex-direction: column;
    }
}
@media only screen and (max-width: 370px) {
    .imageTextContainer {
        height: 85vh;
    }
}
