.hidden {
    display: none;
}

.image-wrapper.page-load {
    border-bottom: 3px solid white;
}

#page-load:checked ~.invoice-options .blue-invoice {
    display: block !important;
}
#page-load:checked ~.invoice-options .invoice-options-images .blue-button {
    border-bottom: 3px solid white;
}

#page-load:checked ~.invoice-carousel-container .invoice-carousel {
    background: rgb(0, 71, 102);
}

#page-load:checked ~.invoice-carousel-container .invoice-carousel .blue-image {
    animation: enter 0.9s ease-in-out forwards !important;
}

#page-load:checked ~.invoice-carousel-container .invoice-carousel .green-image {
    display: none !important;
}

#page-load:checked ~.invoice-carousel-container .invoice-carousel .yellow-image {
    display: none !important;
}

#page-load:checked ~.invoice-carousel-container .invoice-carousel .orange-image {
    display: none !important;
}

#page-load:checked ~.invoice-options .invoice-options-images .blue-button {
    display: none;
}

#page-load:not(:checked) ~.invoice-options .invoice-options-images .page-load{
    display: none;
}

#invoice-blue:checked ~.invoice-options .blue-invoice {
    display: block !important;
}
#invoice-blue:checked ~.invoice-options .invoice-options-images .blue-button {
    border-bottom: 3px solid white;
}

#invoice-blue:checked ~.invoice-carousel-container .invoice-carousel {
    background: rgb(0, 71, 102);
}

#invoice-blue:checked ~.invoice-carousel-container .invoice-carousel .blue-image {
    animation: enter 0.9s ease-in-out forwards;
}

#invoice-blue:not(:checked) ~.invoice-carousel-container .invoice-carousel .blue-image {
    animation: leave 1.2s ease-in-out forwards;
}

#invoice-green:checked ~.invoice-options .green-invoice {
    display: block !important;
}

#invoice-green:checked ~.invoice-options .invoice-options-images .green-button {
    border-bottom: 3px solid white;
}

#invoice-green:checked ~.invoice-carousel-container .invoice-carousel {
    background: rgb(52, 168, 83);
}

#invoice-green:checked ~.invoice-carousel-container .invoice-carousel .green-image {
    animation: enter 0.9s ease-in-out forwards;
}

#invoice-green:not(:checked) ~.invoice-carousel-container .invoice-carousel .green-image {
    animation: leave 1.2s ease-in-out forwards;
}

#invoice-yellow:checked ~.invoice-options .yellow-invoice {
    display: block !important;
}

#invoice-yellow:checked ~.invoice-options .invoice-options-images .yellow-button {
    border-bottom: 3px solid white;
}

#invoice-yellow:checked ~.invoice-carousel-container .invoice-carousel {
    background: rgb(251, 188, 5);
}

#invoice-yellow:checked ~.invoice-carousel-container .invoice-carousel .yellow-image {
    animation: enter 0.9s ease-in-out forwards;
}

#invoice-yellow:not(:checked) ~.invoice-carousel-container .invoice-carousel .yellow-image {
    animation: leave 1.2s ease-in-out forwards;
}

#invoice-orange:checked ~.invoice-options .orange-invoice {
    display: block !important;
}

#invoice-orange:checked ~.invoice-options .invoice-options-images .orange-button {
    border-bottom: 3px solid white;
}

#invoice-orange:checked ~.invoice-carousel-container .invoice-carousel {
    background: rgb(241, 110, 34);
}

#invoice-orange:checked ~.invoice-carousel-container .invoice-carousel .orange-image {
    animation: enter 0.9s ease-in-out forwards;
}

#invoice-orange:not(:checked) ~.invoice-carousel-container .invoice-carousel .orange-image {
    animation: leave 1.2s ease-in-out forwards;
}

