@import url('./variables.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3 {
    text-shadow: 5px 5px 10px rgba(202, 20, 178, 0.2);
}

img {
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}


.navbar {
    background-color: var(--navbar-background);
    padding: 15px 30px;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    margin: auto;
}

.navbar .logo a {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.navbar ul{
    display: flex;
    list-style: none;
    gap: 50px;
    align-items: end;
    float: right;
}

.nav-links ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s;
}
.navbar ul li a:hover {
    color: var(--navbar-text-hover);
    transition: 0.3s;
}

/* Dropdown styles for desktop */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--navbar-background);
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
    margin-top: 4px;
    min-width: 180px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 999;
    display: flex;
    flex-wrap: wrap;
    gap: 0 !important;
}

.dropdown:hover > .dropdown-menu,
.dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0 !important;
    padding: 0 !important;
}

.dropdown-menu li a {
    padding: 8px 12px !important;
    text-align: left !important;
    display: block;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px !important; 
    transition: 0.2s;
    border-left: 3px solid transparent;
}

.dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-left-color: var(--navbar-text-hover);
    color: var(--navbar-text-hover);
}

.mobil-navbar {
    display: none;
}

.mobil-navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobil-links{
    position: fixed;
    top: 60px;
    right: 0;
    height: calc(100vh - 60px);
    width: 300px; 
    background: var(--navbar-background);
    transform: translateX(100%); 
    transition: transform 0.3s ease;
    z-index: 1001;
    padding-top: 20px;
}
.mobil-links.open{
    transform: translateX(0);
}

.mobile-overlay{
    position: fixed;
    inset: 0;
    top: 73px;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    z-index: 1000;
}
.mobile-overlay.visible{
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease;
}

/* Hamburger button styles */
.hamburger{
    width: 36px;
    height: 36px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: transparent;
    border: none;
    position: relative;
    gap: 4px;
}

.hamburger:hover{
    cursor: pointer;
}

.hamburger .bar{
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
    position: absolute;
}

.hamburger[aria-expanded="false"] .bar:nth-child(1){ transform: translateY(-6px) rotate(0deg); }
.hamburger[aria-expanded="false"] .bar:nth-child(2){ transform: scaleX(1); opacity: 1; }
.hamburger[aria-expanded="false"] .bar:nth-child(3){ transform: translateY(6px) rotate(0deg); }


.hamburger[aria-expanded="true"] .bar:nth-child(1){ transform: rotate(45deg); }
.hamburger[aria-expanded="true"] .bar:nth-child(2){ opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] .bar:nth-child(3){ transform: rotate(-45deg); }



.header-container {
    text-align: center;
}
.header-container h1 {
    font-size: 72px;
    color: var(--primary-color);
    padding-top: 50px;
    text-shadow: 5px 5px 10px rgba(0,0,0,0.3);
}

.images-conatainer {
    height: 100vh;
    position: relative;
    overflow: hidden;
}


.images-conatainer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, rgba(0,0,0,0), var(--background-color));
    z-index: 3;
    pointer-events: none;
}

.images-conatainer .slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
    opacity: 0;
    z-index: 1;
}
.images-conatainer .slide.visible {
    opacity: 1;
}

.images-conatainer h1 {
    position: relative;
    z-index: 2;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    padding-top: 50px;
}


.jazi-data-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 800px;
    gap: 20px;
    width: 90%;
    margin: 20px auto;
    text-align: left;
    color: #fff;
    position: relative;
    z-index: 2;
}


.jazi-data-container .jazi-data {
    flex: 1;
    align-self: center;
}
.jazi-img img {
    display: block;
    margin: auto;
    float: right;
    width: 250px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    margin-left: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.social-links img {
    margin-top: 15px;
    width: 50px;
    background-color: white;
    border-radius: 50%;
    padding: 3px;
    transition: 0.3s ease;
}

.social-links #facebook{
    padding: 10px;
}

.social-links img:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Hónapfoduló oldalak */

.header-container .month-h1 {
    font-size: 42px;
    padding-top: 30px;
}

.month-section img {
    display: block;
    margin: 50px auto;
    max-width: 500px;
    width: 90%;
    border-radius: 20px;
    box-shadow: 5px 5px 15px var(--primary-color);
}

/* Stroy section */

.story-section {
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
    font-size: 18px;
    line-height: 1.8;
}

.story-h1 {
    font-size: 42px !important;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.story-section h2 {
    font-size: 32px;
    color: var(--secondary-color);
}

.story-section p {
    margin-bottom: 20px;
    text-indent: 20px;
    text-align: justify;
}

/* Események oldal */

.events-h1 {
    color: var(--secondary-color);
    font-size: 48px;
    padding-top: 30px;
    margin-bottom: -80px;
    text-align: center;

}

.cards-container {
    
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
}
.row-h2 {
    margin-top: 50px;
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.row-containers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;

}

.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 10px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}
.card button {
    background-color: var(--navbar-background);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.card button:hover {
    background-color: var(--primary-color);
}

main {
    flex: 1;
}

/* Footer */

.footer {

    background-color: var(--navbar-background);
    color: #fff;
    text-align: center;
    padding: 20px 30px;
    border-top: 1px solid var(--primary-color);
    margin-top: auto;
    padding: 20px 30px;

    border-top: 1px solid var(--primary-color);
}

.footer p {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
}

/* Modal ablak */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #fff;
    max-width: 500px;
    max-height: 500px;
    width: 90%;
    height: 90%;
    border-radius: 10px;
    padding: 30px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    margin-top: 0;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modal-content p {
    text-align: justify;
    color: var(--text-color);
    line-height: 1.6;
}

/* 404 Error Page */

.error-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 140px);
    text-align: center;
    padding: 20px;
}
.error-container {
    max-width: 600px;
}
.error-title {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.error-message {
    font-size: 20px;
    margin-bottom: 30px;
}
.home-link {        
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--navbar-background);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.home-link:hover {
    background-color: var(--primary-color);
}

/* Countdown Timer Styles */
.countdown-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-container {
    background: linear-gradient(135deg, rgba(202, 20, 178, 0.1) 0%, rgba(100, 20, 150, 0.1) 100%);
    border-radius: 15px;
    padding: 40px 20px;
    margin: 40px auto;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(202, 20, 178, 0.2);
}

.countdown-container h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.countdown-item {
    background-color: var(--card-background);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    min-width: 100px;
    box-shadow: 0 2px 10px rgba(202, 20, 178, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(202, 20, 178, 0.3);
}

.countdown-number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
}

.countdown-label {
    display: block;
    font-size: 14px;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scroll Arrow Styles */
.scroll-arrow-container {
    z-index: 9999;
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: -40px;
    padding-bottom: 20px;
}

.scroll-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.scroll-arrow:hover {
    opacity: 0.7;
}

.scroll-arrow span {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border-bottom: 5px solid var(--secondary-color);
    border-right: 5px solid var(--secondary-color);
    transform: rotate(45deg);
    margin: -5px 0;
    animation: scroll-bounce 2s infinite;
}
@keyframes scroll-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(10px) rotate(45deg);
    }
    60% {
        transform: translateY(5px) rotate(45deg);
    }
}
