﻿@keyframes imgFadeInOut {
    0% {
        opacity: 0;
    }
    3% {
        opacity: 1;
    }
    9% {
        opacity: 1;
    }
    12% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

#img-transition-parent {
    position: relative;
    text-align: center;
    width: 100%;
}

#img-transition {
    position: relative;
    display: flex;
    justify-content: center;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
    height: 400px;
}

#img-transition img {
    position: absolute;
    max-height: 100%;
    max-width: 100%;
    transition: opacity 500ms ease-in-out;
    animation-name: imgFadeInOut;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-duration: 45s;
    opacity: 0;
}

#img-transition img:nth-of-type(1) {
    animation-delay: 0;
}

#img-transition img:nth-of-type(2) {
    animation-delay: 3s;
}

#img-transition img:nth-of-type(3) {
    animation-delay: 6s;
}

#img-transition img:nth-of-type(4) {
    animation-delay: 9s;
}

#img-transition img:nth-of-type(5) {
    animation-delay: 12s;
}

#img-transition img:nth-of-type(6) {
    animation-delay: 15s;
}

#img-transition img:nth-of-type(7) {
    animation-delay: 18s;
}

#img-transition img:nth-of-type(8) {
    animation-delay: 21s;
}

#img-transition img:nth-of-type(9) {
    animation-delay: 24s;
}

#img-transition img:nth-of-type(10) {
    animation-delay: 27s;
}

#img-transition img:nth-of-type(11) {
    animation-delay: 30s;
}

#img-transition img:nth-of-type(12) {
    animation-delay: 33s;
}

#img-transition img:nth-of-type(13) {
    animation-delay: 36s;
}

#img-transition img:nth-of-type(14) {
    animation-delay: 39s;
}

#img-transition img:nth-of-type(15) {
    animation-delay: 42s;
}

#img-transition img.transparent {
    opacity: 0;
}

#img-transition img.opaque {
    opacity: 1;
    filter: alpha(opacity=1);
}

img {
    border: 5px solid deepskyblue;
}

h1 {
    font-weight: bold;
    position: relative;
    color: dodgerblue;
    font-size: 48pt;
}

.introdiv {
    position: relative;
    background: #FFFFFF88;
    text-align: center;
}

.introhead {
    font-weight: bold;
    color: dodgerblue;
    font-size: 24pt;
}

.grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.row {
    display: block;
}

.separatordiv {
    margin-top: 20px;
}

.introbold {
    font-weight: bold;
    color: dodgerblue;
    font-size: 20pt;
    text-decoration: underline;
}

.introp {
    text-align: center;
    color: dodgerblue;
    font-size: 18pt;
}

.blueborder {
    margin-top: 30px;
    margin-right: auto;
    margin-left: auto;
    width: 60%;
    border: 5px solid deepskyblue;
}

button {
    color: white;
    background-color: dodgerblue;
    border: 3px solid dodgerblue;
    font-size: 18pt;
    margin: 10px;
}

button:hover {
    color: black;
    background-color: aqua;
    transition: color linear 500ms;
    transition: background-color linear 500ms;
}

.contactimg {
    width: 95%;
    height: auto;
}

.eventWrap {
    width: calc(50% - 30px);
    height: 450px;
    margin-bottom: calc(10vh - 20px);
    padding: 15px;
    display: inline-block;
    float: left;
    text-align: center;
    font-size: 200%;
}

    .eventWrap img {
        max-width: 100%;
        max-height: 100%;
        margin: auto;
        float: none;
    }

@media only screen and (max-width: 1200px) {
    .eventWrap {
        width: calc(100% - 30px);
    }
}