section#usecases {
    margin-top:5em;
    margin-bottom: 4em;
}

section#usecases h1 {
    font-size:2em;
    font-weight:500;
    width:100%;
    text-align: center;
    padding: 0;
    margin: 0;
}

.proposals_ctn {
    background-color: var(--main-color);
    width:63%;
    height: max-content;
    padding:3em 2em;
    border-radius: 1em;
    margin:1em 0;
    gap:0;

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-start;
    align-items: stretch;
    overflow: hidden;
    transition: all .2s ease-in-out;
}

.proposals_ctn .preselection {
    min-height:50px;
    /*border:dashed 2px yellow;*/
    /*flex:1;*/
}
.proposals_ctn .preselection h1 {
    font-size: 1em !important;
    font-weight: 600 !important;
    color:white;
}
.proposals_ctn .preselection .options_container {
    margin-top: .5em;
    padding-left: .5em;
    width: max-content;
}
.proposals_ctn .preselection button {
    background-color: transparent;
    color: white;
    text-align: left;
    width:fit-content;
    display: block;
    transition: transform .2s ease-in-out, margin .2s ease-in-out;
    transform-origin: left;
    margin-left:0px;
    transition: all .2s ease-in-out;
    margin-right:5px;
}
.proposals_ctn .preselection button.active {
    color:var(--sec-color);
    font-weight:700;
    margin-left:5px;
    margin-right:0px;
}
.proposals_ctn .preselection button:hover {
    margin-left:5px;
    margin-right:0px;
}


.proposals_ctn .selections {
    /*border:dashed 2px red;*/
    flex:1;
    position: relative;
    padding: 0 46px;
    display: flex;
    /*overflow-x: hidden;
    overflow-y: hidden;*/
}

.proposals_ctn .selections .arrow {
    /*fill: var(--main-darker);*/
    fill: #bfbfbf;
    height: 4em;
    cursor: pointer;
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease-in-out, scale .2s ease-in-out;
}
.proposals_ctn .selections .arrow.active {
    opacity: 0.5;
    pointer-events: all;
}

.proposals_ctn .selections .arrow.active:hover {
    opacity: 1;
    scale:1.05;
}
.proposals_ctn .selections .arrow.next_page {
    right: 0;
}
.proposals_ctn .selections .arrow.prev_page {
    left:0;
    rotate: 180deg;
}

@keyframes disappear {
    100% {
        translate: 0 50%;
        opacity: 0;
    }
    0% {
        translate: 0 0;
        opacity: 1;
    }
}
.proposals_ctn .selections .selection {
    opacity: 1;
    pointer-events: none;
    background-color: transparent;
    height:auto;
    width:100%;
    max-height: 100%;
    max-width: 100%;
    transition: opacity .3s ease-in-out, translate .3s ease-out;
    background-color: var(--main-color);

    display: none;
    height: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: flex-start;
    justify-content: space-around;
    align-items: stretch;
    gap: 10px;
    position: absolute;
    z-index: 4;

    animation-name: disappear;
    animation-duration: .2s;
    animation-fill-mode: forwards;

    /*background-color: transparent;
    backdrop-filter: brightness(0.9);*/
}

@keyframes appear {
    0% {
        translate: 0 -50%;
        opacity: 0;
    }
    100% {
        translate: 0 0;
        opacity: 1;
    }
}
.proposals_ctn .selections .selection.active {
    animation-name: appear;
    animation-duration: .2s;
    animation-fill-mode: forwards;
    pointer-events: all;
    height: auto;
    position: relative;
    z-index: 5;
    display: flex;
}
@keyframes opdisappear {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
.proposals_ctn .selections .selection .usecase {
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-between;
    align-items: stretch;
    /*flex:1;*/
    width:33%;
    border-radius: 1em;
    transition: box-shadow .2s ease-in-out, scale .2s ease-in-out;
    opacity: 0;
    /*overflow: hidden;*/
    display: none;
    animation-name: opdisappear;
    animation-duration: .5s;
    animation-fill-mode: forwards;
    background-color: var(--main-color-90);
}
.proposals_ctn .selections .selection .usecase > * {
    /*flex-grow: 0;*/
}
@keyframes opappear {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
.proposals_ctn .selections .selection .usecase.active {
    display: flex;
    animation-name: opappear;
    animation-duration: .5s;
    animation-fill-mode: forwards;
}
.proposals_ctn .selections .selection .usecase:hover {
    box-shadow: 0 0 4px 0px black;
    scale:1.01;
}
.proposals_ctn .selections .selection .usecase img {
    width: 100%;
    height: 6em;
    object-fit: contain;
    margin-top: 7px;
    transition: opacity 1s ease-in-out;
}
.proposals_ctn .selections .selection.active .usecase img {
    opacity: 1;
}
.proposals_ctn .selections .selection .usecase p {
    color: white;
    padding: 0 10px;
    text-align: left;
    width: fit-content;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: stretch;
}

.proposals_ctn .selections .selection .usecase h2 {
    width: fit-content;
    margin: 0 auto;
    font-size: 1em;
    text-align: center;
    font-weight: 700;
    color: var(--main-darker);
    text-decoration: underline;
    margin-top: 5px;
    padding: 0 5px;
    word-break: break-word;
}

.proposals_ctn .selections .selection .usecase button {
    width:100%;
    min-height: 56px;
    margin-top: 5px;
    background-color: var(--main-darker);
    border-radius: 0;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    transition: all .2s ease-in-out;
}
.proposals_ctn .selections .selection .usecase button:hover {
    /*border-top-left-radius: 1em;
    border-top-right-radius: 1em;*/
    /*margin-top:0px;*/
    margin-top: 0px;
    min-height: 61px;
}

section#askquot {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    justify-content: flex-start;
}
section#askquot > h1 {
    font-size: 1.5em;
    text-align: center;
}

section#specproj {
    margin:5em 0;

    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    justify-content: flex-start;
}
section#specproj > h1 {
    font-size: 1.5em;
    text-align: center;
}

section#specproj > a button, section#askquot > a button {
    margin-top:1em;
    padding:.5em 1em;
}

@media only screen and (max-width: 1530px) {
    .proposals_ctn {
        width: 76%;
        padding:1.5em;
    }
}

@media only screen and (max-width: 1270px) {
    .proposals_ctn {
        width: 85%;
        padding:1em;
    }
}

@media only screen and (max-width: 1200px) {
    .proposals_ctn {
        width: 90%;
    }
}

@media only screen and (max-width: 1100px) {
    .proposals_ctn {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        align-content: center;
        flex-wrap: nowrap;
        gap: 1.5em;
    }

    .options_container {
        max-width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-content: flex-start;
        justify-content: space-between;
        align-items: flex-start;
    }

    .preselection {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        /* align-content: center; */
        height: max-content;
        width: 100%;
    }
}

@media only screen and (max-width: 850px) {
    .proposals_ctn .selections .selection .usecase {
        flex:1;
        width:auto;
    }

    .proposals_ctn {
        padding: 1.5em 5px;
    }

    .options_container {
        display: flex;
        flex-direction: column;
    }

    .preselection {
        align-items: center;
    }

    .selections {
        padding: 0px 15px !important;
    }

    .selection {
        flex-direction: column !important;
    }

    .proposals_ctn .selections .selection .usecase h2 {
        width: 70%;
        font-size: 1.3em;
    }

    .proposals_ctn .selections .selection .usecase p {
        width: 80%;
    }

    .usecase.active {
        gap: 1em;
    }

    .proposals_ctn .selections .arrow {
        top:0;
        translate: 0 0;
    }
}