/* CSS Document */
* {
    margin: 0;
    padding: 0;
}

body {
    background-image: linear-gradient(rgb(0, 45, 106), lightblue);
}

.container {
    background-color: #CEC99A;
    margin: auto;
    max-width: 1280px;
    padding: 10px;
}

/*Header*/
.header {
    align-items: center;
    background-color: #DFDCBE;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    width: auto;
}

.header img {
    background-color: #EBE9D6;
    border-radius: 10px;
    margin: 5px 20px 10px 0px;
    max-width: 500px;
    padding: 5px;
    text-align: center;
}

/*Navigation*/
.navigation {
    background-color: #EBE9D6;
    border-radius: 10px;
    clear: both;
    float: left;
    font-family: Tempus Sans ITC;
    font-size: larger;
    font-weight: bold;
    position: relative;
}

.navigation ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.navigation li {
    position: relative;
}

.navigation a {
    color: black;
    display: block;
    padding: 0 16px 14px;
    text-decoration: none;
}

.nav-link-content {
    align-items: center;
    display: flex;
    justify-content: center;
}

.nav-link-content.active, .dropdown-content a.active {
    background-color: #BF4D28;
    color: white;
    text-align: center;
}

.navigation a:hover .nav-link-content {
    background-color: #f7931d;
    color: black;
}

.dropdown-content {
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    display: none;
    left: 50%;
    min-width: 160px;
    position: absolute;
    text-align: center;
    transform: translateX(-50%);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    display: block;
    padding: 6px 8px;
    text-align: center;
    text-decoration: none;
}

.dropdown:hover .dropdown-content {
    border-radius: 10px;
    display: block;
}

.dropdown-content a:hover {
    background-color: #ddd;
    color: black;
}

.dropbtn {
    background-color: inherit;
    border: none;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    background-color: #EBE9D6;
    border-radius: 5px;
    cursor: pointer;
    display: none;
    flex-direction: column;
    height: 21px;
    justify-content: space-around;
    margin: 10px auto;
    padding: 5px;
    width: 30px;
}

.hamburger-menu .bar {
    background-color: black;
    height: 3px;
    transition: 0.3s;
    width: 100%;
}

/*Aside Content*/
.aside {
    background-color: #DFDCBE;
    border-radius: 10px;
    clear: both;
    float: left;
    margin: 15px 0;
    max-width: 210px;
    padding: 10px;
    text-align: center;
}

.aside h3, p, li, img, a {
    list-style: none;
    margin: 10px 0px 0px 0px;
}

.aside h3 {
    color: #BF4D28;
    font-family: Tempus Sans ITC;
}

.aside img {
    border-radius: 10px;
    height: auto;
    max-width: 100%;
}

.aside p img {
    height: auto;
    max-width: 100%;
}

/* Styles for the aside hamburger */
.aside-container {
    position: relative;
    width: 100%;
}

.aside-title-mobile {
    background-color: #EBE9D6;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    color: #BF4D28;
    cursor: pointer;
    display: none;
    font-family: Tempus Sans ITC;
    font-size: larger;
    font-weight: bold;
    padding: 10px;
    text-align: center;
}

.aside-hamburger-menu {
    background-color: #EBE9D6;
    border-radius: 5px;
    cursor: pointer;
    display: none;
    flex-direction: column;
    height: 21px;
    justify-content: space-around;
    margin: 10px auto;
    padding: 5px;
    width: 30px;
}

.aside-hamburger-menu .bar {
    background-color: black;
    height: 3px;
    transition: 0.3s;
    width: 100%;
}

/*Countdown & Donate Button*/
.countdown {
    align-items: center;
    background-color: #EBE9D6;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    float: right;
    font-family: Tempus Sans ITC;
    font-weight: bold;
    justify-content: center;
    margin: 0 0 10px 10px;
    max-width: fit-content;
    padding: 10px;
    text-align: center;
}

.countdown h3 {
    color: #BF4D28;
}

.countdown h3, .countdown p {
    line-height: 0.5;
}

.countdown p {
    font-size: larger;
}

