/* 
    Stylesheet for the actual Cards of Qatar 
    Version: 0.1
*/


/* -- Variables ------------------------------ */

:root {
    --font-sans-serif: 'Helvetica Neue', Helvetica, Arial, Helvetica, sans-serif;
    --font-klavika: "klavika-web","blank", sans-serif;
    /* --color-background: #dcd4de; */
    --color-background: #FFFBF8;
}


/* -- CPT: COQ ------------------------------- */

article.coq {
    background-color: var(--color-background);
    display: flex;
    justify-content: space-between;
    padding-left: 1em;
    padding-right: 1em;
    margin-bottom: 0;
}

.coq-card {
    background-color: #961A42;
    background: url('assets/images/card-back.jpg');
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    max-width: 300px;
    width: 100%;
}

.coq-card-single,
.coq-card-back {
    width: 300px;
}

.card-text {
    font-family: var(--font-sans-serif);
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 1px;
    line-height: 10px;
    text-transform: uppercase;
}

.card-text-big {
    font-size: 22px;
    line-height: 22px;
}

.card-text-outline {
    border-bottom: 4px solid #fff;
    color: #3D0022;
    font-size: 44px;
    line-height: 44px;
    text-shadow:
		-1px -1px 0 #fff,
		1px -1px 0 #fff,
		-1px 1px 0 #fff,
		1px 1px 0 #fff;
}

.icon-logo {
    background: url('assets/images/cardsofqatar.png');
    background-size: cover;
    display: inline-block;
    height: 40px;
    width: 63px;
}

.icon-football {
    background: url('assets/images/icon-football.png');
    background-size: cover;
    display: inline-block;
    height: 30px;
    width: 17px;
}

.icon-arena {
    background: url('assets/images/icon-arena.png');
    background-size: cover;
    display: inline-block;
    height: 30px;
    width: 22px;
}

.icon-worker {
    background: url('assets/images/icon-worker.png');
    background-size: cover;
    display: inline-block;
    height: 30px;
    width: 15px;
}

.card-header {
    padding: 15px 15px 0 15px;
}

.card-header div {
    margin-bottom: 10px;
    text-align: center;
}

.card-linked {
    cursor: pointer;
    display: inline-block;
}

.card-header-link,
.card-header-link:visited {
    color: #fff;
}

.card-top {
    display: flex;
    justify-content: space-between;
}

.logo {
    text-align: right;
}

.person-wrapper {
    height: 85px;
    overflow: hidden;
}

.name {
    text-align: center;
}

.card-center {
    display: block;
}

.migrant-worker, .country {
    display: none;
    position: relative;
    line-height: 10px;
}

.migrant-worker {
    transform: rotate(-90deg);
    white-space: nowrap;
}

.country {
    transform: rotate(90deg);
    white-space: nowrap;
}

.card-photo {
    text-align: center;
}

.card-photo img {
    border: 8px solid #3D0022;
    border-radius: 100%;
    margin: 0 auto;
    width: 40%;
}

.card-details {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.age, 
.world-cup {
    margin-top: 8px;
}

.age {
    padding-top: 1em;
    padding-left: 15px;
}

.world-cup {
    padding-top: 1em;
    padding-right: 15px;
    text-align: right;
}

.country-badge {
    text-align: right;
}

.country-badge img {
    margin-top: -1.5em;
    max-width: 60px;
    height: auto;
}

.coq-link {
    color: #fff;
}

.card-footer {
    display: flex;
    padding: 40px 15px 15px 15px;
}

.arena,
.worker {
    width: 20%;
}

.worker {
    text-align: right;
}

.url {
    text-align: center;
    width: 60%;
}

.url > .card-text {
    line-height: 30px;
}

.coq-breadcrumb {
    margin: 15px 0 30px 0;
    font-family: var(--font-klavika);
    font-weight: 600;
    text-transform: uppercase;
}

.coq-breadcrumb > a,
.coq-breadcrumb > a:visited {
    color: #961A42;
}

.coq-card-back {
    align-items: center;
    background-color: #fff;
    display: flex;
}

.coq-card-back > p.card-text {
    margin: 0;
    padding: 1em 2em;
    line-height: 2;
    text-align: center;
}

#coq-story-long-english {
    display: block;
}

