@import url('https://fonts.googleapis.com/css2?family=Kodchasan:wght@200&family=Nunito+Sans:opsz,wght@6..12,200&display=swap');

#main_title{
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("../images/BG1.png");
    flex-direction: column;
}

#CTA_div{
    display: flex;
    justify-content: center;
}

#categories > ul{
    display: flex;
    justify-content: space-between;
    list-style: none;
}

#but {
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
}

#categories{
    width: 90%;
    margin: 0 3% 0 3%;
}

.button_link {
    text-decoration: none;
}

.button {
    padding: 3% 3% 3% 3%;
    width: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    box-shadow: 0 5px 10px #666666;
    font-size: 28px;
    font-family: 'Kodchasan';
    color: black;
    transition: all .3s;
}

.button:hover {
    transform: scale(0.98);
    box-shadow: 5px 10px 10px #888888;
    cursor: pointer;
}

li:nth-child(1) > a > .button {
    background-color: #ff8000;
    border-color: #ff8000;
}

li:nth-child(2) > a > .button {
    background-color: #3eb4cc;
    border-color: #3eb4cc;
}

li:nth-child(3) > a > .button {
    background-color: #ff4747;
    border-color: #ff4747;
}

li:nth-child(4) > a > .button {
    background-color: #ffbf1f;
    border-color: #ffbf1f;
}

li:nth-child(5) > a > .button {
    background-color: #33ca7f;
    border-color: #33ca7f;
}

#logoL{
    width: 30%;
    margin-top: 100px;
}

h1, h2{
    color: white;
    text-align: center;
}

h1 {
    font-size: 48px;
    font-family: 'Kodchasan';
}

h2 {
    font-size: 36px;
    font-family: 'Nunito Sans';
}

h3 {
    font-family: 'Kodchasan';
    font-size: 48px;
    text-align: center;
    margin-right: 50px;
    margin-left: 50px;
}

p{
    font-family: 'Nunito Sans';
    font-size: 20px;
    text-align: center;
    margin-right: 50px;
    margin-left: 50px;
}

#students{
    border-radius: 15px;
    margin-right: 50px;
}

.CTA_txt:hover {
    transform: scale(0.98);
    box-shadow: 5px 10px 10px #888888;
    cursor: pointer;
}

.photo_commerce {
    width: 30%;
    border-radius: 15px;
    filter: grayscale(0.9);
    transition: ease-in-out .3s;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 10px #888888;
}

.photo_commerce:hover{
    filter: none;
    scale: 1.1;
}

#images {
    display: flex;
    justify-content: space-around;
    margin-bottom: 100px;
    margin-top: 50px;
}

.CTA_txt {
    background-color: #FF2E00;
    padding: 20px 50px 20px 50px;
    border-radius: 15px;
    box-shadow: 0 5px 10px #888888;
    font-family: 'Nunito Sans';
    color: black;
    text-decoration: none;
    font-size: 32px;
    border-color: #FF2E00;
    font-weight: bold;
    transition: all .3s;
    height: 150px;
    width: 750px;
}

.CTA {
    margin-bottom: 100px;
}

@media only screen
and (max-device-width: 576px)
and (orientation: portrait) {
    #main_title{
        width: 100%;
    }

    #images{
        width: 100%;
    }

    #CTA_div{
        width: 100%;
    }

    .CTA_txt{
        margin-bottom: 0;
        font-size: 20px;
        text-align: center;
        width: 85%;
        padding: 10px 5px 10px 5px;
        height: 100px;
    }

    #categories{
        width: 100%;
        margin: 0 0 0 0;
    }

    .button{
        font-size: 20px;
    }

    #categories > ul{
        width: 70%;
        margin-top: 0px;
        display: flex;
        flex-direction: column;
        padding-left: 0px;
        align-items: center;
    }

    #categories {
        display: flex;
        justify-content: center;
    }

    .button{
        margin-bottom: 26px;
    }
    .button:nth-child(5){
        margin-left: 0%;
    }

    #images{
        margin-bottom: 50px;
    }

    #but {
        width: 100%;
        flex-direction: column;
    }

    hr{
        width: 100%;
    }

    #students{
        margin: 0 2% 0 2%;
    }

    p{
        font-size: 22px;
    }

    #logoL{
        width: 65%;
    }

    h2{
        font-size: 28px;
    }

    #students{
        width: 85%;
        margin-bottom: 50px;
    }

    #student_box{
        display: flex;
        justify-content: center;
    }

    .CTA{
        display: flex;
        justify-content: center;
        text-decoration: none;
        margin-bottom: 50px;
    }
}