.invoice-section {
    background: linear-gradient(to bottom, #004766, #00293C);
    width: 100%;
    height: fit-content;
    color: #FFFFFF;
}

.invoice-section h2, .invoice-section h3 {
    color: #FFFFFF;
    line-height: 1.1;
}

.invoice-section h2 {
    font-size: 1.85rem;
    margin: 0 0 10px;
}

.invoice-section h3 {
    font-size: 1.57rem;
    margin: -10px 0 10px 0;
}

.invoice-section li {
    padding-bottom: 5px;
}

.invoice-section .invoice-header {
    width: 993px;
    height: fit-content;
    margin: auto;
    padding: 40px 20px 0;
}

.invoice-section .invoice-header p {
    margin: 14px 0;
}

.invoice-section .invoice-content {
    width: 993px;
    height: 510px;
    margin: auto;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.invoice-section .invoice-content .invoice-options {
    width: 53%;
    padding: 0 20px 20px;
}

.invoice-section .invoice-content .invoice-options .invoice-options-images {
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 50px;
}

.invoice-section .invoice-content .invoice-options .invoice-options-images .image-wrapper {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.invoice-section .invoice-content .invoice-options .invoice-options-images .image-wrapper.selected {
    border-bottom: 3px solid white;
}

.invoice-section .invoice-content .invoice-options .invoice-details {
    height: 330px;
}

.invoice-section .invoice-content .invoice-options .invoice-details p {
    margin: 14px 0;
}

.invoice-section .invoice-content .invoice-carousel-container {
    width: 47%;
    height: 117%;
    transform: translateY(-15%);
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.invoice-section .invoice-content .invoice-carousel-container .invoice-carousel {
    position: absolute;
    right: 50px;
    width: 240px;
    margin-top: 220px;
    height: 240px;
    border-radius: 50%;
    transition: background 0.7s ease-in-out;
}

.invoice-section .invoice-content .invoice-carousel-container .new-image {
    bottom: 145px;
    right: 140px;
}

.invoice-section .invoice-content .invoice-carousel-container .invoice-carousel img {
    position: absolute;
    width: 180px;
    height: 200px;
    transform-origin: bottom right;
}

@keyframes enter {
    0% {  transform: rotate(160deg) translateX(-260px) translateY(-50px); visibility: visible;}
    100% { transform: rotate(0) translateX(0) translateY(0); visibility: visible; }
}

@keyframes leave {
    0% { transform: rotate(0) translateX(0) translateY(0); }
    100% { transform: rotate(-90deg) translateX(-200px) translateY(20px); visibility: hidden; }
}

@media (max-width: 992px) {
    .invoice-section h2 {
        font-size: 1.85rem;
    }

    .invoice-section h3 {
        font-size: 1.42rem;
        line-height: 24px;
    }

    .invoice-section .invoice-header {
        width: 320px;
    }

    .invoice-section .invoice-content {
        flex-direction: column;
        width: 320px;
        height: fit-content;
    }

    .invoice-section .invoice-content .invoice-options {
        width: 100%;
        padding-bottom: 0;
    }

    .invoice-section .invoice-content .invoice-options .invoice-options-images {
        width: 320px;
        align-items: flex-start;
        margin-top: 20px;
        gap: 30px;
    }

    .invoice-section .invoice-content .invoice-options .invoice-options-images img {
        width: 45px;
        height: 55px;
    }

    .invoice-section .invoice-content .invoice-options .invoice-details {
        height: fit-content;
    }

    .invoice-section .invoice-content .invoice-carousel-container {
        width: 320px;
        height: 95px;
        transform: none;
    }

    .invoice-section .invoice-content .invoice-carousel-container .invoice-carousel {
        bottom: -50px;
        right: 93px;
        width: 140px;
        height: 80px;
        border-radius: 100px 100px 0 0;
    }

    .invoice-section .invoice-content .invoice-carousel-container .new-image {
        transform: rotate(180deg) translateX(100px) translateY(-20px);
        bottom: 67px;
        right: 41px;
    }

    .invoice-section .invoice-content .invoice-carousel-container .invoice-carousel img {
        width: 60px;
        height: 80px;
    }

    @keyframes enter {
        0% {  transform: rotate(90deg) translateX(200px); visibility: visible;}
        100% { transform: rotate(0) translateX(0) translateY(0); visibility: visible; }
    }

    @keyframes leave {
        0% { transform: rotate(0) translateX(0) translateY(0); }
        100% { transform: rotate(-90deg) translateX(-200px) translateY(20px); visibility: hidden; }
    }
}