@font-face {
    font-family: vazir;
    font-style: normal;
    font-weight: 100;
    src: url("fonts/Vazir-Thin.eot") format("eot"), url("fonts/Vazir-Thin.woff") format("woff"), url("fonts/Vazir-Thin.woff2") format("woff2"), url("fonts/Vazir-Thin.ttf") format("ttf");
}

.croped {
    position: relative;
}

.croped:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    border-top: 80px solid #141E30;
    border-left: 80px solid #1D2739;
    width: 0;
}

.croped::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    border-top: 80px solid #1D2739;
    border-left: 80px solid #141E30;
    width: 0;
}


/* styles for the first container with it's overlay */

.firstCs {
    display: flex;
    align-items: center;
    margin-top: 5dvh;
    margin-bottom: 10dvh;
    padding: 5px;
}

.container1 {
    position: relative;
    display: inline-block;
    width: 70%;
    border-radius: 30px;
    margin: auto;
    overflow: hidden;
}

.image1 {
    display: block;
    width: 100%;
}

.overlay1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #232427;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.text1 {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    opacity: 1;
    transition: opacity 0.3s ease;
    width: 100%;
}

.text1 p {
    font-size: 18px;
    margin-top: 25px;
}

@media screen and (max-width: 820px) {
    .container1 {
        width: 90%;
    }
}

@media screen and (max-width: 650px) {
    .text1 {
        font-size: 24px;
    }
    .text1 p {
        font-size: 15px;
    }
}

@media screen and (max-width: 500px) {
    .container1 {
        width: 97%;
    }
    .text1 {
        font-size: 18px;
    }
    .text1 p {
        font-size: 10px;
    }
}