/**
 * SPIDER
 */

 html:hover .spider {
    top: -120%;
}

.spider {
    position: absolute;
    display: inline-block;
    top: 0;
    left: 30%;

    /* 4. Animatie */
    animation: swing 2s infinite;
    transform-origin: top;

    /* Bonus */
    transition: 1s ease-in-out;

    z-index: 2;
}

.spider .spiderweb {
    width: 2px;
    height: 200px;
    margin-left: 49px;
    background: rgba(255,255,255, .7);
}

.spider .body {
    width: 100px;
    height: 80px;
    background: #000;
    position: relative;
    border-radius: 50%;
}

.spider .body .eye {
    width: 33px;
    height: 33px;
    position: absolute;
    bottom: 20px;
    background: #fff;
    border-radius: 50%;
}

.spider .body .eye.left {
    left: 15px;
}

.spider .body .eye.right {
    right: 15px;
}

.spider .body .eye:after {
    background: #000;
    width: 7px;
    height: 7px;
    content: '';
    display: block;
    margin: 55%;
    border-radius: 50%;

    /* 3. Animatie */
    animation: look 8s infinite;
}

.spider .legs .leg {
    width: 80px;
    height: 40px;
    margin-top: -20px;
    border: 5px solid transparent;
    border-top-color: #000;
    border-radius: 40px 40px 0 0;
}

.spider .legs {
    position: absolute;
    bottom: -10%;
    z-index: -1;
}

.spider .legs.left {
    left: -70%;
}
.spider .legs.right {
    right: -60%;
}


.legs.left .leg:nth-child(1){
    transform: rotate(10deg);
    margin-left: 10px;
}
.legs.right .leg:nth-child(1){
    transform: rotate(-10deg);
    margin-left: -10px;
}


.legs.left .leg:nth-child(2){
    transform: rotate(-20deg);
    margin-left: 20px;
}
.legs.right .leg:nth-child(2){
    transform: rotate(20deg);
    margin-left: -20px;
}


.legs.left .leg:nth-child(3){
    transform: rotate(-50deg);
    margin-left: 30px;
}
.legs.right .leg:nth-child(3){
    transform: rotate(50deg);
    margin-left: -30px;
}

/* 1. Animatie */
@keyframes look {
    0%, 40%, 100% {
        transform: translateX(0); 
    }

    45%, 95% {
        transform: translateX(-110%);
    }
}


/* 3. Animatie */
@keyframes swing {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}


/* custom homepage */
article.node.node--type-page-d-accueil.node--view-mode-full {
    background-size: cover;
    background-image: url('/themes/custom/beauvais_evenements/assets/events/halloween_2024.jpg.webp');
    background-position-x: center;
    background-position-y: center;
}

@media (max-width: 768px) {
    article.node.node--type-page-d-accueil.node--view-mode-full {
        background-image: url('/themes/custom/beauvais_evenements/assets/events/halloween_2024_mobile.jpg.webp');
    }
}

.section, .section--light {
    background: transparent;
}

.title:before {
    content: "";
    width: 1.875rem;
    border-left: 4px solid #f68245;
}

/* scroll-banner */
.scroll-banner--ltr .scroll-banner__list-container {
    background-color: rgb(239 106 6 / 70%);
}

.scroll-banner--ltr .scroll-banner__triangle {
    fill: #f68245;
}

.scroll-banner--rtl .scroll-banner__list-container {
    background-color: #f68245;
    flex-direction: row-reverse;
}

.scroll-banner--rtl .scroll-banner__triangle, .key-figures__triangle {
    fill: rgb(239 106 6 / 70%);
}

.btn.btn-white, button.btn-white.link, .btn-white.button, .node-preview-container .btn-white.node-preview-backlink {
    background-color: #000;
    border-color: #000;
    /* color: #f48144; */
    color: #fff;
}

.btn.btn-primary, button.btn-primary.link, .btn-primary.button, .node-preview-container .btn-primary.node-preview-backlink, .btn .button-action, button.link .button-action, .button .button-action, .node-preview-container .node-preview-backlink .button-action {
    background-color: #f48144;
    border-color: #f48144;
    color: #000;
}

.main-navigation__item, .key-figures__item, .footer__link, .footer__link--highlighted {
    color: #f48144;
}
.key-figures__item--highlighted {
    background-color: #f48144;
}
.scroll-banner--rtl .scroll-banner__triangle, .key-figures__triangle {
    fill: #f48144;
}

/* svg */

.cls-1 {
    fill: #f48144 !important;
}
.cls-2 {
    fill: #f48144 !important;
}

/* 
 * retirer la classe .spider sur node--page-d-accueil.html.twig
 * remettre le logo en rouge
 */