body {
    background: black;
    margin: 0px auto;
    padding: 0px;
}
main {
    margin: 0px;
    min-height: 100vh;
}
main a {
    text-decoration: none;
}
main img {
    height: 100%;
    border-right: 1px solid rgb(0, 168, 225);
    border-radius: 30px 0px 0px 30px;
    opacity: 0.7;
}
.title {
    display: flex;
    justify-content: center;
    color: rgb(0, 168, 225);
    font: 48px Inter;
    font-weight: 100;
}
.physics, .english, .ecology {
    display: flex;
    width: 70%;
    margin: 140px auto;
    margin-top: 50px;
    justify-content: space-between;
}
.subjects_title {
    font: 44px Inter;
    font-weight: 300;
    text-decoration: underline;
    color: rgb(0, 168, 225);
}
.subjects {
    display: flex;
    flex-direction: column;
    grid-gap: 60px;
}
.kvantovaya_fizika, .english_lms, .ecology_lms {
    display: flex;
    width: 750px;
    background-color: rgb(2,0,36);
    border-radius: 30px;
    border: 1px solid rgb(0, 168, 225);
}
.kvantovaya_fizika {
    height: 340px;
}
.english_lms, .ecology_lms {
    height: 270px;
}
.subject_info {
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
}
.subject_info hr {
    display: flex;
    width: 100%;
    height: 1px;
    margin: 0px;
    background-color: rgba(0, 168, 225, 0.5);
    border: 0;
}
.main_subject_info {
    font: 22px Inter;
    font-weight: 300;
    color: rgb(0, 168, 225);
    margin: 30px 30px;
    margin-right: 10px;
}
.other_subject_info {
    font: 16px Inter;
    font-weight: normal;
    color: rgba(0, 168, 225, 0.5);
    margin-left: 30px;
    margin-right: 10px;
}
.popup {
    display: none;
}

/* Large desktops and laptops */
@media (min-width: 1200px) and (max-width: 1650px) {
    .title {
        font: 42px Inter;
        font-weight: 100;
    }
    .physics, .english, .ecology {
        width: 85%;
    }
}

/* Landscape tablets and medium desktops */
@media (min-width: 992px) and (max-width: 1199px) {
    .physics, .english, .ecology {
        width: 80%;
        margin: 120px auto;
        margin-top: 30px;
        flex-direction: column;
    }
    .kvantovaya_fizika, .english_lms, .ecology_lms {
        margin: 0px auto;
        width: 100%;
    }
}

/* Portrait tablets and small desktops */
@media (min-width: 768px) and (max-width: 991px) {
    .title p {
        margin: 30px 0px;
    }
    .physics, .english, .ecology {
        width: 80%;
        margin: 120px auto;
        margin-top: 30px;
        flex-direction: column;
    }
    .kvantovaya_fizika, .english_lms, .ecology_lms {
        margin: 0px auto;
        width: 100%;
    }
    .kvantovaya_fizika {
        height: 390px;
    }
    .english_lms, .ecology_lms {
        height: 310px;
    }
}

/* Landscape phones and portrait tablets */
@media (min-width: 481px) and (max-width: 767px) {
    main img {
        border-radius: 25px 0px 0px 25px;
    }
    .title {
        font: 36px Inter;
        font-weight: 100;
    }
    .title p {
        margin: 20px 0px;
    }
    .physics, .english, .ecology {
        width: 80%;
        margin: 80px auto;
        margin-top: 30px;
        flex-direction: column;
    }
    .subjects_title {
        font: 30px Inter;
        font-weight: 300;
    }
    .kvantovaya_fizika, .english_lms, .ecology_lms {
        margin: 0px auto;
        width: 100%;
        border-radius: 25px;
    }
    .kvantovaya_fizika {
        height: 250px;
    }
    .english_lms, .ecology_lms {
        height: 215px;
    }
    .main_subject_info {
        font: 14px Inter;
        font-weight: 300;
        margin: 18px 16px;
        margin-right: 10px;
    }
    .other_subject_info {
        font: 11px Inter;
        font-weight: normal;
        margin-left: 16px;
    }
}

/* Portrait phones and smaller */
@media (min-width: 321px) and (max-width: 480px) {
    main img {
        border-radius: 25px 25px 0px 0px;
        border-right: 0;
        border-bottom: 1px solid rgb(0, 168, 225);
        width: 100%;
        height: auto;
        margin-top: -160px;
    }
    .title {
        font: 24px Inter;
        font-weight: 100;
    }
    .title p {
        margin: 14px 0px;
    }
    .physics, .english, .ecology {
        width: 80%;
        margin: 60px auto;
        margin-top: 20px;
        flex-direction: column;
    }
    .subjects_title {
        font: 24px Inter;
        font-weight: 300;
    }
    .kvantovaya_fizika, .english_lms, .ecology_lms {
        margin: 0px auto;
        width: 90%;
        border-radius: 25px;
        flex-direction: column;
        overflow: hidden;
    }
    .kvantovaya_fizika {
        height: auto;
    }
    .english_lms, .ecology_lms {
        height: auto;
    }
    .main_subject_info {
        font: 13px Inter;
        font-weight: 300;
        margin: 16px 16px;
        margin-right: 10px;
    }
    .other_subject_info {
        font: 11px Inter;
        font-weight: normal;
        margin-left: 16px;
    }
}

/* Iphone 5 */
@media (max-width: 320px) {
    main img {
        border-radius: 20px 20px 0px 0px;
        border-right: 0;
        border-bottom: 1px solid rgb(0, 168, 225);
        width: 100%;
        height: auto;
        margin-top: -140px;
    }
    .title {
        font: 22px Inter;
        font-weight: 100;
    }
    .title p {
        margin: 10px 0px;
    }
    .physics, .english, .ecology {
        width: 80%;
        margin: 50px auto;
        margin-top: 20px;
        flex-direction: column;
    }
    .subjects_title {
        font: 22px Inter;
        font-weight: 300;
    }
    .kvantovaya_fizika, .english_lms, .ecology_lms {
        margin: 0px auto;
        width: 100%;
        border-radius: 20px;
        flex-direction: column;
        overflow: hidden;
    }
    .kvantovaya_fizika {
        height: auto;
    }
    .english_lms, .ecology_lms {
        height: auto;
    }
    .main_subject_info {
        font: 13px Inter;
        font-weight: 300;
        margin: 14px 10px;
    }
    .other_subject_info {
        font: 11px Inter;
        font-weight: normal;
        margin-left: 10px;
    }
}
