@import url("main.css");

/*
    printed-cards.css

    Description: This css file is used for the printed-cards.html
    file, including the background, letters and containers styles.
*/

.printed-cards {
    padding: 25px;
}

.printed-cards__section {
    display: flex;
    flex-direction: column;
    gap: 50px 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    border-radius: 30px;
    padding: 25px;
}

.printed-cards__main-content {
    display: flex;
    flex-direction: row;
    gap: 15px 50px;
}

.printed-cards__column,
.printed-cards__article {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px 0;
    width: 100%;
}

.printed-cards__article *,
.printed-cards__footer * {
    color: var(--color-dark);
    font-weight: 500;
    text-transform: none;
}

.printed-cards__article strong,
.printed-cards__footer strong {
    font-weight: 700;
}

.printed-cards__subtitle {
    color: var(--color-primary);
    font-size: 2rem;
    font-weight: bold;
    text-align: left;
    text-transform: uppercase;
}

.printed-cards__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.printed-cards__text--with-image,
.printed-cards__footer-title-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

ol,
ul {
    padding-left: 25px;
}

ol > li,
ul > li {
    padding-left: 15px;
}

.printed-cards__text--bold {
    font-weight: 700;
}

/* IMAGE */

.printed-cards__image {
    width: 50%;
    max-width: 400px;
}

.printed-cards__image--small {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.printed-cards__footer-title-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transform: rotate(-15deg);
}

/* FOOTER */

.printed-cards__footer {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: var(--color-yellow);
    padding: 25px;
    border-radius: 30px;
}

.printed-cards__footer-image {
    position: absolute;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.printed-cards__footer-phrase {
    position: absolute;
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--color-orange);
    color: var(--color-yellow);
    font-weight: 700;
    text-align: center;
    right: 0;
    transform: rotate(-2.5deg);
    top: 0;
    z-index: 1;
}

.printed-cards__footer-phrase::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    transform: translate(-2.5%, -10%);
    z-index: -1;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
    .printed-cards__section {
        gap: 25px 0;
    }

    .printed-cards__main-content {
        flex-direction: column;
    }

    .printed-cards__footer-phrase {
        top: 100%;
        font-size: 0.8rem;
        transform: rotate(-2.5deg) translate(0, -90%);
    }

    .printed-cards__footer-phrase::before {
        transform: translate(-3.5%, -7.5%);
    }
}

@media (max-width: 640px) {
    .printed-cards__article *,
    .printed-cards__footer * {
        font-size: 0.9rem;
    }

    .printed-cards__subtitle {
        font-size: 1.75rem;
    }

    .printed-cards__footer-phrase {
        font-size: 0.7rem;
    }
}

@media (max-width: 580px) {
    .printed-cards__image {
        width: 75%;
    }

    .printed-cards__footer-phrase::before {
        transform: translate(-4%, -7.5%);
    }
}

@media (max-width: 500px) {
    .printed-cards__article *,
    .printed-cards__footer * {
        font-size: 0.8rem;
    }

    .printed-cards__subtitle {
        font-size: 1.5rem;
    }

    .printed-cards__footer-phrase {
        font-size: 0.6rem;
    }

    .printed-cards__footer-phrase::before {
        transform: translate(-4%, -7.5%);
    }
}

@media (max-width: 450px) {
    .printed-cards__subtitle {
        font-size: 1.35rem;
    }
}

@media (max-width: 400px) {
    .printed-cards__image {
        width: 100%;
    }

    .printed-cards__footer-phrase {
        font-size: 0.5rem;
    }

    .printed-cards__footer-phrase::before {
        transform: translate(-5.5%, -10%);
    }
}

@media (max-width: 340px) {
    .printed-cards__footer-phrase::before {
        transform: translate(-12.5%, -10%);
    }
}
