* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', sans-serif;
    color: #000;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #fff;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: bolder;
    color: #000000;
}

.logo-content {
    display: flex;
    flex-direction: column;
}

.logo small {
    font-size: 0.8rem;
    color: #555;
}

.socialmedia {
    font-size: 2rem;
    font-weight: bold;
    justify-content: center;
}

input[type="text"] {
    padding: 0.4rem;
    border: 1px solid #ccc;
}

header {
    overflow: visible;
}

nav {
    background: #4f387d;
    display: flex;
    justify-content: space-evenly;
    gap: 2rem;
    position: sticky;
    top: 0;
    z-index: 999;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 14px 16px;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
    color: #d1c4e9;
    transform: scale(1.1);
}


/* Dropdown Button */
.topics {
    margin: 0;
    color: white;
    font-size: 16px;
    border: none;
    text-decoration: none;
    font-weight: bold;
    background-color: inherit;
    font-family: inherit;
    padding: 14px 16px;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;  padding-top: 14px 16px;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    align-items: center;
    background-color: #6d5c9b;
    color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: #ffffff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #9481ba;}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {display: block;}

/* Change the background color of the dropdown button when the dropdown content is shown */
.nav a:hover, .dropdown:hover .topics {
    background-color: #6d5c9b;
}

section {
    border-bottom: 1px solid #ccc;
}

section h2 {
    font-size: 3.5rem;
    color: #4f387d;
    text-shadow: 3px 3px #cbbbe7;
}

.fake-news-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 1rem 2rem 2rem;
    background-color: #9481ba;
    color: white;
    overflow: visible;
    flex-wrap: wrap;
}

.activism-hero {
    display: flex;
    justify-content: space-between;
    margin-top: 1em;
    align-items: flex-start;
    padding: 2rem 1rem 2rem 2rem;
    background-color: white;
    color: #4f387d;
    overflow: visible;
    flex-wrap: wrap;
}

.fake-news-img {
    position: relative;
    z-index: 1;
    padding-right: 2em;
}

.fake-news-img img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    max-width: 600px;
}

.fake-news-text {
    flex: 1 1 40%;
    z-index: 2;
}

.fake-news-text2 {
    flex: 1 1 40%;
    z-index: 2;
}

.fake-news-text h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin: 0;
    text-shadow: 3px 3px #6d5c9b;
}

.fake-news-text2 h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin: 0;
    text-shadow: 3px 3px #9481ba;
}

.fake-news-text p {
    padding: 2em 3em 0 0;
    font-weight: 300;
    font-size: 1.2rem;
    font-style: italic;
    letter-spacing: 0.5px;
}

.fake-news-text2 p {
    padding: 2em 3em 0 0;
    font-weight: 300;
    font-size: 1.2rem;
    font-style: italic;
    letter-spacing: 0.5px;
}

.fake-news-info {
    padding: 2em 3em;
}

.fake-news-info2 {
    padding: 2em 3em;
    background-color: #9481ba;
}

.fake-news-info h2{
    padding-bottom: 1rem;
}

.fake-news-info2 h2{
    padding-bottom: 1rem;
    font-size: 3.5rem;
    color: white;
    text-shadow: 3px 3px #4f387d;
}

.key-findings {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 1rem 2rem 2rem;
    background-color: #9481ba;
    color: white;
    overflow: visible;
    flex-wrap: wrap;
}

.key-findings2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 1rem 2rem 2rem;
    background-color: white;
    color: #4f387d;
    overflow: visible;
    flex-wrap: wrap;
}

.key-findings .key-text {
    font-weight: 300;
    font-size: 1.2rem;
    font-style: italic;
    letter-spacing: 0.5px;
    line-height: 1.5;
    padding-right: 10px;
}

.key-findings2 .key-text {
    font-weight: 300;
    font-size: 1.2rem;
    font-style: italic;
    letter-spacing: 0.5px;
    line-height: 1.5;
    padding-right: 10px;
}

.key-findings h3 {
    padding-bottom: 2rem;
}

.key-findings2 h3 {
    padding-bottom: 2rem;
}

.key-findings ul {
    padding-left: 2em;
}

.key-findings2 ul {
    padding-left: 2em;
}

.key-img img{
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    max-width: 600px;
}

.key-img {
    position: relative;
    z-index: 1;
    padding-right: 2em;
}

.key-text {
    flex: 1 1 40%;
    z-index: 2;
}

