/*
Folha de estilos relativa à página principal do site, 'index.html'.
*/

@keyframes move {
    to {
        transform: translateX(-100%);
    }
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

section h2 {
    padding: 1em 0 1.5em 0;
    color: var(--section-header);
    text-align: center;
    font-weight: 700;
    font-size: 2.5em;
}

/****************/
/* Hero section */
/****************/

#blobrot,
#blobrot2 {
    position: absolute;
    width: 75%;
    filter: blur(2px);
}

#blobrot {
    right: -25%;
    top: -15%;
    animation: spin 25s linear infinite;
}

#blobrot2 {
    right: -30%;
    top: -20%;
    animation: spin 20s linear infinite;
}

#hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 1em;
    overflow: hidden;
    background-image:
        linear-gradient(rgb(82, 50, 33), rgb(75, 75, 75)),
        url("../assets/images/team-neei-2025-2026-blur.jpg");
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: color;
    background-position: center;
    backdrop-filter: blur(5px) !important;
    z-index: 1;
}

#hero-section-content {
    text-align: left;
    width: 100%;
    font-family: "Modernist", sans-serif;
    text-shadow: 2px 2px 5px var(--hero-text-shadow);
}


#hero-header {
    color: var(--hero-header-text);
    font-weight: 700;
    font-size: 2.5rem;
}

#hero-header-one,
#hero-header-two {
    font-weight: 900;
    font-size: 2rem;
    text-shadow: none;
}

#hero-header-one {
    color: var(--hero-header-one-text);
}

#hero-header-two {
    color: var(--hero-header-two-text);
}

#blinker::after {
    content: "";
    width: 5px;
    height: 1.6rem;
    background: #ff5c00;
    display: inline-block;
    animation: cursor-blink 1.5s steps(2) infinite;
    font-weight: 900;
}

#forum-btn {
    display: block;
    width: 200px;
    text-align: center;
    font-size: 1.2em;
    padding: 0.4rem 0;
    border-radius: 8px;
    background-color: #413E66;
    color: #CCC;
}

/*********************/
/* Caroussel section */
/*********************/

#carousel-section {
    background-color: var(--carousel-section-bg);
}

#caroussel {
    box-sizing: border-box;
    width: 95vw;
    max-width: 350px;
    margin: 0 auto;
}

.glide__slide {
    width: 100%;
    border: 1px solid #000000;
    border-radius: 15px;
}

.glide {
    width: 80%;
}

.glide__bullets {
    display: flex;
    margin: 20px 0;
    justify-content: center;
}

.glide__bullet:active,
.glide__bullet:focus,
.glide__bullet:active:focus {
    background-image: none;
    outline: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    background-color: var(--carousel-active-bullet);
}

.glide__bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 5px;
    border: none;
    background-color: #413e66;
    cursor: pointer;
}

.tile {
    display: flex;
    margin: 0 auto;
    text-align: left;
    opacity: 0.99;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.05);
    white-space: initial;
    align-items: center;
}

.tile:before {
    content: "";
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.7) 100%);
    width: 100%;
    height: 50%;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 2;
    transition-property: top, opacity;
    transition-duration: 0.3s;
}

.tile img {
    display: block;
    min-width: 100%;
    max-height: 550px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    object-fit: cover;
    object-position: center;
}

.tile .details {
    font-size: 16px;
    padding: 20px;
    color: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 3;
}

.tile .details span {
    display: block;
    opacity: 0;
    position: relative;
    top: 100px;
    transition-property: top, opacity;
    transition-duration: 0.3s;
    transition-delay: 0s;
}

.tile .details .title {
    line-height: 1;
    font-weight: 600;
    font-size: 22px;
}

.tile .details .info {
    line-height: 1.2;
    text-indent: 1.2em;
    margin-top: 5px;
    font-size: 14px;
}

.tile .details .info-no-ident {
    line-height: 1.2;
    margin-top: 5px;
    font-size: 14px;
}

.tile:focus:before,
.tile:focus span,
.tile:hover:before,
.tile:hover span {
    opacity: 1;
}

.tile:focus:before,
.tile:hover:before {
    top: 50%;
}

.tile:focus span,
.tile:hover span {
    top: 0;
}

.tile:focus .title,
.tile:hover .title {
    transition-delay: 0.15s;
}

.tile:focus .info,
.tile:hover .info {
    transition-delay: 0.25s;
}

/********************/
/* Calendar section */
/********************/

#calendar-section {
    background-color: var(--calendar-section-bg);
    padding-bottom: 30px;
}

#calendar {
    width: 95vw;
    max-width: 1400px;
    height: 650px;
    margin: 0 auto 100px auto;
    font-family: Arial, Helvetica, sans-serif;
    border: 1px solid var(--calendar-border);
}

