body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
}

#titlu {
    grid-column: 1 / 3;
    text-align: center;
    margin-bottom: 1rem;
}

#catalog {
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

#back_but {
    grid-column: 1 / 3;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

#back_but button {
    display: flex;
    justify-content: center;
    align-items: center;
}


.artboard {
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    height: 100%;
    position: relative;
}

@media (max-width: 37.5em) {
    .artboard {
        padding: 1rem;
    }
}

@media (max-width: 1075px) {
    body {
        display: grid;
        grid-template-columns: 1fr;
    }

    #catalog {
        flex-direction: column;
    }

    #catalog .artboard {
        margin: 0;
    }
    /* .card__side{
        height: 33rem !important;
    } */
    .card__side--front {
        display: none;
    }
    .card_catalog .card__side--back {
        transform: rotateY(0);
    }
    
    .card_catalog .card__side--front {
        transform: rotateY(-180deg);
    }

    .card__details {
        gap: 2rem;
        font-size: 1.4rem;
    }

    .card__details button {
        font-size: 1.4rem;
    }
}

@media (max-width: 550px) {
    .card__heading-span {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 400px) {

    .card__heading-span {
        font-size: 2rem !important;
    }

    .card_catalog {
        margin: 0% !important;
    }

    body {
        padding: 0 !important;
        margin-bottom: 1rem !important;
    }

}

.card_catalog {
    flex: initial;
    position: relative;
    height: 30rem;
    width: 25rem;
    perspective: 200rem;
    margin: 2rem;
}

.card__side {
    height: 30rem;

    transition: all 0.8s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    backface-visibility: hidden;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.15);
}


#card1 {
    background-image: url("../IMAGES/plantagro/primavara_2024.png");
    background-size: cover;

}

#card2 {
    background-image: url("../IMAGES/plantagro/toamna_2025.png");
    background-size: cover;
}

#modal {
    margin-left: 10rem;
}

#modal2 {
    margin-right: 10rem;
}

.card__side--back {
    background-color: #fff;
    transform: rotateY(180deg);
}

.card_catalog:hover .card__side--back {
    transform: rotateY(0);
}

.card_catalog:hover .card__side--front {
    transform: rotateY(-180deg);
}

.card__theme {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    top: 54%;
    width: 90%;
    text-align: center;
}

.card__theme-box {
    color: #fff;
    margin-bottom: 8rem;
}

.card__subject {
    font-family: "Inconsolata", monospace;
    letter-spacing: 0.8rem;
    font-size: 1.6rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.card__title {
    font-family: "VT323", monospace;
    text-transform: uppercase;
    font-size: 6rem;
    font-weight: 100;
}

.card__cover {
    position: relative;
    background-size: cover;
    height: 14rem;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    background-image: linear-gradient(to top right, #009c45, #ffd300);
}

.card__heading {
    text-align: center;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
}

.card__heading-span {
    font-family: 'Times New Roman', Times, serif;
    font-size: 3.2rem;
    font-weight: 300;
    text-transform: uppercase;
    color: #fff;
}

.card__details {
    font-family: 'Times New Roman', Times, serif;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically if desired */
}



@media only screen and (max-width: 1075px),
only screen and (hover: none) {
    .card_catalog {
        height: auto;
        border-radius: 3px;
        background-color: #fff;
        box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.15);
    }

    .card__side {
        height: auto;
        position: relative;
        box-shadow: none;
    }

    .card__side--front {
        clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
    }

    .card__side--back {
        transform: rotateY(0);
    }

    .card_catalog:hover .card__side--front {
        transform: rotateY(0);
    }



    .card__theme {
        position: relative;
        top: 0;
        left: 0;
        transform: translate(0);
        width: 100%;
        padding: 5rem 4rem 1.5rem 4rem;
        text-align: right;
    }

    .card__theme-box {
        margin-bottom: 1.5rem;
    }

    .card__title {
        font-size: 4rem;
    }
}

#catalog {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0;
    width: 100%;
}

#catalog .card_catalog {
    flex: 1;
}

.buton_catalog {
    display: inline-block;
    outline: 0;
    cursor: pointer;
    padding: 5px 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    vertical-align: middle;
    border: 1px solid;
    border-radius: 6px;
    color: #ffffff;
    background-color: #2ea44f;
    border-color: #1b1f2326;
    box-shadow: rgba(27, 31, 35, 0.04) 0px 1px 0px 0px, rgba(255, 255, 255, 0.25) 0px 1px 0px 0px inset;
    transition: 0.2s cubic-bezier(0.3, 0, 0.5, 1);
    transition-property: color, background-color, border-color;


}

.buton_catalog :hover {
    background-color: #2c974b;
    border-color: #1b1f2326;
    transition-duration: 0.1s;
}

/* button for coming back */

#back_but button {
    width: 200px;
    padding: 20px 30px;
    position: relative;
    display: block;
    text-decoration: none;
    overflow: hidden;
    background: none;
    border: none;
    color: white;
    font-size: 15px;
    letter-spacing: 8px;
    cursor: pointer;

}

#back_but button span {
    font-family: 'Times New Roman', Times, serif;
}

#titlu {
    font-family: 'Times New Roman', Times, serif;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f7f7f7, #eaeaea);
    border: 2px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#titlu .highlight {
    color: #d9534f;
    font-style: italic;
}

#titlu .offer {
    font-weight: normal;
    display: inline-block;
    margin: 0 10px;
    background: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

#titlu .offer:hover {
    background: #f5f5f5;
}

#back_but button:hover .wave {
    top: -120px;
}

#back_but button span {
    position: relative;
    z-index: 1;
    color: black;
    font-size: 15px;
    letter-spacing: 8px;
}

#back_but button .wave {
    width: 200px;
    height: 200px;
    background-color: #ffd300;
    box-shadow: inset 0 0 50px rgba(254, 255, 216, 0.5);
    position: absolute;
    left: 0;
    top: -80px;
    transition: 0.4s;
}

#back_but button .wave::before,
#back_but button .wave::after {
    width: 200%;
    height: 200%;
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -75%);
}

#back_but button .wave::before {
    border-radius: 45%;
    background-color: rgba(0, 156, 69, 0.5);
    /* 50% opacity */
    animation: wave 5s linear infinite;
}

#back_but button .wave::after {
    border-radius: 40%;
    background-color: rgba(13, 115, 59, 0.3);
    /* 50% opacity */
    animation: wave 10s linear infinite;
}

@keyframes wave {
    0% {
        transform: translate(-50%, -75%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -75%) rotate(360deg);
    }
}

.touchscreen {
    display: inline;
  }
  
  /* Hide the text on touch devices */
  .touch-device .touchscreen {
    display: none;
  }