.fake-news-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 1rem 2rem 2rem;
    overflow: visible;
    flex-wrap: wrap;
}

.study-charts {
    position: relative;
    z-index: 1;
    padding-right: 2em;
}

.study-text {
    flex: 1 1 40%;
    z-index: 2;
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.study-text2 {
    flex: 1 1 40%;
    z-index: 2;
    background-color: #9481ba;
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.study-text h3 {
    font-size: 1.5rem;
    line-height: 1;
    margin: 0;
    color: #4f387d;
}

.study-text2 h3 {
    font-size: 1.5rem;
    line-height: 1;
    margin: 0;
    color: white;
}

.study-text p {
    font-weight: 300;
    font-size: 1.2rem;
    font-style: italic;
    letter-spacing: 0.5px;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.study-text2 p {
    font-weight: 300;
    font-size: 1.2rem;
    font-style: italic;
    letter-spacing: 0.5px;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: white;
}


.study-charts img{
    width: 100%;
    position: relative;
    max-width: 600px;
}

.implications {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 1rem 2rem 2rem;
    background-color: #9481ba;
    color: white;
    overflow: visible;
    flex-wrap: wrap;
    font-weight: 300;
    font-size: 1.2rem;
    font-style: italic;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.implications2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 1rem 2rem 2rem;
    background-color: white;
    color: #9481ba;
    overflow: visible;
    flex-wrap: wrap;
    font-weight: 300;
    font-size: 1.2rem;
    font-style: italic;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.implications2 h3 {
    color: #4f387d;
}

.hero {
    background: url('img/scroll-patrol.png') center/cover no-repeat;
    padding: 5rem 2rem;
    color: white;
    text-align: left;
    background-color: #000; /* fallback */
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-top: 1rem;
    font-style: italic;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 2rem;

}

.tile {
    text-decoration: none;
    padding: 2rem;
    text-align: center;
    font-weight: bold;
    color: white;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
    min-height: 150px;
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    flex-direction: column;
    flex: 0 0 250px; /* Fixe Breite für horizontales Scrollen */
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tile:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.purple1 {
    background-color: #584284;
}

.purple2 {
    background-color: #755fa1;
}

.purple3 {
    background-color: #371d6d;
}

.purple4 {
    background-color: #9481ba;
}

.purple5 {
    background-color: #b39ddb;
}

.purple6 {
    background-color: #9575cd;
}

.purple7 {
    background-color: #5f3e98;
}

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 2rem;
    scroll-behavior: smooth;

    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.3s;
}

.horizontal-scroll:hover {
    scrollbar-color: #bbb #eee;
}

/* Chrome, Safari, Opera */
.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
    background-color: transparent;
    transition: background-color 0.3s;
}

.horizontal-scroll:hover::-webkit-scrollbar {
    background-color: #eee;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.horizontal-scroll:hover::-webkit-scrollbar-thumb {
    background: #bbb;
}


.footer {
    background-color: #4f387d;
    color: white;
    text-align: center;
    padding: 1rem;
    /*position: sticky;*/
    left: 0;
    right: 0;
    bottom: 0;
}

.image-gallery .image-tile {
    background-size: cover;
    background-position: center;
    position: relative;
    height: 250px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: white;
}

.tile-text {
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    padding: 1rem;
    text-align: center;
    font-weight: bold;
}

.poster-intro {
    background-color: #9481ba;
    color: white;
    text-align: center;
    padding: 3rem 1rem;
}

.poster-intro h1 {
    font-size: 3rem;
    text-shadow: 3px 3px #6d5c9b;
}

.poster-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 2rem;
    background-color: #e6ddf3;
}

.poster-thumb {
    text-align: center;
    cursor: pointer;
}

.poster-thumb img {
    height: 300px;
    width: auto;
    object-fit: cover;
    border: 3px solid #755fa1;
    transition: transform 0.3s ease;
}

.poster-thumb:hover img {
    transform: scale(1.05);
}

.poster-thumb em {
    display: block;
    margin-top: 0.5rem;
    font-style: italic;
    color: #4f387d;
}

.poster-detail {
    padding: 2rem;
    background: white;
    margin: auto;
}

.poster-2 {
    display: flex;

}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    text-align: center;
}

.modal-content {
    margin-top: 5%;
    max-width: 80%;
    height: auto;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
}

.modal-nav .prev,
.modal-nav .next {
    font-size: 3rem;
    color: white;
    cursor: pointer;
    user-select: none;
}

.poster-gallery-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #e6ddf3;
    padding: 2rem 0;
    overflow: hidden;
}

