/* Styles for the actions template */

.actions-container {
    margin: 0 auto;
    max-width: 60rem;
    padding: 1rem 0;
    align-content: center;
}

.action-example {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0;
    opacity: 0;
    transform: translateX(0);
    transition: opacity 1s ease, transform 1s ease;
}

.action-example.image-left {
    flex-direction: row;
    gap: 2rem;
    text-align: left;
}

.action-example.image-right {
    flex-direction: row-reverse;
    gap: 2rem;
    text-align: right;
}

.action-example.in-view {
    opacity: 1;
}

.action-example.image-left.in-view {
    transform: translateX(0);
    animation: slideFromLeft 1s ease forwards;
}

.action-example.image-right.in-view {
    transform: translateX(0);
    animation: slideFromRight 1s ease forwards;
}

.action-example img {
    width: 500px;
    height: auto;
    margin: 0;
    border-radius: 5px;
}

.action-text {
    flex: 1;
    font-family: Lato, Calibri, sans-serif;
    text-align: justify;
}

.action-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.6rem;
    font-weight: bold;
    font-family: "Poppins", Lato, Calibri, sans-serif;
}

.action-text p {
    margin: 0;
    font-size: 1.2rem;
    font-family: "Lato", Calibri, sans-serif;
    line-height: 1.9rem;
}

.action-text ul {
    padding-left: 3rem;
    list-style: none;
}

.action-text li {
    position: relative;
    margin-bottom: 0.5rem;
}

.action-text li::before {
    content: '\25B6';
    color: darkgreen;
    position: absolute;
    left: -1.5rem;
    font-size: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.green-text {
    color: darkgreen;
    transition: color 0.3s ease-in-out;
}

.reserves-link {
    color: darkgreen;
    text-decoration: underline;
    transition: color 0.3s ease-in-out;
}

.green-text:hover, .reserves-link:hover {
    color: #034903;
    cursor: pointer;
}


@keyframes slideFromLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideFromRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 1230px) {
    .action-example.image-left {
        gap: 1rem;
    }

    .action-example.image-right {
        gap: 1rem;
    }
}

@media (max-width: 1030px) {
    .main-content {
        padding: 1rem;
    }

    .actions-container {
        max-width: 90%;
        padding: 0;
    }

    .action-example {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .action-example.image-left,
    .action-example.image-right {
        flex-direction: column;
    }

    .action-example img {
        width: 100%;
        max-width: 500px;
        margin: 0;
    }

    .action-text {
        text-align: justify;
        max-width: 500px;
        margin: 0 auto 1rem;
    }

    .action-text ul {
        text-align: left;
        padding-left: 1.5rem;
    }

    .action-text li {
        padding-left: 1.5rem;
    }

    .action-text li::before {
        left: 0;
    }
}

@media (max-width: 745px) {
    .main-content {
        padding: 1rem;
    }

    .actions-container {
        max-width: 85%;
        padding: 0;
    }

    .action-example {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .action-example.image-left,
    .action-example.image-right {
        flex-direction: column;
    }

    .action-example img {
        width: 100%;
        max-width: 350px;
        margin: 0;
    }

    .action-text {
        text-align: justify;
        max-width: 350px;
        margin: 0 auto .5rem;
    }

    .action-text ul {
        padding-left: 1.5rem;
        font-size: 0.9rem;
    }

    .action-text h3 {
        font-size: 1.5rem;
    }

    .action-text p {
        font-size: 1rem;
        line-height: 1.6rem;
    }
}