﻿
/* CSS File Updated 22.04.2026  */
/* Grid padding after title*/

.events-grid-toppad {
    padding-top: 1rem;
}

.events-grid-bottompad {
    padding-bottom: 2.5rem;
}

/* GRID CONTAINER */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: auto;
    padding: 0 1rem;
}

/* CARD */
.event-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.2rem 1rem 1.5rem;
    text-align: center;
    box-shadow: 0 6px 0 #e44d4d;
    position: relative;
}

/* New  12.03.2026 */
.event-card .card-face {
    pointer-events: none;
}


.more-info-btn {
    pointer-events: auto;
}
/* New  12.03.2026 */
/* .event-card {
    position: relative;
} */
/* New  12.03.2026  Mobile only */
@media (hover: none) and (pointer: coarse) {
    .event-card .card-face {
        pointer-events: none;
    }
}


.card-face::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 28px;
    width: 100%;
    background: #e44d4d;
    border-radius: 18px 18px 0 0;
}

/* MONTH */
.month {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-top: 1rem;
}

/* DAY NAME */
.day-name {
    font-size: 1.6rem;
    font-weight: 900;
    margin: 0.3rem 0;
}

/* DATE NUMBER */
.date-num {
    font-size: 2.0rem;
    font-weight: 900;
    margin: 0;
}

/* TIME */
.time {
    margin-top: 0.5rem;
    font-weight: 600;
}

/* DESCRIPTION */
.desc {
    margin-top: 0.3rem;
    font-style: italic;
    color: #555;
}

/* this deals with the flipping of the cards */

/* FLIP SETUP */
.event-card {
    perspective: 1000px;
    height: 235px;
    overflow: hidden;  /* 22.04.2026 */
}

.card-face {
    position: absolute;
    inset: 0;
    padding: 1.2rem 1rem 1.5rem;
    backface-visibility: hidden;
    border-radius: 18px;
    background: #fff;
    transition: transform 0.6s ease;
}

/* FRONT FACE */
.front {
    transform: rotateY(0deg);
 padding-top: 1.2rem;
}

/* BACK FACE */
.back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /*center;*/
    text-align: center;
    font-size: 1.1rem;
    padding-top: 1.2rem;
}

/* FLIP ON HOVER */
.event-card:hover .front {
    transform: rotateY(-180deg);
}

.event-card:hover .back {
    transform: rotateY(0deg);
}

/* DISABLE FLIP FOR SELECTED CARDS */
.no-flip:hover .front {
    transform: rotateY(0deg);
}

.no-flip:hover .back {
    transform: rotateY(180deg);
}

.back p {
    margin: 0.3rem 0;
}

/* TAP FLIP SUPPORT */
.event-card.is-flipped .front {
    transform: rotateY(-180deg);
}

.event-card.is-flipped .back {
    transform: rotateY(0deg);
}

.event-card {
    cursor: pointer;
}

/* More Info Button */
.more-info-btn {
    margin-top: 0.6rem;
    color: #169254 !important; /*#ffe4aa;*/
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: block;
    text-align: right;
    cursor: pointer;
    opacity: 0.9;
}



/* MODAL overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* MODAL BOX */
.modal-box {
    background: #fff;
    padding: 0.6rem;
    max-width: 400px;
    width: 90%;
    border-radius: 16px;
    text-align: center;
    position: relative;
}

.modal-inner {
    background: #fff;
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: inset 0 0 0 3px #ffad00;
}

/* CLOSE button */
.modal-close {
    position: absolute;
    top: 17px;
    right: 20px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff2c6, #ffad00);
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2), inset 1px 1px 2px rgba(255,255,255,0.8);
    cursor: pointer;
}

    /* Draw the X */
    .modal-close::before,
    .modal-close::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 14px;
        height: 2px;
        background: #333;
        transform-origin: center;
    }

    .modal-close::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .modal-close::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .modal-close:hover {
        background: #f5d68f;
    }

    /* Pressed feel */
    .modal-close:active {
        box-shadow: inset 2px 2px 4px rgba(0,0,0,0.2), inset -1px -1px 2px rgba(255,255,255,0.7);
    }


#modalTitle {
    color: #ffad00;
    position: relative;
    top: -15px;
    margin-bottom: 0.3rem; /* adjust this to move text up closer to title*/
}

#modalText {
    margin-top: 0.3rem;
    text-align:center;
}

#modalText {
    white-space: pre-line;

}

.note-word {
    color: red; /* or font-weight: bold */
    font-weight: bold;
}

.tight-heading {
    margin-top: 1px;
    margin-bottom: -15px;
}

/*   22.04.2026 Below new code */
.more-info-btn {
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

.modal-overlay {
    z-index: 99999; /* increase */
}

.modal-box {
    position: relative;
    z-index: 100000;
}

.modal-close {
    z-index: 100001;
    position: absolute;
}

.modal-inner {
    position: relative;
    z-index: 1;
}

.today-highlight-colour {
  background-color: #fcf3e1; /* #fceeeb;  */
}

.special-colour {
  background-color: #eafde1; /* Used for future event  #dffad3;   #d4f8c5; */
}

.special-colour2 {
  background-color: #fcc38e; /* your chosen colour */
}

#modalText {
    margin-top: -10px;
}

.back h4 {
    margin-bottom: 4px;  /* reduce space under heading */
}

.back p {
    margin-top: 5px;       /* remove extra space above text */
}