.poster-gallery-scrollable {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 2rem 5em;
}

.poster-gallery-scrollable::-webkit-scrollbar {
    display: none;
}

.poster-thumb {
    flex: 0 0 auto;
    text-align: center;
    cursor: pointer;
}

.poster-thumb img {
    height: 300px;
    width: auto;
    object-fit: cover;
    border: 3px solid #755fa1;
    transition: transform 0.3s ease;
}

.poster-thumb:hover img {
    transform: scale(1.05);
}

.scroll-btn {
    background: rgba(79, 56, 125, 0.5);
    color: white;
    border: rgba(79, 56, 125, 0.3);
    border-radius: 50px;
    font-size: 3.5rem;
    padding: 1rem;
    margin: 0 0.2em 0 0.2em;
    cursor: pointer;
    z-index: 2;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.scroll-btn.left {
    left: 0;
}

.scroll-btn.right {
    right: 0;
}

.poster-block {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 4em;
}

.detail-image img {
    max-width: 50vw;
    height: auto;
    border: 3px solid #755fa1;
    border-radius: 10px;
}

.detail-text {
    flex: 1;
}

.detail-text h2 {
    padding-bottom: 1em;
}

.detail-text h3 {
    padding-top: 1em;
}

.about-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 1rem 0 2rem;
    background-color: #9481ba;
    color: white;
    overflow: visible;
    flex-wrap: wrap;
}

.about-intro h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin: 0;
    text-shadow: 3px 3px #6d5c9b;
}

.text-block {
    flex: 1 1 40%;
    z-index: 2;
}

.image-block {
    flex: 0.5 1 50%;
    position: relative;
    z-index: 1;
}

.image-block img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
    max-width: 600px;
}

.about-description {
    background-color: white;
    padding: 6rem 5% 3rem 5%;
    margin-top: -30px; /* creates overlap under image */
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    color: #333;
    line-height: 1.6;
}

.text-block p {
    padding: 2em 3em 0 0;
    font-weight: 300;
    font-size: 1.2rem;
    font-style: italic;
    letter-spacing: 0.5px;
}

.motivation-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: white;
    flex-wrap: wrap;
}

.motivation-text {
    flex: 1 1 60%;
    font-size: 1.2rem;
    line-height: 1.7;
    color: #4f387d;
    font-style: italic;
    padding-right: 2rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.motivation-title {
    flex: 1 1 35%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.motivation-title h2 {
    font-size: 3.5rem;
    text-align: right;
    color: #4f387d;
    text-shadow: 3px 3px #cbbbe7;
}

.team-carousel {
    background-color: #a58dc3;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.carousel-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem auto;
    max-width: 300px;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.carousel-main img{
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    z-index: 1;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.3s ease;

}

.carousel-main p {
    margin-top: 1rem;
    font-size: 1rem;
    color: #fff;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.carousel-thumbnails {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-thumbnails img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: 2px solid transparent;
}

.carousel-thumbnails img.active {
    transform: scale(1.1);
    opacity: 1;
    border-color: #fff;
}

.carousel-btn {
    background: #4f387d;
    color: white;
    border: none;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 1;
}

.carousel-btn.left {
    left: 10%;
}

.carousel-btn.right {
    right: 10%;
}

.carousel-thumb {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0.5;
    transition: 0.3s ease;
    cursor: pointer;
}

.carousel-thumb.active {
    opacity: 1;
    transform: scale(1.1);
    border: 2px solid #fff;
}

.container-carousel-flip {
    display: flex;
    align-items: flex-start; /* Вирівнюємо по верху */
    gap: 1rem; /* відступ між фото і карткою */
}

.flip-card {
    background-color: transparent;
    width: 200px;
    height: 300px;
    perspective: 1000px;
    cursor: pointer;
    margin: auto;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 200px;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    padding: 1rem;
    box-sizing: border-box;

}

.flip-card-back {
    background-color:  #4f387d;
    transform: rotateY(180deg);
    text-align: center;
}

.flip-card-back p{
    font-size: 0.5rem;   /* Зменшений розмір тексту */
    padding: 0.5rem 1rem; /* Можна зменшити падінги, щоб було компактніше */
    line-height: 1.2;    /* Щільніший міжрядковий інтервал */
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

