#trainers-page {
    /* display: flex; */
    /* justify-content: center; */
    /* align-items: center; */
    /* flex-direction: column; */
    width: 90%;
    padding: 15vh 5%;
    position: relative;
}

#trainers-page-head {
    height: 100%;
    position: absolute;
    left: 5;
    right: 20;
    overflow-x: hidden;
    overflow-y: auto;
    perspective: 20px;
    opacity: .7;
}

#trainers-page-head ol {
    height: 95%;
    transform-style: preserve-3d;
    /* list-style-type: none; */
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

#trainers-page-head ol li {
    color: var(--main-text-color);
    font-family: var(--font-family);
    font-size: 3rem;
    font-weight: bold;
    /* margin: 5vh 0; */
}

.instructor {
    width: 75%;
    height: 100vh;
    max-width: 650px;
    max-height: 400px;
    margin: 10vh auto 10vh auto;
    display: flex;
    border: 2px solid var(--main-text-color);
    position: relative;
}

.instructor:hover {
    cursor: pointer;
}

.instructor-freeClass {
    z-index: 1;
    background-color: var(--main-text-color);
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-5%, -5%);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
}

.instructor-info {
    z-index: 2;
    background-color: var(--main-text-color);
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translate(5%, 5%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* justify-content: flex-start; */
    /* align-items: center; */
    border-radius: 5px;
}

.instructor-title {
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: flex-start;
    justify-self: flex-start;
    margin: 5% 12% 4% 12%;
    font-size: 1.1rem;
    font-family: var(--font-family);
}

.instructor-desc {
    flex: 1;
    margin: 0 8%;
    padding: 2% 2%;
    font-size: 0.9rem;
    font-family: var(--font-family);
    background-color: rgb(230, 230, 230);
    border-radius: 5px;
    overflow: auto;
}

.instructor-ratings {
    display: flex;
    margin: 5% 10%;
    font-size: 1.1rem;
    font-family: var(--font-family);
    display: flex;
    align-items: center;
}

.instructor-ratings p {
    margin-right: 1%;
}

.checked {
    color: rgb(63, 152, 255);
}

.instructor-image {
    z-index: 3;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    transition: all 1s ease-in-out;
    transform: scale(1);
}

.instructor-image img {
    min-width: 100%;
    min-height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    object-fit: cover;
}

@keyframes slide-up {
    0% {
        bottom: -100%;
    }
    100% {
        bottom: 0%;
    }
}

@keyframes sizeIncreaseRight {
    0% {
        transform: translate(5%, 5%);
    }
    100% { 
        transform: translate(7%, 7%);
    }
}

@keyframes sizeDecreaseRight {
    0% {
        transform: translate(7%, 7%);
    }
    100% { 
        transform: translate(5%, 5%);
    }
}

@keyframes sizeIncreaseMiddle {
    0% {
        transform: scale(1);
    }
    100% { 
        transform: scale(1.1);
    }
}

@keyframes sizeDecreaseMiddle {
    0% {
        transform: scale(1.1);
    }
    100% { 
        transform: scale(1);
    }
}

@keyframes sizeIncreaseLeft {
    0% {
        transform: translate(-5%, -5%);
    }
    100% { 
        transform: translate(-7%, -7%);
    }
}

@keyframes sizeDecreaseLeft {
    0% {
        transform: translate(-7%, -7%);
    }
    100% { 
        transform: translate(-5%, -5%);
    }
}

@media screen and (min-width: 2000px) {
    #trainers-page-head {
        left: 20;
    }
}

@media screen and (max-width: 2000px) {
    
}

@media screen and (max-width: 1440px) {
    .info {
        padding: 2vh 2vw;
    }

    .instructor-title h2 {
        font-size: 1.3rem;
        margin-right: 1vw;
    }
    .instructor-title p{
        font-size: 1rem;
    }
    .info-desc {
        font-size: .9rem;
    }
}

@media screen and (max-width: 1000px) {
    .info {
        padding: 1vh 2vw;
    }

    .instructor-title h2 {
        font-size: 1.2rem;
        margin-right: .9vw;
    }
    .instructor-title p{
        font-size: .9rem;
    }
    .info-desc {
        font-size: .8rem;
    }
}

@media screen and (max-width: 500px) {
    #trainers-page-head {
        display: none;
        left: 1;
    }
    #trainers-page-head ol li {
        font-size: 2rem;
    }
    .instructor {
        flex-direction: column;
        width: 90%;
    }
    .instructor-image {
        max-height: 40%;
        min-height: 40%;
        align-self: flex-end;
        justify-self: flex-end;
    }
    .instructor-info {
        transform: translate(0, 0);
        position: relative;
        max-height: 60%;
        min-height: 60%;
    }
    .instructor-title {
        margin: 5% 12% 4% 10%;
    }
    .instructor-desc {
        margin: 0 4%;
    }
    .instructor-ratings {
        margin: 5% 5%;
    }
    .instructor-ratings p {
        display: none;
    }
    .checked {
        font-size: .5rem;
    }
}

@media screen and (max-width: 400px) {

}