#coq-story-long-swedish {
    display: none;
}

.coq-story {
    margin: 2em 0;
}

.coq-story-title {
    margin-bottom: 0.5em;
}

.coq-story > * {
    max-width: 688px;
    padding: 0 15px;
}

.coq-story-card {
    align-items: stretch;
    align-content: flex-start;
    display: flex;
    gap: 0 20px;
    margin-bottom: 30px;
}

.interviewer {
    color: #3D0022;
    font-weight: 700;
    text-transform: uppercase;
}

.coq-navigation {
    display: none;
}

.mobile-card-nav-link {
    margin: 0 1em;
    position: sticky;
    top: 128px;
}

.mobile-card-nav-link:hover {
    transform: scale(1.5);
}

.mobile-card-nav-link.arrow-right,
.mobile-card-nav-link.arrow-left {
    height: 30px;
    width: 30px;
}

.mobile-card-nav-link.arrow-right::before {
    content: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 47.255 47.255" style="enable-background:new 0 0 47.255 47.255" xml:space="preserve"><path d="M12.314 47.255a.999.999 0 0 1-.707-1.707l21.92-21.92-21.92-21.92A.999.999 0 1 1 13.021.294L35.648 22.92a.999.999 0 0 1 0 1.414L13.021 46.962a.999.999 0 0 1-.707.293z"/></svg>');
}

.mobile-card-nav-link.arrow-left::before {
    content: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 47.255 47.255" style="enable-background:new 0 0 47.255 47.255" xml:space="preserve"><path d="M34.941 47.255a.997.997 0 0 1-.707-.293L11.607 24.334a.999.999 0 0 1 0-1.414L34.234.293a.999.999 0 1 1 1.414 1.414l-21.92 21.92 21.92 21.92a.999.999 0 0 1-.707 1.708z"/></svg>');
}

/* Tablet and mobile */
@media screen and (max-width: 768px) {
    .coq {
        flex-direction: column;
    }
    .coq-story {
        max-width: 100%;
        width: 100%;
    }
    .coq-card-single,
    .coq-card-back {
        margin-top: calc( 0.5em + 40px );
        margin-right: 0;
        margin-bottom: 1em;
        margin-left: 15px;
    }
    .mobile-card-nav-link.arrow-right,
    .mobile-card-nav-link.arrow-left {
        height: 20px;
        width: 20px;
    }
    .mobile-card-nav-link.arrow-left {
        align-self: flex-end;
        margin-top: 1em;
        margin-right: 3em;
        order: 1;
        position: unset;
        top: unset;
    }
    .mobile-card-nav-link.arrow-right {
        align-self: flex-end;
        margin-top: 1em;
        margin-top: -20px;
        order: 2;
        position: unset;
        top: unset;
    }
    .coq-story {
        order: 3;
    }
}

@media screen and (max-width: 630px) {
    .coq-story-card {
        flex-direction: column;
        gap: 10px;
    }
    .coq-card-back {
        margin-top: 0;
        margin-right: auto;
        margin-left: auto;
        min-height: 470px;
    }
}

/* Mobile */
@media screen and (max-width: 400px) {
    .cog-card {
        max-width: 336px;
    }
}

