/* General styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FFF2E6; /* Puslapio fono spalva */
    background-image: url('kaladeliu-teatras-bg.png'); /* Fiksuotas fonas */
    background-size: cover; /* Fonas užims visą ekraną ir proporcingai mažės */
    background-position: center; /* Fonas bus centre */
    background-attachment: fixed; /* Fiksuotas fonas, neslidinantis su turiniu */
}

header {
    text-align: center;
    margin: 20px 0;
}

.hero-image {
    max-width: 100%;
    height: auto;
}

/* Description Section */
.description {
    text-align: center;
    padding: 20px;
    max-width: 1000px; /* Apribotas plotis dideliems ekranams */
    margin: 0 auto; /* Centruojama viduryje */
}

.bottom-no-margin {
    margin-bottom: -5px;
    padding-bottom: 0;
}

.description h1 {
    font-size: 2.5em;
    color: #1d4d1a;
}

.description p {
    font-size: 1.2em;
    color: #4f4f4f;
}

.events-tickets {
    text-align: center;
    padding: 20px;
    margin: 0 auto; 
    color: #1d4d1a;
    font-size: 30px;
    font-weight: bold;
}


.bottom-line-img {
   border-bottom: 20px solid #1d4d1a; 
}

/* Event blocks */
.events {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 stulpeliai dideliems ekranams */
    gap: 20px;
    padding: 20px;
}

.event {
    background-color: #f8f3e2; /* Ta pati spalva kaip ir svetainės fonas */
    border: 2px solid #1d4d1a; /* 2px rėmelis */
    color: #1d4d1a;
    text-align: center;
    padding: 20px;
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none; /* Pašaliname žymėjimą */
    position: relative;
}
.event .soldout {
    background-color: #F3F3F3; 
    border: 2px solid #A1A9B2; 
    color: #A1A9B2; 
}

.pulse {
    animation: pulse 1.1s infinite; 
}

.pulse1 {
    animation: pulse 1.5s infinite; 
}

.alert {
    position: absolute;
    top: 80px;
    right: -20px;
    background-color: red;
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 10px;
    transform: rotate(45deg);
    transform-origin: top right;
}
 

.event p {
    margin: 5px 0;
}

.month {
    font-size: 1.2em;
    color: #1d4d1a;
}

.day {
    font-size: 2.5em;
    font-weight: bold;
    color: #f15a29;
}

.time {
    font-size: 1.2em;
    color: #4f4f4f;
}

.soldout .month, .soldout .day, .soldout .time{
    color: #A1A9B2;
}



/* Hover effect - changing border color */
.event:hover {
    border: 2px solid #f15a29; /* Rėmelio spalvos pasikeitimas */
    color: #f15a29; /* Teksto spalva pasikeičia į tą pačią spalvą */
}

.soldout:hover {
    border: 2px solid #000000; 
    color: #000;
}

footer {
    text-align: center;
    background-color: #1d4d1a;
    color: white;
    padding: 20px;
}

footer a {
    color: #f8f3e2;
    text-decoration: none;
    font-weight: bold;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}
@keyframes pulse1 {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
    100% {
        transform: scale(1);
    }
}


/* Media queries for responsiveness */

/* Small screens (max-width: 600px) */
@media (max-width: 600px) {
    .events {
        grid-template-columns: 1fr; /* Vienas stulpelis mažiems ekranams */
    }

    .event {
        padding: 15px; /* Sumažintas užpildymas mažiems ekranams */
    }

    .month, .day, .time {
        font-size: 1.1em; /* Sumažintas tekstas mažiems ekranams */
    }

    .day {
        font-size: 2em; /* Sumažintas dienos numeris */
    }

    .description {
        padding: 10px; /* Mažesni tarpai telefone */
    }
}

/* Medium screens (max-width: 992px) */
@media (max-width: 992px) {
    .events {
        grid-template-columns: repeat(2, 1fr); /* Dviejų stulpelių išdėstymas vidutinio dydžio ekranuose */
    }
}
