@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600;700;800;900&family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap');


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat','Poppins', sans-serif;
}
   
body{
    background: #f4f4f4;
    min-height: 100vh;
    overflow-x: hidden;
}

a{
    text-decoration: none;
    color: #000;
}


.main_container{
    position: absolute;
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    margin: 0px;
    background: #f4f4f4;
    display: grid;
    grid-template-columns: 1fr 3fr;
}


.profi_logo{
    margin-bottom: 50px;
}

.lern_new_material{
    background-color: rgb(255, 113, 117);
    border-radius: 2px 30px 2px 2px;
    min-height: 155px;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, .15);
}

.practic_new_material{
    background-color: rgb(255, 113, 117);
    border-radius: 2px 30px 2px 2px;
    min-height: 155px;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, .15);
}

.test_new_material{
    background-color: rgb(255, 113, 117);
    border-radius: 2px 30px 2px 2px;
    min-height: 155px;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, .15);
}

.lern_new_material:hover{
    background-color: rgb(255, 75, 79);
    transition: 0.3s;
}

.practic_new_material:hover{
    background-color: rgb(255, 75, 79);
    transition: 0.3s;
}

.test_new_material:hover{
    background-color: rgb(255, 75, 79);
    transition: 0.3s;
}

.upper_side{
    margin-top: 15px;
    margin-left: 15px;
    width: 500px;
    padding: 10px;
}

