.products {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.product .moreinfo:hover {
    color: wheat;
    background-color: #09417a;
}

.product {
    width: 90%;
    max-width: 380px;
    min-width: 310px;

    height: 70%;
    max-height: 500px;
    min-height: 500px;

    background-color: #1E90FF;
    display: flex;
    flex-direction: column;
    margin: auto;
    margin-top: 50px;

    border-radius: 40px;
}

.product img {
    height: 80%;
    width: 95%;

    min-height: 375px;
    max-height: 375px;

    display: flex;
    margin: auto;

    margin-bottom: 0px;

    border-top-left-radius: 30px;
    border-top-right-radius: 30px;

    border: 6px #0066CC solid;
    border-bottom: 0;
}

.product h2 {
    font-size: clamp(30px, 30%, 50px);
    margin: auto;
}

.product .moreinfo {
    width: 95%;
    display: flex;
    margin: auto;

    background-color: #0066CC;
    color: #f5f5f5;
    font-size: 35px;
    
    justify-content: center;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    
    border: 0;
    margin-top: 0;
    cursor: pointer;
}

@media only screen and (min-width: 500px) {
    .product {
        min-width: 370px;
        max-width: 420px;

        min-height: 550px;
        max-height: 550px;
    }
    .product .moreinfo {
        font-size: 40px;
    }
    .product h2 {
        font-size: clamp(40px, 30%, 50px);
    }
}

@media only screen and (min-width: 1260px) {
    .products {
        max-width: 1250px;
        margin: auto;
    }
    .product {
        min-width: 420px;
        max-width: 460px;
    }
}

@media only screen and (min-width: 1760px) {
    .products {
        max-width: unset;
    }
    .product {
        min-width: 370px;
        max-width: 420px;

        min-height: 550px;
        max-height: 550px;
    }
}


/* logic box on top */
.dispf {
    display: flex !important;
}
.mainbox {
    position: absolute;
    top: 20%;
    left: 50%;

    transform: translateX(-50%);
    background-color: #007bff;
    color: white;

    font-size: 24px;
    font-weight: bold;
    display: none;

    border-radius: 15px;
    width: 90%;
    max-width: 1400px;

    height: 600px;
    min-height: 600px;

    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    flex-direction: row;

    transition: opacity 0.3s ease;
}

.mainbox.dispf {
    opacity: 1;
    pointer-events: auto;
}
/* left */

.leftsidd {
    width: 50%;
    display: flex;
}
.leftsidd img {
    width: 85%;
    margin: auto;
    
    border-radius: 20px;
    border: #0066CC 6px solid;
}

/* right */
.rightsidd {
    width: 50%;

    display: flex;
}
.rightsidd .contentb {
    width: 85%;
    margin: auto;
    height: 85%;
}

.rightsidd h2 {
    color: rgb(255, 255, 255);
    font-size: 50px;
    margin: auto;
}

.rightsidd .descriptionb {
    background-color: #0066CC;
    height: fit-content;
    width: fit-content;

    padding: 10px;
    border-radius: 20px;
    margin-top: 20px;

    margin-bottom: 20px;
    color: rgb(255, 255, 255);
    font-size: clamp(20px, 20vw, 25px);
}

@media only screen and (max-width: 1470px) {
    .rightsidd .descriptionb {
        font-size: 23px;
    }
}

@media only screen and (max-width: 1270px) {
    .rightsidd .descriptionb {
        font-size: 20px;
    }
    .mainbox {
        height: 550px;
        min-height: 550px;
    }
}

@media only screen and (max-width: 1040px) {
    .mainbox {
        flex-direction: column;
        height: fit-content;
        min-height: fit-content;
        padding: 20px;
    }
    .leftsidd {
        width: 100%;
    }
    .rightsidd {
        width: 100%;
    }
}