* {
    box-sizing: border-box;
    margin: 0;
}

main {
    max-width: 1400px;
    width: 90%;
    margin: 50px auto 50px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h2, h3, .future-careers, .video-title {
    text-align: center;
    margin: 0;
    background: linear-gradient(to bottom, #4d6799, #31466b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

h2, .video-title {
    font-size: 50px;
    user-select: none;
}

h3 {
    font-size: 28px;
}

.video-title {
    margin: 50px 0;
}

.page-description {
    color: #746d68;
    text-align: center;
    font-size: 25px;
    margin: 10px 0 50px 0;
    user-select: none;
}

.subjects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto 1fr auto auto;
    width: 100%;
}

.subject {
    display: grid;
    grid-row: span 6;
    grid-template-rows: subgrid;
    align-items: center;
    justify-items: center;
    padding: 15px 0;
    border-right: 2px solid #ddd7d2;
}

.subject:first-child {
    border-left: 2px solid #ddd7d2;
}

.subject img {
    height: 100px;
    margin: 15px 0;
}

.amount {
    font-size: 25px;
    color: #746d68;
    margin: 5px 0;
    text-align: center;
}

.description {
    font-size: 25px;
    color: #746d68;
    margin: 5px 0;
    text-align: center;
    width: 90%;
}

.future-careers {
    font-size: 25px;
    font-weight: bold;
    margin: 5px 0 0 0;
    width: 90%;
}

.careers {
    font-size: 25px;
    color: #746d68;
    margin: 1px 0;
    text-align: center;
    width: 90%;
}

.middle-school {
    width: 95%;
    background-color: #fffbf7;
    margin: 50px 0 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    padding: 50px;
}

.middle-school h3 {
    margin-top: 0;
    font-size: 35px;
}

.middle-school-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

.middle-school-container p {
    font-size: 25px;
    color: #746d68;
    margin: 0;
    text-align: justify;
    width: 90%;
}

.middle-school-container img {
    height: 300px;
    margin: 0 50px 50px 50px;
}

.video {
    width: 90%;
    border-radius: 20px;
    border: 10px solid #e2cea6;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 1024px) {
    h2, .video-title{
        font-size: 40px;
    }
    h3{
        font-size: 21px;
    }
    .middle-school h3 {
        font-size: 28px;
    }

    .page-description, .description, .future-careers, .amount, .careers, .middle-school-container p{
        font-size: 20px;
    }
    .subject img{
        height: 80px;
    }
    .middle-school{
        padding: 30px;
    }
    .middle-school-container img{
        height: 200px;
        margin: 0 30px 50px 30px;
    }
}

@media screen and (max-width: 768px) {
    .middle-school{
        width: 100%;
        padding: 20px;
    }
    .middle-school-container p{
        width: 100%;
    }
    .video{
        width: 100%;
        border-width: 5px;
    }
    .middle-school-container{
        flex-direction: column;
    }
    .middle-school-container img {
        margin: 30px 0;
    }
    .subjects-container {
        display: flex;
        flex-direction: column;
    }
    .subject {
        display: flex;
        flex-direction: column;
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #ddd7d2;
    }
    .subject:first-child {
        border-left: none;
    }
    .subject:last-child {
        border-bottom: none;
    }
}

@media screen and (max-width: 480px) {
    h2, .video-title{
        font-size: 32px;
    }
    h3{
        font-size: 18px;
    }
    .middle-school h3 {
        margin-top: 0;
        font-size: 23px;
    }
    .page-description, .description, .future-careers, .amount, .careers, .middle-school-container p{
        font-size: 16px;
    }
    .subject img{
        height: 64px;
    }
    .middle-school-container img{
        height: 150px;
        margin: 15px 0;
    }
}