@media only screen and (min-width: 0px) {
    @keyframes spinner {
        0% {
            transform: translate3d(-50%, -50%, 0) rotate(0deg);
        }

        100% {
            transform: translate3d(-50%, -50%, 0) rotate(360deg);
        }
    }

    .spin::before {
        top: 62%;
        animation: 1.5s linear infinite spinner;
        animation-play-state: inherit;
        border: solid 5px #cfd0d1;
        border-bottom-color: #0c80c9;
        border-radius: 50%;
        content: "";
        height: 40px;
        position: absolute;
        left: 50%;
        transform: translate3d(-50%, -50%, 0);
        width: 40px;
        will-change: transform;
    }

    .no-spinner {
        display: none;
    }

    main {
        margin-top: 4rem;
        padding: 1rem 1rem 3.5rem 1rem;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        min-height: 90vh;
        height: auto;
        width: 100%;
        font-size: 1rem;
    }

    .main > div {
        height: 100%;
        width: 100%;
        max-width: 800px;
        background-color: #fff;
        border-radius: 2rem;
        margin: 0rem;
    }

    .main > div > p {
        margin-bottom: 1rem;
        line-height: 2;
    }

    .main div .bottom {
        margin-bottom: 2.75rem;
    }

    .about-container {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column-reverse;
    }

    .about-container > img {
        width: 100%;
        height: auto;
        border-radius: .8rem;
        margin: 1rem 0rem;
    }

    .about-container p {
        margin-bottom: 1rem;
        line-height: 2;
    }

    h1 {
        margin: 1rem 0rem 2rem 0rem;
        font-size: 3.5rem;
    }

    .y-cta {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 5%;
    }

    .y-cta > div {
        width: 100%;
        height: 4rem;
        background: rgb(50,116,255);
        background: -moz-linear-gradient(133deg, rgba(50,116,255,1) 25%, rgb(66, 173, 255) 75%);
        background: -webkit-linear-gradient(133deg, rgba(50,116,255,1) 25%, rgb(66, 173, 255) 75%);
        background: linear-gradient(133deg, rgba(50,116,255,1) 25%, rgb(66, 173, 255) 75%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#3274ff",endColorstr="#46b0ff",GradientType=1);
        text-align: center;
        color: #fff;
        font-weight: 900;
        letter-spacing: 1px;
        text-transform: uppercase;
        font-size: 1.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: .5rem 0rem;
    }

    .y-cta > div > a {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    h1 {
        display: inline;
        font-size: 1.25rem;
        line-height: 2;
    }

    h2 {
        text-transform: uppercase;
        letter-spacing: 2px;
        font-size: 1.5rem;
        margin: 2rem 0rem .5rem 0rem;
        line-height: 1.5;
        font-weight: 800;
    }

    #events, #contactus, #about {
        scroll-margin-top: 5rem;
    }

    .oy-logo-container {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 182px;
    }

    .oy-logo {
        width: 100%;
        max-width: 800px;
        height: auto;
        max-height: 200px;
        margin: 1rem 0rem;
        border-radius: .8rem;
        object-fit: cover;
    }

    /* Ocala Youth Conference */

    .oy-a-center {
        margin: auto;
    }

    .oy-conference-container {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        height: auto;
    }

    .oy-conference-pic {
        width: 100%;
        max-width: 800px;
        height: 100%;
        max-height: auto;
        margin: 1rem 0rem;
        border-radius: .8rem;
        object-fit: cover;
        -webkit-box-shadow: 0px 0px 25px -5px rgba(207,67,67,1);
        -moz-box-shadow: 0px 0px 25px -5px rgba(207,67,67,1);
        box-shadow: 0px 0px 25px -5px rgba(207,67,67,1);
    }

    .oy-conference-text {
        margin-bottom: 1rem;
        line-height: 2;
    }

    .oy-conference-link {
        background-color: #df1350;
        border: 1px solid #df1350;
        padding: 0.75rem 0.75rem;
        color: white;
        border-radius: 2rem;
        letter-spacing: 1px;
        font-size: 16px;
        font-weight: 800;
        display: block;
        width: 18rem;
        text-align: center;
        margin-top: 0.75rem;
        margin-bottom: 0.7rem;
        transition: .3s all ease-in-out;
    }

    .oy-conference-link:hover {
        width: 19rem;
    }

    hr {
        border-color: #0c80c9;
        border-top-width: 2px;
        background-color: #0c80c9;
    }

    .oy-welcome-container {
        margin: auto;
        width: 100%;
        text-align: center;
        margin-top: .5rem;
        margin-bottom: 1.5rem;
    }

    .oy-welcome {
        font-size: 1.25rem;
        display: inline-block;
        margin: auto;
        font-weight: bold;
    }

    .oc-link {
        color: #0c80c9;
        text-decoration: underline;
        font-weight: bold;
    }

    .contact-buttons {
        display: flex;
        gap: 15px;
    }

    .oy-tel {
        background-color: #007bff;
    border: 1px solid #007bff;
    padding: 0.75rem 0.75rem;
    color: white;
    border-radius: 2rem;
    letter-spacing: 1px;
    font-size: 14px;
    font-weight: 600;
    display: block;
    width: 7rem;
    text-align: center;
    }

    .events-container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        min-height: 5rem;
    }

    #events-container>div:nth-child(1) {
        border-left: .33rem solid #0c80c9;
    }

    .events-container .event {
        display: flex;
        flex-direction: row;
        align-items: center;
        border-top: .1rem solid rgb(199, 199, 199);
        border-right: .1rem solid rgb(199, 199, 199);
        border-left: .1rem solid rgb(199, 199, 199);
        border-bottom: .1rem solid rgb(199, 199, 199);
        width: 100%;
        min-height: 6rem;
        background-color: rgb(241, 241, 241);
    }

    .event-name {
        letter-spacing: 0px;
        margin: 0rem 0rem .5rem 0rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 1rem;
        font-weight: bolder;
        line-height: 1.5;
    }

    .date {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-width: 5rem;
        padding: 1rem 0rem;
    }

    .date>.month {
        text-transform: uppercase;
    }

    .date>.day {
        font-weight: bold;
        font-size: 1.5rem;
    }

    .event-info {
        font-size: .8rem;
        line-height: 1.5;
        padding: 1.5rem 0rem 1.6rem 0rem;
        padding-right: .75rem;
        width: 80rem;
    }

    .event-info>div {
        display: flex;
        flex-direction: row;
    }

    .event-info>.location {
        margin-bottom: 1rem;
        margin-right: .75rem;
    }

    .time {
        margin-bottom: .25rem;
    }

    .event-info img {
        margin-right: .5rem;
    }

    .event-image {
        display: none;
        justify-content: center;
        align-items: center;
        width: (16/9 * 90vw);
        height: 100%;
        border-radius: .75rem;
    }

    .bot {
        display: none;
    }

    .get-directions {
        display: block;
    color: white;
    font-weight: 500;
    padding: 0.5rem 0.5rem;
    border-radius: 0.5rem;
    color: #0c80c9;
    border: 0.15rem solid #0c80c9;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#42a5f5",endColorstr="#68bb6a",GradientType=1);
    width: 98%;
    max-width: 8rem;
    text-align: center;
    }

    .event-img {
        align-self: center;
        justify-self: center;
        margin: auto;
        height: 75%;
        width: 75%;
        border-radius: .75rem;
        -webkit-box-shadow: 0px 1px 63px -25px rgba(0, 0, 0, 0.75);
        -moz-box-shadow: 0px 1px 63px -25px rgba(0, 0, 0, 0.75);
        box-shadow: 0px 1px 63px -25px rgba(0, 0, 0, 0.75);
    }

    .form-control {
            -moz-border-radius: 0;
    -webkit-border-radius: 0;
    -webkit-appearance: none;
    background-color: #eee;
    width: 100%;
    border-width: 0;
    border-radius: 0;
    color: #999;
    font-size: 14px;
    padding: 16px;
    border-radius: .5rem;
    margin-bottom: 1rem;
    }
    .form-control:focus {
        outline-width: 0;
    }
    .submit-btn {
        background-color: #007bff;
        border: 1px solid #007bff;
        padding: .75rem .75rem;
        color: white;
        border-radius: 2rem;
        letter-spacing: 1px;
        font-size: 14px;
        font-weight: 600;
        display: block;
        width: 14.15rem;
        text-align: center;
        margin-top: .75rem;
        margin-bottom: .7rem;
    }
    .main > div > a {
        margin-right: 1rem;
    }
    .contact-container {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: wrap;
    }
    .contact-container > div {
        width: 100%;
    }
    .contact-container p {
        margin-bottom: 1rem;
        line-height: 2;
    }
    .contact-container img {
        width: 100%;
        max-width: 25rem;
        height: auto;
        border-radius: 0.8rem;
        margin: 1.75rem 0rem;
    }
    main div iframe {
        width: 100%;
        max-width: 800px;
        margin-top: 2rem;
        border-radius: .5rem;
    }
}

