.upper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.e-first {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 50%;
}

.e-first h1 {
    font-size: 48px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 70px 20px;
    opacity: 0;
    transform: translateX(-100px);
    animation: fadeSlideUp 1.5s ease-out forwards;
    animation-delay: 0.5s;
}




.e-first h1 span {
    color: var(--main);
    font-size: 48px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.e-first h3 {
    font-size: 18px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0px 20px;
    opacity: 0;
    transform: translateX(-100px);
    animation: fadeSlideUp 1.5s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.join {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 330px;
    margin-top: 85px;
    opacity: 0;
    transform: translateY(100px);
    animation: fadeSlideUps 1.5s ease-out forwards;
    animation-delay: 0.5s;
}



.join div {
    padding: 12px;
}

.e-second {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 50%;
}

.card {
    display: none;
    margin-left: 100px;
    background-color: var(--main);
    width: 360px;
    height: 300px;
    border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
    position: relative;

}

.A-1 {
    opacity: 0;
    animation: fadeSlideUps 1.5s ease-in forwards;
    transform: translateY(100px);

}

@keyframes fadeSlideUps {
    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

.A-2 {
    opacity: 0;
    animation: fadeSlideUpE 1.5s ease-in forwards;
    transform: translateX(100px);

}

@keyframes fadeSlideUpE {
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.A-3 {
    opacity: 0;
    animation: fadeSlideUpe 1.5s ease-in forwards;
    transform: translateY(-100px);

}

@keyframes fadeSlideUpe {
    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

.card::after {
    content: '';
    background-color: transparent;
    width: 360px;
    height: 300px;
    border: 2px solid var(--main);
    border-radius: 80% 40% 40% 80% / 70% 50% 70% 50%;
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: -1;
    transform: rotate(45deg);


}


.card h1 {
    color: var(--back);
    margin: 115px;
    font-size: 48px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

}

.A-2 h1 {
    color: var(--back);
    margin: 86px;
    font-size: 48px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.A-3 h1 {
    color: var(--back);
    margin: 115px;
    margin-left: 45px;
    font-size: 48px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.m-card {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

.subject h2 {
    color: var(--shadow);
    font-size: 28px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 20px;
    margin-top: 0px;
    margin-left: 220px;
    padding-right: 390px;
    animation: image-appears both;
    animation-timeline: view();
    animation-range: entry 20% cover 100vh;
}


@keyframes image-appears {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}

.subject h2 span {
    color: var(--main);
    font-size: 28px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.s-card {
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
    border-top-left-radius: 50px;
    border-bottom-right-radius: 50px;
    width: 330px;
    height: 530px;
    margin: 15px;
    position: relative;
    animation: fadeSlideUpw both;
    animation-timeline: view();
    animation-range: entry 10% cover 100vh;

}

@keyframes fadeSlideUpw {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

.s-card:hover {
    height: 532px;
    box-shadow: 0px 0px 10px var(--main);
}

.s-card img {
    width: 320px;
    height: 220px;
    margin: 5px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    border-top-left-radius: 50px;
}

.s-card h3 {
    font-size: 26px;
    text-align: left;
    color: var(--main);
    padding: 5px;
    font-weight: bolder;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.s-card h4 {
    font-size: 20px;
    text-align: left;
    font-weight: 500;
    padding: 5px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.s-card p {
    font-size: 16px;
    text-align: left;
    padding: 5px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.s-card div {
    margin: 10px 10px;
}

.fer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: true both;
    animation-timeline: view();
    animation-range: entry 10% cover 100vh;
}

@keyframes true {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.fer h2 {
    margin-top: 15px;
    margin-bottom: 0px;
    color: var(--back);
    padding: 20px;
    background-color: var(--main);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.free {
    height: 70vh;
    width: 80vw;
    margin-top: 0px;
    margin-bottom: 25px;
    border-bottom-left-radius: 50px;
    border-top-right-radius: 50px;
    border: 1px solid var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

.sbox {
    width: 60vw;
    height: 32vw;
    border-bottom-left-radius: 50px;
    position: relative;
}

.sbox h3 {
    margin: 20px;
    color: var(--main);
    font-size: 28px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.sbox h4 {
    margin: 20px;
    font-weight: 500;
    font-size: 22px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.sbox ul li {
    margin: 20px;
    font-weight: 500;
    font-size: 18px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.sbox ul li span {
    color: var(--main);
}

.sbox ul {
    list-style: none;
}

.sbox div {
    position: absolute;
    bottom: 20px;
    left: 200px;
}

.ssbox {
    width: 60vw;
    height: 32.5vw;
    background-image: url(accessries/images\ \(1\).png);
    background-repeat: no-repeat;
    background-position: center;
    object-fit: contain;
    background-size: cover;
    fill-opacity: 100%;
    border-top-right-radius: 48px;
}

.okay {
    margin: 10px;
    padding: 10px;
    height: auto;
}

.okay h2 {
    margin: 15px;
    text-decoration: underline;
    font-size: 48px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.headings {
    margin-left: 700px;
}

.heading h3 {
    margin: 20px;
    color: var(--shadow);
    font-size: 28px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.box-faqs {
    width: 50vw;
    height: 10vh;
    background-color: var(--main);
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    border-radius: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 20px;

}

.box-faqs:hover {
    padding: 0 13px;
}

.box-faqs h4 {
    font-family: cursive;
    font-size: 20px;
    color: var(--back);
}

.box2-faqs {
    width: 50vw;
    height: 15vh;
    background-color: var(--main);
    color: var(--back);
    margin: 0px;
    display: none;
    align-items: center;
    border: 1px solid var(--back);
    padding: 0 10px;
    border-radius: 15px;
    font-family: cursive;
    font-size: 18px;

}

.dfg {
    background-color: #6e42c12d;
}




@media (max-width: 992px) {

    .upper {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .e-first,
    .e-second {
        width: 100%;
    }

    .e-first h1 {
        font-size: 36px;
        margin: 40px 10px;
    }

    .e-first h3 {
        font-size: 16px;
        margin: 10px;
    }

    .join {
        margin-right: 0;
        margin-top: 40px;
    }

    .card {
        margin-left: 0;
        width: 300px;
        height: 250px;
    }

    .card h1,
    .A-2 h1,
    .A-3 h1 {
        font-size: 36px;
        margin: 60px;
    }

    .subject h2 {
        margin-left: 0;
        padding-right: 0;
        text-align: center;
    }

    .m-card {
        flex-direction: column;
        align-items: center;
    }

    .s-card {
        width: 90%;
        height:
            auto;
    }

    .s-card img {
        width: 100%;
        height: auto;
    }

    .free {
        flex-direction: column-reverse;
        width: 95vw;
        height: auto;
        padding-bottom: 20px;
    }

    .ssbox {
        width: 95vw;
        height: 70.5vw;
    }

    .box {
        height: auto;
    }

    .sbox div {
        bottom: -18px;
        left: 65px;
    }

    .e-second {
        display: none;
    }

    .card h1,
    .A-2 h1,
    .A-3 h1 {
        margin: 65px 10px;
    }

    .sbox {
        width: 90%;
        height: auto;
    }

    .boofatofpe {
        grid-template-columns: 1fr;
    }

    .headings {
        margin-left: 150px;
    }

    .box-2 {
        height: 185vh;
    }

    .teopfope {
        width: 380px;
        height: 270px;
    }

    .teopfope img {
        width: 135px;
    }

    .teopfope h2 {
        font-size: 1.5rem;
    }

    .teopfope p {
        font-size: 1rem;
    }

    .box-faqs {
        width: 52vw;
        height: 8vh;
    }

    .box-faqs h4 {
        font-size: 13px;
    }

    .icon {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 760px) {
    .box-2 {
        height: 193vh;
    }
}

/* Small Phones (max-width: 768px) */
@media (max-width: 768px) {

    .e-first h1 {
        font-size: 32px;
    }

    .e-first h1 span {
        font-size: 32px;
    }

    .e-first h3 {
        font-size: 15px;
    }

    .join {
        flex-direction: column;
    }

    .card {
        width: 260px;
        height: 220px;
    }

    .card::after {
        width: 260px;
        height: 220px;
    }

    .card h1,
    .A-2 h1,
    .A-3 h1 {
        font-size: 30px;
        margin: 50px;
    }

    .s-card {
        width: 95%;
        height: auto;
        margin: 25px;
    }

    .s-card div {
        bottom: 72px;
    }

    .subject h2 {
        font-size: 22px;
    }

    .teopfope {
        width: 310px;
        height: 240px;
    }

    .teopfope img {
        width: 105px;
    }

    .teopfope h2 {
        font-size: 1.2rem;
        margin: 10px;
    }

    .headings {
        margin-left: 110px;
    }

    .box-2 {
        height: auto;
    }

    .ssbox {
        width: 90vw;
    }

    .box {
        height: auto;
    }

    .box {
        margin: 0px;
        padding: 0px;
    }

}

/* Extra Small Phones (max-width: 480px) */
@media (max-width: 480px) {

    .e-first h1 {
        font-size: 26px;
    }

    .e-first h1 span {
        font-size: 26px;
    }

    .e-first h3 {
        font-size: 14px;
    }

    .card {
        width: 220px;
        height: 190px;
    }

    .card::after {
        width: 220px;
        height: 190px;
    }

    .card h1,
    .A-2 h1,
    .A-3 h1 {
        font-size: 26px;
        margin: 40px;
    }

    .s-card h3 {
        font-size: 22px;
    }

    .s-card h4 {
        font-size: 18px;
    }

    .s-card p {
        font-size: 14px;
    }

    .fer h2 {
        font-size: 18px;
    }

    .free {
        width: 90vw;
        height: auto;
    }

    .sbox h3 {
        font-size: 22px;
    }


    .sbox h4 {
        font-size: 18px;
    }
}