@media screen and (min-width: 1250px) {
    
    .coq-navigation {
        display: inline-block;
    }

    .mobile-card-nav-link {
        display: none;
    }

    .coq-navigation {
        margin-top: 40px;
        max-width: 300px;
        height: 100%;
        position: sticky;
        top: 80px;
    }
    
    .coq-navigation > .placeholder {
        width: 300px;
    }
    
    .card-nav-callout-previous,
    .card-nav-callout-next {
        display: inline-block;
        position: absolute;
        height: 150px;
        top: 170px;
        width: 150px;
    }
    
    .card-nav-callout-previous {
        padding-left: 71px;
    }
    
    .card-nav-callout-next {
        padding-left: 71px;
    }
    
    .card-nav-callout-previous::before {
        content: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 47.255 47.255" style="enable-background:new 0 0 47.255 47.255" xml:space="preserve"><path d="M12.314 47.255a.999.999 0 0 1-.707-1.707l21.92-21.92-21.92-21.92A.999.999 0 1 1 13.021.294L35.648 22.92a.999.999 0 0 1 0 1.414L13.021 46.962a.999.999 0 0 1-.707.293z"/></svg>');
        height: 30px;
        width: 30px;
    }
    
    .card-nav-callout-next::before {
        content: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 47.255 47.255" style="enable-background:new 0 0 47.255 47.255" xml:space="preserve"><path d="M34.941 47.255a.997.997 0 0 1-.707-.293L11.607 24.334a.999.999 0 0 1 0-1.414L34.234.293a.999.999 0 1 1 1.414 1.414l-21.92 21.92 21.92 21.92a.999.999 0 0 1-.707 1.708z"/></svg>');
        height: 30px;
        width: 30px;
    }

    .card-nav-callout-previous::before:hover,
    .card-nav-callout-next::before:hover {
        content: '';
        transition: all 0.3s;
    }

    .card-nav-previous,
    .card-nav-next {
        opacity: 0.4;
    }
    
    .card-nav-previous:hover,
    .card-nav-next:hover {
        opacity: 1;
        transition: all 0.5s;
    }
    
    .card-nav-previous {
        top: 0;
        right: 0;
        transform: rotate(3deg) scale(0.9);
    }
    
    .card-nav-next {
        top: 0;
        right: 0;
        transform: rotate(-3deg) scale(0.9);
    }
    
    .card-nav-previous:hover,
    .card-nav-next:hover {
        transform: rotate(0deg) scale(1);
    }
    
    .card-nav-previous .coq-card-single,
    .card-nav-next .coq-card-single {
        margin: 0;
    }

}

/* -- Template: COQ Landing ------------------ */

.coq-landing {
    background-color: var(--color-background);
    margin-bottom: 0;
}

.coq-landing p > a {
    color: #961A42;
}

.coq-landing p > a:hover {
    color: #27729c;
    transition: color .2s,background-color .2s,border-color .2s;
}


/* -- Template: COQ Article ------------------ */

.coq-heading {
    color: #fff;
}


/* -- COQ Header ----------------------------- */

.top-wrap #logo.coq-logo {
    background: none !important;
}


/* -- Blocks: COQ Cards ---------------------- */

.coq-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    justify-content: space-around;
    margin-left: auto;
    margin-right: auto;
    width: 99%;
}

.coq-cards .coq-card-wrapper {
    transform: scale(0.97) skewX(2deg) skewY(1deg) rotate(2deg);
}

.coq-cards .coq-card-wrapper:hover {
    box-shadow: -6px 27px 29px -19px rgba(0, 0, 0, 0.5);
    -webkit-box-shadow: -6px 27px 29px -19px rgba(0, 0, 0, 0.5);
    transform: scale(1.2) skewX(0deg) skewY(0deg) rotate(-2deg);
    transition: all 0.3s;
    z-index: 999;
}

.coq-cards .coq-card-wrapper .coq-card {
    max-width: 275px;
}

@media screen and (max-width:768px) {
    .coq-cards {
        justify-content: center;
    }
    .coq-card {
        margin-right: auto;
        margin-left: auto;
    }
}


/* -- Block: Core > Buttons ------------------ */

.wp-block-button a.has-background:hover {
    background-color: #000 !important;
    color: #fff !important;
}


/* -- Animations ----------------------------- */