@media only screen and (min-width: 768px) {
    .form-container {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        align-items: center;
        justify-content: space-between;
    }
    .spin::before {
        top: 53%;
    }

    .event-image {
        display: flex;
    }

    .y-cta {
        gap: 3%;
    }

    .y-cta > div {
        width: 31%;
        height: 4rem;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .y-cta > div > a {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .date {
        min-width: 6rem;
    }

    .event-info {
        font-size: .9rem;
        width: 40rem;
    }
    .form-control {
        width: 48%;
        margin: 0rem 0rem 1rem 0rem;
    }
    #contactus {
        margin-top: 0rem;
    }
    .contact-container {
        justify-content: space-between;
    }
    .contact-container > div {
        margin: auto;
        width: 290px;
    }
    .about-text {
        width: 48%;
    }
    .about-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .about-container > img {
        width: 353.85px;
        height: 338.46px;
    }
}

@media only screen and (min-width: 1024px) {
    .about-container {
        flex-direction: row;
        margin-top: 1.25rem;
    }
    .about-text {
        width: 50%;
    }
    .event-info {
        font-size: .9rem;
        width: 100rem;
    }
    .spin::before {
        top: 56%;
    }
    .contact-container > div {
        margin: 0rem;
        margin-right: 1.75rem;
        width: 350px;
    }
}

@media only screen and (min-width: 1300px) {
    .spin::before {
        top: 56%;
    }
    .main {
        background-color: #fff;
    }
}