:root {
    --cf_blue: #0B3856;
    --cf_orange: #C75524;
    --bezier: cubic-bezier(.39,.1,.28,1.55);
}

.res_wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.res_container {
    position: relative;
    width: 50%;
    min-width: 500px;
    margin-bottom: 100px;
    transition: .5s ease-out;
}

.res_container p {
    margin-block-end: 0 !important;
}

.accordion_input {
    display: none;
}

/*TAG SECTION*/

.tag_wrapper {
    position: absolute;
    top: -40px;
    left: -40px;
    width: 100%;
    height: 100%;
}

.accordion_label {
    cursor: pointer;
}

.res_seal {
    z-index: 10;
    position: relative;
    width: 80px;
    transition: .5s ease-out;
}

.name_tag {
    z-index: 9;
    position: absolute;
    top: 15px;
    left: 40px;
    height: 50px;
    background-color: var(--cf_blue);
    width: calc(100% - 80px);
    padding: 20px 0 20px 60px;
    color: white;
    font-family: 'Alfa Slab One' !important;
    text-transform: uppercase;
    line-height: .6;
    font-weight: 100;
    font-size: 20px;
}

.social_tag {
    z-index: 9;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding-top: 3rem;
    align-items: center;
    left: 14.5px;
    height: 70%;
    min-height: 180px;
    max-height: 180px;
    width: 50px;
    background-color: var(--cf_blue);
}

.social_tag_overflow {
    position: absolute;
    top: 40px;
    height: 0%;
    width: 100%;
    overflow-y: hidden;
    transition: 500ms ease-out 300ms;
}

.social_tag::before {
    content: "";
    position: absolute;
    height: 0;
    width: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 25px solid var(--cf_blue);
    bottom: -21px;
    left: 16px;
    rotate: 45deg;
}

.social_tag::after {
    content: "";
    position: absolute;
    height: 0;
    width: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 25px solid var(--cf_blue);
    bottom: -21px;
    left: -16px;
    rotate: -45deg;
}

.name_tag::before {
    content: "";
    position: absolute;
    height: 0;
    width: 0;
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-right: 25px solid var(--cf_blue);
    top: -16px;
    right: -17px;
    rotate: 45deg;
}

.name_tag::after {
    content: "";
    position: absolute;
    height: 0;
    width: 0;
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-right: 25px solid var(--cf_blue);
    bottom: -16px;
    right: -17px;
    rotate: -45deg;
}

.r_hover {
    height: 20px;
    width: 20px;
    fill: white;
    -webkit-fill: white;
    transition: .2s ease-in-out;
}

/*TAG TRANSITIONS*/

.accordion_input:checked ~ .accordion_label .res_seal {
    rotate: 360deg;
}

.r_hover:hover {
    fill: var(--cf_orange);
    -webkit-fill: var(--cf_orange);
}

.accordion_input:checked ~ .accordion_label .social_tag_overflow {
    height: 140%;
}

/*DESCRIPTION SECTION*/

.desc_panel_overflow {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s ease-out;
}

.desc_panel_wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    width: calc(100% - 80px);
    background-image: linear-gradient(rgba(59,75,93,.9), rgba(59,75,93,.9)), url(https://gqbbq.wpenginepowered.com/wp-content/uploads/2020/03/square-orderOnlin.jpg);
    background-position: center center;
    background-size: cover;
    overflow: hidden;
    transition: .5s ease-out;
    min-height: 0;
}

.desc_panel_wrapper::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    background-color: #3B4B5D;
    height: 20px;
    width: 100%;
    border-top: 3px solid white;
    background-image: url("https://denver.chickenfightfest.com/wp-content/uploads/2023/08/chicken-fight-star.svg");
    background-repeat: space;
}

/*PANEL TRANSITIONS*/

.accordion_input:checked ~ .desc_panel_overflow {
    grid-template-rows: 1fr;
}

/*DESCRIPTION*/

.res_desc_wrapper {
    width: 60%;
    padding: 40px 2% 40px 40px !important;
}

.no_spirit {
    width: 100%;
}

.res_logo {
    max-width: 100px !important;
    max-height: 65px;
    margin-bottom: 10px;
    transform: translateY(-250%);
    transition: 500ms var(--bezier) 400ms;
}

.res_title {
    font-family: 'Alfa Slab One' !important;
    font-weight: 100;
    text-transform: uppercase;
    color: white;
    line-height: 1.2;
    margin-bottom: 5px !important;
    transform: translateY(-150px);
    transition: 500ms var(--bezier) 300ms;
}

.res_desc {
    font-family: 'AR One Sans';
    font-size: 14px;
    line-height: 1.2;
    color: white;
    transform: translateY(-250%);
    transition: 500ms var(--bezier) 200ms;
}

/*DESCRIPTION TRANSITIONS*/

.accordion_input:checked ~ .desc_panel_overflow .res_logo,
.accordion_input:checked ~ .desc_panel_overflow .res_title,
.accordion_input:checked ~ .desc_panel_overflow .res_desc {
    transform: translateY(0);
}

