* {
    padding: 0;
    box-sizing: border-box;
    margin: 0;
}

body {

    background: hsla(245, 75%, 80%, 0.25);
    color: #070707;
    font-size: 1rem;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
}

:root {
    --color-button: #98a8f8;
    --color-background: #cdfcf6;
    --color-main: #faf7f0;
    --color-font: #eeee;
}

.welcome-message {
    width: 250px;
    height: 50px;
    border: 1px solid var(--color-main);
    font-size: 1.5rem;
    color: var(--color-font);
    border-radius: 15px;
    margin-bottom: 1rem;

    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-button);
}

#welcome {
    overflow: hidden;
    max-width: 38.5rem;
    margin: 0px auto;
    position: relative;
    padding-top: 0rem;
}

.maxcontent {
    width: 70%;
}

.section_head {
    padding: 3rem 0;
    background-image: url(/imgs/hero_background.svg);
    max-width: 1280px;
    margin: 2rem auto;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.title {
    margin-top: 20px;
    font-size: 3rem;
    line-height: 1;
    font-weight: 900;
    margin-top: 0px;
    margin-bottom: 1.75rem;
    text-align: left;
    text-shadow: 2px 2px 0px rgb(255, 255, 255);
    flex: 1;
}

.title_head {
    display: flex;

    align-items: center;
    flex-direction: row;
    text-align: left;
    flex-wrap: wrap;
    margin: 0 auto;
}

.title_body {
    width: 100%;
    max-width: 80rem;
    padding: 0 8rem;
    margin-right: auto;
    margin-left: auto;
}

.title_button {
    background-color: rgba(255, 255, 255, 0.5);

    border-radius: 15px;
    padding: 1rem;
}

.title_btn {
    display: flex;
    justify-content: flex-start;
}

.kids_avatar {
    object-fit: cover;
    display: flex;
    justify-content: flex-end;
    margin-top: 0px;
    padding: 0 1.25rem;
    flex: 1 1 0;
    width: 100%;
    background-image: url(/imgs/background_math.svg);
    background-repeat: no-repeat;
    background-position: top;
    background-size: contain;
}

.kids_img {
    max-height: fit-content;
    width: auto;
}

img {
    object-fit: cover;
    width: 100%;
}

.width-auto {
    width: auto;
}

.section_3 {
    overflow: hidden;
    margin-top: 5em;
    padding-top: 1em;
    padding-bottom: 1em;
    border-top: 1px solid grey;
    text-align: center;
    display: flex;
    justify-content: center;
}

.header {

    max-width: 1480px;
    margin: 19px auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.operations-container {
    display: flex;
    padding: 1rem 1rem;
    flex-wrap: wrap;
    gap: 42px;
    justify-content: center;
    margin: 2rem auto;
    max-width: 1050px;
}

.learn {
    font-size: 1.5rem;
    margin: .5rem 1rem;
    border-bottom: 1px solid grey;
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 0px grey;
}

.learn:hover {
    transform: scale(1.1);
}

.operations {
    cursor: pointer;
    max-height: 518px;
    max-width: calc(12rem);
    border: 1px solid grey;
    flex-wrap: wrap;
    gap: 10px;
    border-radius: 15px;
    padding: 1rem .5rem;
    margin: .25rem;
    display: flex;
    flex-direction: column;
    align-content: space-between;
    justify-content: space-between;
    align-items: center;
}

.operations a {
    text-decoration-line: none;
}

.play {
    background-color: hsla(0, 100%, 55%, 0.77);
    box-shadow: 7px 5px 2px rgba(255, 50, 50, 0.5);
}

.addition {
    background-color: #e1ffb6;
    box-shadow: 7px 5px 2px rgba(255, 145, 0, 0.711);
}

.train {
    background-color: #1eff00a5;
    box-shadow: 7px 5px 2px rgba(255, 145, 0, 0.711);
}

.quiz {
    background-color: #e1ffb6;
    box-shadow: 7px 5px 2px rgba(255, 145, 0, 0.711);
}

.division {
    margin: .5rem;
    background-color: rgb(255, 255, 75);
    box-shadow: 7px 5px 2px rgba(255, 138, 60, 0.737);
}

.multiplication {
    background-color: rgb(21, 255, 255);
    box-shadow: 7px 5px 2px rgba(60, 141, 255, 0.737);
}

.subtraction {
    background-color: rgba(255, 69, 252, 0.728);
    box-shadow: 7px 5px 2px rgba(255, 0, 242, 0.721);
}

.fractions {
    background-color: rgba(71, 123, 255, 0.728);
    box-shadow: 7px 5px 2px rgba(7, 77, 255, 0.728);
}

.social-media-title {
    font-family: sans-serif;
    font-weight: normal;
    font-size: 25px;
    letter-spacing: 4px;
    padding: 20px 0 10px;
    color: #007cc4;
    text-align: center;

}

.Social-media {
    display: flex;
    justify-content: center;
}

.social-media-icon {
    display: flex;
    background: #fff;
    height: 45px;
    width: 45px;
    margin: 0 15px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 6px 6px 10px -1px rgba(0, 124, 196, 0.15),
        -6px -6px 10px -1px rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 124, 196, 0);
    transition: transform 0.5s
}

.social-media-icon i {
    font-size: 50px;
    color: #777;
    transition: transform 0.5s;
}

.social-media-icon:hover {
    box-shadow: inset 4px 4px 6px -2px rgba(0, 0, 0, 0.2),
        inset -4px -4px 6px -1px rgba(255, 255, 255, 0.7),
        -0.5px -0.5px 0px -1px rgba(255, 255, 255, 1),
        0.5px 0.5px 0px rgba(0, 0, 0, 0.15),
        0px 12px 10px -10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 124, 196, 0.1);
    transform: translateY(2px);
}