.flip-in-ver-left {
	-webkit-animation: flip-in-ver-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
	        animation: flip-in-ver-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@-webkit-keyframes flip-in-ver-left {
    0% {
        -webkit-transform: rotateY(80deg);
                transform: rotateY(80deg);
        opacity: 0;
    }
    100% {
        -webkit-transform: rotateY(0);
                transform: rotateY(0);
        opacity: 1;
    }
}
@keyframes flip-in-ver-left {
    0% {
        -webkit-transform: rotateY(80deg);
                transform: rotateY(80deg);
        opacity: 0;
    }
    100% {
        -webkit-transform: rotateY(0);
                transform: rotateY(0);
        opacity: 1;
    }
}

.flip-in-hor-top {
	-webkit-animation: flip-in-hor-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
	        animation: flip-in-hor-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@-webkit-keyframes flip-in-hor-top {
    0% {
        -webkit-transform: rotateX(-80deg);
                transform: rotateX(-80deg);
        opacity: 0;
    }
    100% {
        -webkit-transform: rotateX(0);
                transform: rotateX(0);
        opacity: 1;
    }
    }
    @keyframes flip-in-hor-top {
    0% {
        -webkit-transform: rotateX(-80deg);
                transform: rotateX(-80deg);
        opacity: 0;
    }
    100% {
        -webkit-transform: rotateX(0);
                transform: rotateX(0);
        opacity: 1;
    }
}

.fade-in {
	-webkit-animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
	        animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

@-webkit-keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.del-100 {
    animation-delay: 0.1s !important;
}

.del-200 {
    animation-delay: 0.2s !important;
}

.del-300 {
    animation-delay: 0.3s !important;
}

.del-400 {
    animation-delay: 0.4s !important;
}

.del-500 {
    animation-delay: 0.5s !important;
}

.del-600 {
    animation-delay: 0.6s !important;
}

.del-700 {
    animation-delay: 0.7s !important;
}

.del-800 {
    animation-delay: 0.8s !important;
}

.del-900 {
    animation-delay: 0.9s !important;
}

.del-1000 {
    animation-delay: 1s !important;
}


/* -- Helper Classes ------------------------- */

.no-margin {
    margin: 0 !important;
}

.no-padding {
    padding: 0 !important;
}

.font-klavika {
    font-family: var(--font-klavika);
}

.font-sans-serif {
    font-family: var(--font-sans-serif);
}

.text-uppercase {
    text-transform: uppercase;
}

.flag-gb a,
.flag-se a {
    display: flex;
    align-content: center;
    align-items: center;
    flex-direction: row;
    justify-content: flex-end;
}

.coq-breadcrumb.flag-gb a,
.coq-breadcrumb.flag-se a {
    justify-content: flex-start;
}

.flag-gb a::before,
.flag-se a::before {
    background-repeat: no-repeat;
    background-size: cover;
    content: '';
    display: inline-block;
    height: 16px;
    margin-right: 5px;
    width: 16px;
}

.flag-gb a > * {
    margin-left: 3px;
}

.flag-gb a::before {
    background-image: url('assets/images/flag-gb.png');
}

.flag-se a::before {
    background-image: url('assets/images/flag-se.png');
}


/* -- Coq Letter ----------------------------- */

.coq-letter {
    box-shadow: 4px 4px 8px 0px rgb(170 170 171 / 20%);
    margin-left: auto;
    margin-right: auto;
    max-width: 80%;
    transform: rotate(0.5deg);
}

.coq-letter > div {
    padding: 3em;
}

.coq-letter hr {
    width: 100%;
    height: 1px;
    border: 1px solid #cfcfcf;
    border-width: 1px 0 0 0;
}

.coq-letter p {
    line-height: 150%;
}

.coq-letter-signed {
    font-size: 16px;
    margin-top: 4em;
    margin-bottom: 2em;
}

@media screen and ( min-width: 860px ) {

    .coq-letter {
        max-width: 780px;
        transform: rotate(1deg);
    }

    .coq-letter > div {
        padding: 4em 5em;
    }

}


/* -- Colors --------------------------------- */

.has-real-white-background-color {
    color: #fff;
}

.has-coq-red-color {
    color: #961A42;
}

.has-real-white-background-color {
    background-color: #fff;
}

.has-coq-red-background-color {
    background-color: #961A42;
}


/* -- Block Fixes ---------------------------- */

.wp-block-video {
    aspect-ratio: 16 / 9;
}

section .wp-block-embed iframe, section .wp-block-video video {
    height: 100% !important;
    width: 100% !important;
}

section .alignfull,
section .alignwide {
    width: 100% !important;
}

@media screen and ( min-width: 1156px ) {

    section .alignwide {
        max-width: 1156px !important;
        margin-left: auto;
        margin-right: auto;
    }

}