/*SPIRIT*/

.spirit_wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6% 2% 6% 2%;
    background-color: var(--cf_orange);
    width: 40%;
}

.spirit_title {
    font-family: Bevan;
    font-weight: 100;
    text-transform: uppercase;
    text-align: center;
    color: white;
    line-height: 1.2;
    margin-bottom: 8px !important;
    transform: translateY(-150%);
    transition: 300ms var(--bezier) 500ms;
}

.spirit_logo {
    max-width: 140px !important;
    max-height: 120px;
    margin-bottom: 10px;
    transform: translateY(-150%);
    transition: 300ms var(--bezier) 400ms;
}

.spirit_blink {
    z-index: 10;
    transform: translateY(-150%);
    transition: .3s var(--bezier) 300ms;
}

.spirit_button {
    font-family: Bevan;
    font-weight: 100;
    font-size: .7rem;
    color: white;
    background-color: var(--cf_blue);
    padding: 10px 6px 6px 7px;
    border: none;
    border-radius: 0px;
    transition: color .3s ease-out, background-color .3s ease-out;
}

.spirit_button:hover {
    color: var(--cf_blue);
    background-color: white;
}

/*SPIRIT TRANSITIONS*/

.accordion_input:checked ~ .desc_panel_overflow .spirit_title,
.accordion_input:checked ~ .desc_panel_overflow .spirit_logo,
.accordion_input:checked ~ .desc_panel_overflow .spirit_blink {
    transform: translateY(0);
}

/*BACKGROUND IMAGE GRADIENT*/
/*DO NOT EDIT: This is a workaround for issues with Elementor's background image controls*/
.desc_panel_wrapper {
    --rg-bg-gradient: linear-gradient(rgba(59,75,93,.9), rgba(59,75,93,.9));
    background-image: var(--rg-bg-gradient), var(--rg-bg-image, url(https://gqbbq.wpenginepowered.com/wp-content/uploads/2020/03/square-orderOnlin.jpg));
    background-size: cover, cover;
    background-position: center center, center center;
    background-repeat: no-repeat, no-repeat;
}

/*MEDIA QUERIES*/

@media (max-width: 1024px) {
    .res_container {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .res_container {
        min-width: 80%;
    }
    .name_tag {
        font-size: 16px;
    }
    .spirit_wrapper {
        padding: 15px 2% 0 2%;
    }
}

@media (max-width: 540px) {
    .res_container {
        min-width: 120%;
    }
    .name_tag {
        line-height: 1;
        display: flex;
        align-items: center;
        font-size: 12px;
        padding: 0px 0 0px 50px;
    }
    .res_desc_wrapper {
        width: 100%;
        padding: 30px 2% 20px 30px;
    }
    .desc_panel_wrapper {
        flex-direction: column;
    }
    .res_title {
        font-size: 12px;
    }
    .res_desc {
        font-size: 12px;
    }
    .spirit_title {
        font-size: 12px;
    }
    .spirit_wrapper {
        width: 100%;
        padding-bottom: 30px;
    }
}

/*HOVER OVERRIDE — Suppress all hover-triggered reveal effects.
  These rules cancel out any :hover CSS that may be injected via
  Elementor custom CSS or other sources. Only :checked (click) should
  open the description panel.*/

.res_container:hover .res_seal {
    rotate: 0deg;
}

.res_container:hover .social_tag_overflow {
    height: 0%;
}

.res_container:hover .desc_panel_overflow {
    grid-template-rows: 0fr;
}

.res_container:hover .res_logo,
.res_container:hover .res_desc,
.res_container:hover .spirit_title,
.res_container:hover .spirit_logo,
.res_container:hover .spirit_blink {
    transform: translateY(-250%);
}

.res_container:hover .res_title {
    transform: translateY(-150px);
}

/* Restore correct open state when checked, even while hovering */
.res_container:hover .accordion_input:checked ~ .accordion_label .res_seal,
.accordion_input:checked ~ .accordion_label .res_seal {
    rotate: 360deg;
}

.res_container:hover .accordion_input:checked ~ .accordion_label .social_tag_overflow,
.accordion_input:checked ~ .accordion_label .social_tag_overflow {
    height: 140%;
}

.res_container:hover .accordion_input:checked ~ .desc_panel_overflow,
.accordion_input:checked ~ .desc_panel_overflow {
    grid-template-rows: 1fr;
}

.res_container:hover .accordion_input:checked ~ .desc_panel_overflow .res_logo,
.res_container:hover .accordion_input:checked ~ .desc_panel_overflow .res_title,
.res_container:hover .accordion_input:checked ~ .desc_panel_overflow .res_desc,
.res_container:hover .accordion_input:checked ~ .desc_panel_overflow .spirit_title,
.res_container:hover .accordion_input:checked ~ .desc_panel_overflow .spirit_logo,
.res_container:hover .accordion_input:checked ~ .desc_panel_overflow .spirit_blink {
    transform: translateY(0);
}