/*Donate Button*/
.button {
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-family: Tempus Sans ITC;
    font-size: large;
    font-weight: bold;
    padding: 15px 30px;
    text-align: center;
    text-decoration: none;
}

.donateButton {
    background-color: #BF4D28;
}

.button a {
    text-decoration: none;
}

.button a:link {
    color: white;
}

.button a:hover {
    text-decoration: underline;
}

/*Main Content*/
.main {
    background-color: #DFDCBE;
    border-radius: 10px;
    float: right;
    font-size: larger;
    margin: 15px 0px 10px 10px;
    max-width: 1020px;
    overflow: hidden;
    padding: 10px;
}

.main h1, h2, .video {
    font-family: Tempus Sans ITC;
    margin: 20px;
    text-align: center;
}

.main h3 {
    font-family: Tempus Sans ITC;
    text-align: center;
}

.main p {
    margin: 20px;
}

.list {
    padding-left: 20px;
}

.list li {
    list-style-type: circle;
}

.map {
    background-color: #EBE9D6;
    border-radius: 10px;
    height: auto;
    max-width: 100%;
}

.address {
    text-align: center;
}

.videoContainer {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px auto;
}

.videoWrapper {
    text-align: center;
}

.videoWrapper iframe {
    max-width: 100%;
}

.gridContainer {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr 1fr;
}

.aroundTheWorld, .authorMotherTeresa, .atHome {
    background-color: #EBE9D6;
    border-radius: 10px;
    padding: 10px;
}

.promoCode {
    color: red;
}

/*Gallery Slideshow*/
.slideshow-container {
    margin: auto;
    max-width: 1020px;
    position: relative;
}

.slide {
    display: none;
    width: 100%;
}

.slide img {
    height: auto;
    width: 100%;
}

.prev, .next {
    background-color: rgba(0,0,0,0.8);
    border-radius: 0 3px 3px 0;
    color: white;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    margin-top: -22px;
    padding: 16px;
    position: absolute;
    top: 50%;
    transition: 0.6s ease;
    user-select: none;
    width: auto;
}

.next {
    border-radius: 3px 0 0 3px;
    right: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,1);
}

.dot-container {
    margin-top: 10px;
    text-align: center;
}

.dot {
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
    height: 15px;
    margin: 0 2px;
    transition: background-color 0.6s ease;
    width: 15px;
}

.dot:hover {
    background-color: #717171;
}

/*Sponsors Table*/
table {
    /*border: 1px solid black;*/
	text-align: center;
    table-layout: fixed;
    width: 100%;
}

table th, table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 33.33%;
}

table tr {
	text-align: center;
}

table td {
    padding: 5px;
}

table img {
    height: auto;
    max-width: 100%;
}

.events {
    text-align: center;
}

.events img {
    height: auto;
    width: 25%;
}

.backgroundColor {
    background-color: #EBE9D6;
    border-radius: 10px;
    margin: 5px;
    padding: 5px;
}

.history p {
    text-align: center;
}

