/*TEXT SECTION */
.text-section {
    width: 100%;
    min-height: 100px;
    max-height: 600px;
    display: flex;
    justify-content: space-evenly;
    align-items: stretch;
    background-color: white;
}

.text-subframe {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.text-subframe h2 {
    width: 100%;
    font-family: PlexSansSemiBold;
    margin: 40px 0 30px;
    font-size: 24px;
}

.text-subframe p, .text-subframe li {
    width: 100%;
    text-align: justify;
    font-size: 20px;
    margin-bottom: 40px;
}

.text-subframe ul {
    margin-top: 40px;
}

.highlight-subtle {
    color: rgb(145, 29, 0);
}

@media only screen and (max-width: 530px) {
    .text-section {
        max-height: 1500px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .text-subframe {
        width: 80%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .text-subframe h2 {
        font-size: 22px;
    }
    
    .text-subframe p, .text-subframe li {
        font-size: 18px;
    }
}

/*PRODUCTS*/
#products-mainframe {
    width: 100%;
    min-height: 800px;
    max-height: 2500px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    background-color: rgb(145, 145, 145);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    backdrop-filter: blur(50px);
}

.products-innerframe {
    max-width: 90%;
    margin: 30px 0;
    /*background-color: rgb(248, 248, 248);*/
    display: flex;
    align-self: start;
    justify-content: center;
    flex-wrap: wrap;
}

.product-frame {
    position: relative;
    max-width: 400px;
    min-height: 300px;
    max-height: 420px;
    margin: 15px;
    background-color: rgb(230, 230, 230);
    outline: 1px solid rgb(165, 165, 165);
    cursor: pointer;
}

.product-image {
    width: 100%;
    height: 100%;
    
}

.product-titleframe {
    display: flex;
    align-items: center;
    position: absolute;
    bottom: 0;
    width: 100%;
    min-height: 80px;
    background-color: rgb(230, 230, 230,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-family: PlexSansSemiBold;
    animation-duration: 0.1s;
    animation-fill-mode: forwards;
}

.product-titleframe h2{
    font-family: inherit;
    font-size: 24px;
    margin-left: 25px;
}

@keyframes frameHover {
    0% {
        background-color: rgb(230, 230, 230,0.5);
        font-family: PlexSansSemiBold;
        min-height: 80px;
    }

    50% {
        
    }

    100% {
        background-color: rgb(230, 230, 230,0.9);
        font-family: PlexSansBold;
        min-height: 100px;
    }
}

@keyframes frameHoverMobile {
    0% {
        background-color: rgb(230, 230, 230,0.5);
        font-family: PlexSansSemiBold;
        min-height: 60px;
    }

    50% {
        
    }

    100% {
        background-color: rgb(230, 230, 230,0.9);
        font-family: PlexSansBold;
        min-height: 80px;
    }
}

.product-frame:hover {
    outline: 2px solid white
}

.product-frame:hover .product-titleframe {
    animation-name: frameHover;
}

@media only screen and (max-width: 530px) {
    .products-innerframe {
        max-width: 100%;
        margin: 30px 0;
        display: flex;
        align-self: start;
        justify-content: center;
        flex-wrap: wrap;
    }

    .product-frame {
        max-width: 300px;
        max-height: 320px;
    }

    .product-titleframe {
        min-height: 60px;
    }
    
    .product-titleframe h2{
        font-family: inherit;
        font-size: 22px;
        margin-left: 25px;
    }

    .product-frame:hover .product-titleframe {
        animation-name: frameHoverMobile;
    }
}

/*MODAL FRAME*/
#modal-mainframe {
    position: fixed;
    left: 0;
    top: 0;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 7;
}

#modal-frame {
    position: relative;
    width: 1000px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    outline: 1px solid rgb(165, 165, 165);
}

#modal-imageframe {
    width: 65%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

#modal-image{
    max-width: 90%;
    height: 100%;
    clip-path: polygon(0 0, 84% 0, 100% 100%, 0% 100%);
}

#modal-description {
    width: 35%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

#modal-description h2 {
    width: 100%;
    font-family: PlexSansSemiBold;
    margin: 40px 0 20px;
    font-size: 24px;
}

#modal-description p:not(#modal-close){
    width: 85%;
    font-size: 18px;
    text-align: justify;
    margin-bottom: 40px;
}

#modal-description li {
    list-style-position: inside;
}

#modal-close {
    position: absolute;
    top: 5px;
    right: 15px;
    color: #aaaaaa;
    font-size: 28px;
    font-weight: bold;
}
  
#modal-close:hover, #modal-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 530px) {
    #modal-frame {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    #modal-imageframe { 
        width: 100%;
        height: 40%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #modal-image {
        max-width: none;
        width: 100%;
        height: 100%;
        clip-path: none
    }

    #modal-description { 
        width: 100%;
        height: 60%;
        align-items: center;
    }

    #modal-description h2 {
        width: 80%;
        font-size: 22px;
    }

    #modal-description p:not(#modal-close){
        width: 80%;
        font-size: 16px;
    }
}