.social-media-icon:hover i {
    transform: scale(0.90);
}

.social-media-icon:hover .fa-pinterest {
    color: #ff1414;
}

.social-media-icon:hover .fa-twitter {
    color: #00acee;
}


.btn-container {
    display: flex;
    flex-direction: column;
}

.board-title {
    text-align: center;
    color: rgb(255, 7, 7);
    font-size: 1.5rem;
    margin: 1rem;
    text-shadow: 0px 0px 7px green;
    font-weight: bold;
}

.row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin: 0 auto;
    margin-top: 4rem;
    max-width: 1440px;
}

.margin {
    margin: 2rem 0;
}

.img-container {
    display: flex;
    justify-content: center;
    width: 50%;
    align-items: center;
    background-color: rgba(250, 255, 250, 0.7);
    box-shadow: inset 0px 0px 7px rgb(131, 101, 17);
    border-radius: 10px;
    padding: .25rem;
    margin: .25rem;
}

.button {
    text-decoration: none;
    text-align: center;
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 1px;
    background-color: #0E2F77;
    color: white;
    border: 2px solid #4CAF50;
    border-radius: 10px;
    padding: 16px 32px;
    margin: 4px 2px 1rem 2px;
    -webkit-transition-duration: 0.2s;
    /* Safari */
    transition-duration: 0.2s;
    cursor: pointer;
    margin-top: auto;
    align-self: center;
    box-shadow: 0px 0px 10px grey;
}

.button:hover {
    background-color: rgb(255, 255, 255);
    color: #4CAF50;
    transform: scale(1.1);
}

.texts {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    width: 50%;
}

.row #column1,
.row #column2,
.row #column3,
.row #column0 {
    width: 80%;
    padding: 10px 0;
    height: fit-content;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    box-shadow: 5px 5px 5px grey;
    gap: 7px;
}

.row #column0 {
    background-color: rgba(77, 255, 70, 0.7);
}

.row #column1 {
    background-color: rgba(247, 100, 250, 0.5);
}

.row #column2 {
    background-color: rgba(0, 30, 255, 0.42);
}