.coordinators {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.stidhamCoordinator, .livermanCoordinator {
    background-color: #EBE9D6;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    flex: 1;
    margin: 5px;
    min-width: 250px;
    padding: 10px;
    text-align: center;
}

.socialMedia {
    margin-bottom: 10px;
    text-align: center;
}

.socialMedia img {
    height: auto;
    width: 5%;
}

.groups {
    text-align: center;
}

/*Inspirational Images*/
.inspirational {
    margin: 10px 0px 0px 20px;
}

.inspirational img {
    border-radius: 10px;
    height: auto;
    max-height: 300px;
    max-width: 100%;
    width: 15%;
}

/*Footer*/
.footer {
    background-color: #DFDCBE;
    border-radius: 10px;
    clear: both;
    margin: 20px 0px 0px 0px;
    padding: 10px;
    text-align: center;
    width: auto;
}

.footer h4 {
    text-align: right;
}

.footer img {
    width: 100%;
}

/* Responsive Styles */
@media screen and (max-width: 1100px) {
    .header {
        align-items: center;
        display: flex;
        justify-content: space-between;
    }

    .header img {
        height: auto;
        margin: 5px 0px 10px 0px;
        max-width: 100%;
        padding: 5px;
    }

    .navigation {
        clear: none;
        float: none;
        width: 100%;
    }

    .navigation ul {
        align-items: stretch;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .navigation a, .dropdown .dropbtn {
        text-align: left;
        width: 100%;
    }

    .video-container {
        align-items: center;
        flex-direction: column;
        gap: 20px;
    }

    .video-container .video-wrapper {
        margin: 10px 0 !important;
        padding: 5px !important;
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    /* Styles for tablets and phones */
    .header {
        align-items: center;
        display: flex;
        justify-content: space-between;
    }

    .header .logoImg {
        background-color: #EBE9D6;
        border-radius: 10px;
        height: 50px;
        margin: 5px 20px 10px 0px;
        max-width: 100%;
        padding: 5px;
        text-align: center;
        width: auto;
    }

    .navigation {
        align-items: flex-start;
        clear: none;
        display: flex;
        flex-direction: column;
        float: none;
        justify-content: flex-start;
        margin-left: 20px;
        padding-top: 10px;
        position: relative;
        width: 100%;
    }

    .navigation ul {
        align-items: stretch;
        background-color: #EBE9D6;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
        display: none;
        flex-direction: column;
        left: 0;
        list-style-type: none;
        margin: 0;
        padding: 0;
        position: absolute;
        top: 100%;
        width: 100%;
        z-index: 10;
    }

    .navigation ul.open {
        display: flex;
    }

    .navigation li {
        border-bottom: 1px solid #ddd;
    }

    .navigation li:last-child {
        border-bottom: none;
    }

    .navigation a, .dropdown .dropbtn {
        box-sizing: border-box;
        padding: 15px 16px;
        text-align: left;
        width: 100%;
    }

    .dropdown-content {
        border-radius: 0;
        box-shadow: none;
        left: 0;
        position: relative;
        transform: translateX(0);
        width: 100%;
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .hamburger-menu {
        cursor: pointer;
        display: flex;
        flex-direction: column;
        height: 21px;
        justify-content: space-around;
        margin: 0 auto;
        position: relative;
        width: 30px;
        z-index: 11;
    }

    .bar {
        background-color: black;
        height: 3px;
        transition: 0.3s;
        width: 100%;
    }

    .aside {
        background-color: #EBE9D6;
        border-radius: 0;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
        display: none;
        margin: 0;
        max-width: 100%;
        z-index: 11;
    }

    .aside.open-aside {
        display: block;
    }

    .aside h3, .aside ul, .aside p, .aside .asideImage {
        margin: 10px;
    }

    .aside ul {
        padding-left: 20px;
    }

    .aside-mobile-controls {
        align-items: center;
        display: flex;
        flex-direction: column;
        margin-right: 10px;
    }

    .aside-title-mobile {
        display: block;
        line-height: 1;
        margin-bottom: 5px;
        margin-right: 0;
        margin-top: 0;
        text-align: center;
    }

    .aside-hamburger-menu {
        cursor: pointer;
        display: flex;
        flex-direction: column;
        height: 21px;
        justify-content: space-around;
        margin: 0 auto;
        width: 30px;
    }

    .inspirational {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .navigation a, .dropdown .dropbtn {
        font-size: 14px;
        padding: 10px 12px;
    }

    .main, .aside, .countdown {
        font-size: 0.9em;
    }

    .button {
        font-size: 0.9em;
        padding: 10px 20px;
    }
}

@media screen and (max-width: 1024px) {
    .main {
        float: none;
        margin-left: 0;
        max-width: 100%;
    }

    .aside {
        float: none;
        max-width: 100%;
        margin: 10px 0;
    }

    .countdown {
        float: none;
        margin: 10px auto;
        max-width: 100%;
    }
}

@media (hover: hover) {
    .dropdown:hover .dropdown-content {
        display: block; /* Keep hover functionality for non-touch devices */
    }

    .dropdown-content a:hover {
        background-color: #ddd;
        color: black;
    }
}