#next,
#now,
#prev {
    width: 80px;
    color: var(--calendar-section-btn-text);
    background-color: var(--calendar-section-btn-bg);
    border: 1px solid transparent;
    height: 40px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.5s ease-in-out;
}

#next:hover,
#now:hover,
#prev:hover {
    cursor: pointer;
    color: var(--calendar-section-btn-bg);
    background-color: var(--calendar-section-btn-text);
    border: 2px solid var(--calendar-section-btn-bg);
    box-shadow: 1px 2px 5px var(--calendar-section-btn-bg);
}

#date {
    color: var(--calendar-section-date-text);
    height: 40px;
    line-height: 40px;
    font-size: 2em;
    font-weight: 600;
}

#button-box {
    width: 95vw;
    max-width: 1400px; 
    margin: 0 auto 15px auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#calendario-legenda {
    margin-top: -5em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: center;
    text-align: center;
    color: var(--calendar-section-legend);
}

#calendario-legenda ul {
    list-style: none;
    padding: 0 2.5vw;
}

#calendario-legenda ul li {
    display: inline;
    font-weight: 700;
}

#pri-ano {
    color: #ffa500;
}

#seg-ano {
    color: grey;
}

#ter-ano {
    color: black;
}

.cal-outline {
    border: 1px solid black;
}

.toastui-calendar-popup-overlay {
    position: fixed !important;
    /* the problem is that initialy it was absolute and thus not always in the viewport */
}

/***************/
/* News footer */
/***************/

#news-scroller {
    box-sizing: border-box;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 1.5em;
    background-color: #d35d18;
    color: white;
    z-index: 1;
}