.bottom_side{
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.first_word{
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 5px;
    color: white;
    font-family: 'Montserrat';
}

.second_word{
    font-size: 15px;
    margin-bottom: 25px;
    color: white;
    font-family: 'Montserrat';
}

.btn_metod_mat{
    min-width: 200px;
    border: solid;
    border-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
}

.btn_metod_mat:hover{
    border-color: rgb(175, 18, 18);
}

.btn_metod_mat:hover a{
    color: rgb(175, 18, 18);
}


.btn_metod_mat:active{
    border-color: white;
}

.btn_metod_mat:active a{
    color: white;
}


.btn_metod_mat a{
    margin-left: 8px;
    margin-right: 8px;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.btn_metod_mat i{
    margin-right: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
    height: 25px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}


.main_container{
    background-image: url(../content/Fon.png);
    background-position: bottom right;
    background-repeat: no-repeat;
    background-size: contain;
}

.upper_right{
    display: flex;
    margin-left: 150px;
    margin-top: 50px;
    font-size: 25px;
    color: #000;
}

.content_info{
    border-left: 2px solid #000;
    padding-left: 15px;
    color: #000;
}

.content_info:hover {
    border-left: 3px solid rgb(255, 75, 79);
    
}

.key_word{
    margin-left: 150px;
    border-left: 2px solid #000;
    padding-left: 15px;
    color: #000;
}

.key_word:hover{
    border-left: 3px solid rgb(255, 75, 79);
}

.theme{
    color: rgb(255, 75, 79);
    font-size: 30px;
    align-items: center;
    margin-top: 175px;
    margin-left: 150px;
}

.main_content_name{
    margin-top: 25px;
    margin-left: 150px;
    font-size: calc(4vw);
    font-weight: 900;
}

.fgos_and_mdk{
    display: flex;
    margin-left: 150px;
    
}

.Profi_logo1{
    display: none;
}

.fgos_and_mdk h5{
    font-weight: 400;
    font-size: 22px;
    max-width: 230px;
    margin-top: 75px;
    padding-bottom: 10px;
    border-bottom: solid 1px;
}

.fgos_text{
    margin-top: 25px;
    font-size: 20px;
    max-width: 500px;
}

.mdk{
    margin-left: 75px;
    width: 120px;
}

.mdk_text{
    font-size: 20px;
    margin-top: 25px;
    margin-left: 75px;
}

@media (max-width: 1580px){
    .main_container{
        background-image: url(../content/Fon2.png);
        background-position: bottom right;
        background-repeat: no-repeat;
        background-size: contain;
    }
}

@media (max-width: 1370px){
    .upper_right{
        margin-left: 50px;
    }
    .theme{
        margin-left: 50px;
    }
    .main_content_name{
        margin-left: 50px;
    }
    .fgos_and_mdk{
        margin-left: 50px;
    }
}

@media (max-width: 1270px){
    .upper_right{
        display: flex;
        margin-left: 50px;
        margin-top: 50px;
        font-size: 25px;
        color: #000;
    }

    .content_info{
        border-left: 2px solid #000;
        padding-left: 15px;
        color: #000;
    }
    
    .key_word{
        margin-left: 50px;
        border-left: 2px solid #000;
        padding-left: 15px;
        color: #000;
    }
    
    .theme{
        color: rgb(255, 113, 117);
        font-size: 30px;
        align-items: center;
        margin-top: 175px;
        margin-left: 50px;
    }
    

    .main_content_name{
        margin-top: 25px;
        margin-left: 50px;
        font-size: calc(4vw);
        font-weight: 900;
    }

    .fgos_and_mdk{
        display: flex;
        margin-left: 50px;
    }

    
    .fgos_text{
        margin-top: 25px;
        font-size: 18px;
        max-width: 250px;
    }
}

@media (max-width: 1120px){
    .main_content_name{
        font-size: calc(25px + 2vw);
        font-weight: 800;
    }

    .upper_right{
        display: block;
        font-size: 20px;
    }

    .key_word{
        margin-left: 0;
        margin-top: 25px;
    }

    .fgos_and_mdk{
        display: block;
        max-width: 250px;
        padding-bottom: 15px;
        margin-top: 25px;
    }

    .theme{
        font-size: 30px;
    }

    .main_content_name{
        font-size: calc(3px+1vw);
    }

    .fgos_and_mdk h5{
        margin-top: 25px;
        font-size: 22px;
    }

    .fgos_text{
        margin-bottom: 15px;
        font-size: 20px;
    }

    .mdk{
        margin-left: 0;
        margin-top: 10px;
    }
    
    .mdk_text{
        margin-left: 0;
    }
}

@media (max-width: 1024px){
    .first_word{
        font-size: 23px;
    }

    .Profi_logo1{
        display: flex;
    }

    .Profi_logo2{
        display: none;
    }

    #upper_left{
        display: block;
        font-size: 20px;
        margin-bottom: 50px;
    }

    .second_word{
        font-size: 18px;
        margin-bottom: 10px;
    }

    .upper_side{
        width: 95%;
    }

    .bottom_side{

        justify-content: space-around;
    }

    .main_container{
        background-image: url(../content/Fon3.png);
        background-position: bottom right;
        background-repeat: no-repeat;
        background-position-x: 2;
        background-size: auto;
    }

    .main_container{
        grid-template-columns: repeat(1, 1fr);
        grid-auto-flow: row;
    }

    .theme{
        margin-top: 50px;
    }

    .mdk_text{
        margin-bottom: 50px;
    }

    .main_content_name{
        max-width: 95vw;
    }
    .right_side{
        order: 1;
    }

    .left_side{
        order: 2;
    }
}

@media (max-width: 550px){
    .bottom_side{
        flex-direction: column;
    }
    .btn_metod_mat{
        margin-bottom: 15px;
        min-width: 270px;

    }
    .btn_metod_mat i{
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

/* Popup window */

.popup {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #00000050;
    top: 0;
    left: 0;
    color: white;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    overflow-x: hidden;
}

.popup_body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.popup_content {
    background-color: white;
    color: black;
    max-width: 1000px;
    border-radius: 15px;
    padding: 25px;
}

.popup_header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 15px;
    color: rgb(255, 113, 117);
    font-size: 25px;
}

.close_popup {
    font-size: 25px;
    margin-right: 5px;
}

.close_popup:active {
    color: rgb(255, 113, 117);
}

.popup_text {
    display: flex;
    align-items: center;
    font-size: 20px;
}

.popup::-webkit-scrollbar {
    width: 0;
}

.popup:target{
    opacity: 1;
    visibility: visible;
}

@media (max-width: 520px){
    .popup_text{
        flex-direction: column;
    }
    .popup_image{
        margin-left: 0;
        margin-top: 15px;
    }
}

.main_viewport::-webkit-scrollbar-track
{
	background-color: #dadada;
	border-radius: 0px;
    padding: 15px;
    width: 25px;
}

.main_viewport::-webkit-scrollbar
{
	width: 10px;
	background-color: #F5F5F5;
    padding: 15px;
    width: 15px;
}

.main_viewport::-webkit-scrollbar-thumb
{
	background-color: rgba(0, 0, 0, .2);
	border-radius: 10px;
	background-image: rgba(0, 0, 0, .2);
    width: 15px;
}