.contact {
    margin: 1rem auto;
    border-radius: 10px;
    background-color: rgb(71, 71, 71);
    line-height: 1.25;
    font-size: 1.5rem;
    display: flex;
    width: 90%;
    height: 400px;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
    color: white;
}

.contact div {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.category {
    font-weight: bold;
    font-size: 1.5rem;
}

.title_paragraph {
    color: rgba(107, 114, 128, 1);
    font-weight: 400;
    text-align: left;
    font-size: 1.25rem;
    line-height: 1.75rem;
    margin-bottom: 2rem;
}

.column_paragraph {
    text-align: left;
    padding: 1rem 0rem;
}

.column_paragraph_for_columns {
    text-align: left;
    max-width: 70ch;
    padding: 1rem;
    padding-left: 0;
    font-size: 1.25rem;
}

.column_paragraph li {
    font-size: 1.125rem;
    line-height: 2rem;
    font-weight: 500;
}

.img_boards {
    max-width: 400px;
    object-fit: cover;
}

.column-title h2 {
    margin: 1rem 0rem;
    font-size: 1.75rem;
    font-weight: 700;
}

.title_paragraph {
    color: rgb(10, 10, 10);
    font-weight: 500;
    text-align: left;
    font-size: 1.5rem;
    line-height: 1.75rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 0px grey;
}

@media (max-width: 1280px) {
    .title_body {
        padding: 0 4rem;
    }

    .title {
        font-size: 3rem;
    }
}

@media (max-width: 1024px) {
    .texts {
        align-items: center;
        width: 90%;
    }

    .button {

        align-self: center;
    }

    .column_paragraph_for_columns {
        text-align: center;
        padding: 1rem 2rem;
    }

    .margin {
        margin: .25rem 0;
    }

    .row #column1,
    .row #column2,
    .row #column3,
    .row #column0 {
        flex-direction: column;
        align-items: center;
    }

    .title_body {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .title {
        font-size: 2.25rem;
        padding: 0;
        line-height: 2.5rem;
    }

    .title_button div p {
        font-size: 1rem;
        line-height: 1.5rem;
    }
}

@media (max-width: 767px) {
    .title_body {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .title_head {
        flex-direction: column;
        align-items: center;
    }

    .title {
        text-align: center;
        font-size: 3rem;
        line-height: 1;
    }

    .title_button {
        padding: 0;
    }

    .title_paragraph {
        text-align: center;
    }

    .title_btn {
        justify-content: center;
    }

    .kids_avatar {
        justify-content: center;
        background-position: center bottom;
        margin-top: 4rem;
    }

    .kids_img {
        width: 50%;
    }
}

@media all and (max-width: 766px) {
    .title_body {
        padding: 0 1.25rem;
    }

    .container_card {
        margin-top: 2rem;
    }

    .paragraph_title {
        margin: 1rem 0;
        font-size: 1.25rem;
        text-align: center;
        padding: 0 1rem;
    }

    .paragraph_question {
        font-size: 1.125rem;
        padding: 0 1rem;
    }

    #welcome p {
        padding: 0 1rem;
    }

    .paragraph_instruction {
        font-size: 1rem;
    }

    .card_section {
        width: 100%;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .question {
        font-size: 1.125rem;
    }
}

@media (max-width: 650px) {
    .title {
        font-size: 2.25rem;
        line-height: 2.5rem;
        font-weight: 400;
        letter-spacing: -0.025rem;
    }

    .maxcontent {
        width: 100%;
    }
}

@media all and (max-width: 475px) {
    .contact {
        font-size: 1.25rem;
        width: auto;
        padding: .5rem;
    }

    .button {
        padding: 5px 16px;
    }

    .column-title h2 {
        font-size: 1.25rem;
    }

    .kids_img {
        width: auto;
    }

    .card_section {
        height: 270px
    }

    .img_border {
        margin: 1rem 0;
    }

    .column_paragraph_for_columns {

        font-size: 1rem;
    }

    .img-container {
        width: 100%;
    }
}