#ns-content {
    position: relative;
    left: -30%;
    display: inline-block;
    width: 130%;
    transform: translateX(100%);
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    animation: move 10s linear infinite;
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (max-width: 375px) {
    #date {
        font-size: 1.2em;

    }

    #next,
    #now,
    #prev,
    #pri-ano,
    #seg-ano,
    #ter-ano,
    #todos {
        width: auto;
        font-size: 0.75em;
    }

    #pri-ano,
    #seg-ano,
    #ter-ano,
    #todos {
        padding: 0.3em;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    /* Página principal */

    section h2 {
        font-size: 3.5em;
    }

    #blobrot,
    #blobrot2 {
        width: 60%;
    }

    #hero-section-content {
        text-align: center;
    }

    #hero-header {
        font-size: 3.5rem;
    }

    #hero-header-one,
    #hero-header-two {
        font-size: 2.5rem;
    }

    #blinker::after {
        height: 2rem;
        width: 7.5px;
    }

    #caroussel {
        max-width: 500px;
    }

    /* Card section */

    #neei {
        top: -50px;
        width: 300px;
        height: 300px;
    }

    #card-description {
        top: -150px;
    }

    #card-description p {
        margin-top: 100px;
        text-align: center;
        font-weight: bold;
        font-size: 1.8em;
    }

    #card-description ul li {
        font-size: 1.5em;
        list-style: none;
    }

    #card-btn {
        width: 50%;
        padding: 1em 0;
        border-radius: 8px;
        font-size: 1.5em;
    }

    #next,
    #now,
    #prev {
        width: 150px;
        height: 50px;
    }

    #calendario-legenda {
        margin-top: -3em;
        font-size: 1.5em;
    }

    #todos,
    #pri-ano,
    #seg-ano,
    #ter-ano {
        font-size: 1.3em;
    }

    #faq-section {
        padding-bottom: 5rem;
    }

    #question-list li {
        font-size: 1.5em;
    }

    #question-list li i {
        transform: translate(-12px, 0);
    }

    #question-list li i:before,
    #question-list li i:after {
        width: 6px;
        height: 18px;
    }

    #question-list li i:before {
        transform: translate(-4px, 0) rotate(45deg);
    }

    #question-list li i:after {
        transform: translate(4px, 0) rotate(-45deg);
    }

    #question-list li input[type="checkbox"]:checked~i:before {
        transform: translate(4px, 0) rotate(45deg);
    }

    #question-list li input[type="checkbox"]:checked~i:after {
        transform: translate(-4px, 0) rotate(-45deg);
    }

    .answer {
        max-height: 300px;
        padding: 0 55px 0 15px;
        font-size: 1.1em;
    }

    #news-scroller {
        font-size: 1.2em;
    }

    #ns-content {
        left: -10%;
        width: 110%;
        animation: move 10s linear infinite;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    /* Página principal */

    section h2 {
        font-size: 3em;
    }

    #blobrot {
        right: -25%;
        top: -20%;
    }

    #blobrot2 {
        right: -30%;
        top: -25%;
    }

    #hero-section-content {
        text-align: center;
    }

    #hero-header {
        font-size: 3rem;
    }

    #hero-header-one,
    #hero-header-two {
        font-size: 2.5rem;
    }

    #blinker::after {
        height: 2rem;
    }

    #caroussel {
        max-width: 650px;
    }

    #next,
    #now,
    #prev {
        margin: 0 0.5em;
    }

    #news-scroller {
        font-size: 1.5em;
        max-height: 1.5em;
    }

    #ns-content {
        animation: move 15s linear infinite;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    /* Página principal */

    #blobrot,
    #blobrot2 {
        width: 50%;
    }

    section h2 {
        font-size: 3em;
    }

    #blobrot {
        right: -30%;
        top: -25%;
    }

    #blobrot2 {
        right: -35%;
        top: -30%;
    }

    #hero-header {
        font-size: 4rem;
    }

    #hero-header-one,
    #hero-header-two {
        font-size: 3rem;
    }

    #blinker::after {
        height: 2.3rem;
    }

    #caroussel {
        max-width: 800px;
    }

    /* Aqui é onde a secção do cartão passa a mostrar a imagem do cartão */

    #neei {
        top: -75px;
        width: 250px;
        height: 250px;
        z-index: 0;
    }

    #card-description {
        top: 0;
        margin-left: 0;
        margin-right: 5px;
    }

    #card-description p {
        margin-top: 0;
        font-size: 1.6em;
    }

    #card-description ul {
        margin: 0;
    }

    #card-description ul li {
        margin: 0 0 0.1em 1em;
        font-size: 1.2em;
    }

    #card-btn {
        position: relative;
        top: -15px;
        width: 35%;
        padding: 0.5em 0;
        border-radius: 8px;
        font-size: 1.2em;
    }

    #card-section-content {
        display: flex;
        justify-content: center;
        position: relative;
        top: -100px;
    }

    #card-preview {
        visibility: visible;
        height: auto;
        width: auto;
    }

    #card-description,
    .flip-box {
        height: 300px;
        width: 500px;
    }

    .flip-box {
        display: flex;
        flex-wrap: wrap;
        padding: 0;
        perspective: 1000;
        -webkit-perspective: 1000;
        -moz-perspective: 1000;
        margin-left: 5px;
    }

    .flip-box:hover .back {
        transform: rotateY(0deg);
        -ms-transform: rotateY(0deg);
        -webkit-transform: rotateY(0deg);
        -moz-transform: rotateY(0deg);
        z-index: 10;
    }

    .flip-box:hover .front {
        transform: rotateY(180deg);
        -ms-transform: rotateY(180deg);
        -webkit-transform: rotateY(180deg);
        -moz-transform: rotateY(180deg);
        z-index: -1;
    }

    .flip-box .back,
    .flip-box .front {
        position: relative;
        display: flex;
        flex: 0 0 100%;
        transition: all 1.2s cubic-bezier(0.5, 1.3, 0.5, 1.3);
        -o-transition: all 1.2s cubic-bezier(0.5, 1.3, 0.5, 1.3);
        -webkit-transition: all 1.2s cubic-bezier(0.5, 1.3, 0.5, 1.3);
        -moz-transition: all 1.2s cubic-bezier(0.5, 1.3, 0.5, 1.3);
        transform-style: preserve-3d;
        -ms-transform-style: preserve-3d;
        -webkit-transform-style: preserve-3d;
        -moz-transform-style: preserve-3d;
        border-radius: 8px;
        border: 1px solid #FFF;
    }

    .flip-box .back {
        background-image: url('../assets/images/cartao/card-back.png');
        background-repeat: no-repeat;
        background-size: cover;
        position: absolute;
        /* A animação não funciona corretamente no Firefox sem esta propriedade */
        -moz-left: 50.25%;
        top: 0;
        bottom: 0;
        width: 500px;
        z-index: -1;
        transform: rotateY(-180deg);
        -ms-transform: rotateY(-180deg);
        -webkit-transform: rotateY(-180deg);
        -moz-transform: rotateY(-180deg);
    }

    .flip-box .front {
        background-image: url('../assets/images/cartao/card-front.png');
        background-repeat: no-repeat;
        background-size: cover;
        z-index: 10;
    }

    #questions {
        width: 95vw;
        max-width: 950px;
    }

    #news-scroller {
        font-size: 1.4em;
    }

    #ns-content {
        left: 0;
        width: 100%;
        animation: move 18s linear infinite;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {

    /* Página principal */

    #blobrot,
    #blobrot2 {
        width: 50%;
    }

    section h2 {
        font-size: 3em;
    }

    #blobrot {
        top: -45%;
    }

    #blobrot2 {
        top: -50%;
    }

    #news-scroller {
        font-size: 1.2em;
    }

    #ns-content {
        animation: move 30s linear infinite;
    }
}