/* Global CSS Rules */

@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap');

* {
    -webkit-font-smoothing: antialiased;
}

html {
    font-family: sans-serif;
    font-size: 1em;
    line-height: 1.5em;
}

.navbar-nav {
    --bs-navbar-hover-color: #308c58;
    --bs-navbar-color: #01261C;
    --bs-secondary-color: yellow;
}

.navbar-toggler {
    margin: 15px auto 15px auto;
}

.navbar-toggler-icon {
    margin: 0;
}

.dropdown-menu > li > a:hover {
    background-image: none;
    background-color: #FEFCF3;
    color: #308c58;
    text-decoration: underline;
}

body {
    margin: 30px;
    padding: 5px 40px 40px 40px;
    --bs-body-bg: #FEFCF3;
}

.top-center {
    position: absolute;
    top: 8px;
    left: 47%;
    width: 6%;
}

.bottom-center {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* CSS for Nav and header */
header {
    overflow: visible;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: .5px solid #025939;
    z-index: 9999;
}

h1.page-header {
    font-family: serif;
    color: #01261C;
    font-family: "Josefin Sans", sans-serif;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    display: inline-block;
    text-decoration: none;
}

h1.page-header a {
    text-decoration: none;
    color: #01261C;
}
h1 small {
    font-size: 18px;
}

/* CSS for Body */


.wrapper {
    clear: both;
    position: relative;
}

#wrap {
    margin: 0;
    position: static;
}

.floatleft {
    float: left;
    margin-right: 1.5em;
    border-radius: 0px;
    padding: 0px;
    box-shadow: -15px -15px #6D9886;
}

.floatright {
    float: right;
    margin: 1.5em;
    border-radius: 0px;
    padding: 0px;
    box-shadow: 15px 15px #6D9886;
}

.center-img {
    padding-top: 10px;
    width: 25%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}



.clear-break {
    clear: both;
}

hr {
    border-style: solid;
    color: #025939;
}

main {
    overflow: auto;
    margin: auto;
    padding: 10px;
}

/* CSS for typography */
h2,
h3,
h4 {
    text-align: left;
    --bs-heading-color: #033120;
    font-family: "Josefin Sans", sans-serif;
    padding-top: 10px;
}

.left-header {
    text-align: left;
}

.center-header {
    text-align: center;
}

.center-txt {
    text-align: center;
}

p {
    font-family: "Roboto", sans-serif;
    color: #01291a;
}

li {
    font-family: "Roboto", sans-serif;
}

strong {
    font-size: 20px;
}

a:link {
    text-decoration: none;
}
/* CSS for Event Page */

.event-image {
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    display: block;
    width: 40%;
    height: auto;

}

.center-ul li {
    list-style-type: none;
}

.event-h3 {
    padding-left: 20px;
}

/* End CSS for event page */

/* For Classes Page */

/* Modal Cards*/
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-card {
    background: white;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 22px;
    cursor: pointer;
}

.read-more {
    margin-left: 6px;
    color: #0066cc;
    text-decoration: underline;
    cursor: pointer;
}
/* End Modal Cards*/
.card {
    --bs-body-bg: #F2F2F0;
    /* Add shadows to create the "card" effect */
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    width: 400px;
    float: left;
    margin: 20px;
}

.center-card {
    margin: auto;
    width: 880px;
}

/* On mouse-over, add a deeper shadow */
.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

/* Add some padding inside the card container */
.container {
    padding: 2px 16px;
}

.card-img {
    width: 400px;
}

/* end classes page */

#xxximg {
    width: 500px;
    height: 375px;
}

#xxximg.fullimg {
    width: 100%;
    height: auto;
}

/* CSS for gallery */

div.gallery {
    margin: 20px auto 5px auto;
    width: 280px;
    text-align: center;
}

div.gallery img {
    width: 100%;
    height: auto;
}

div.desc {
    padding: 15px;
    text-align: center;
}

/* Form CSS */
form {
    width: 80%;
    margin: 30px auto;
}

legend {
    color: #01261C;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 500;
    margin-top: 15px;
    margin-bottom: 15px;
}

fieldset {
    padding: 10px;
}

label {
    display: block;
    margin: 5px 0 5px 0;
    color: #01261C;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.form_h5 {
    margin-top: 10px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 600;
}

input {
    border: 1px solid #4e4e4e;
    border-radius: 5px;
}

input[type=text],
input[type=email] {
    width: 95%;
    margin-bottom: 10px;
}

span {
    display: block;
    color: red;
    font-style: italic;
    margin-bottom: 10px;
}

input[type=submit] {
    font-size: 1em;
    padding: 2px;
    margin: 10px 0 10px 0;
    background-color: #4b4b4b;
    color: #F2F2F0;
    font-weight: normal;
}

textarea {
    width: 95%;
    resize: none;
    height: 80px;
    margin-bottom: 10px;
    border: 1px solid #4e4e4e;
}

#thanks {
    text-align: center;
    font-size: 1em;
}
/* Payment form */
.paypal {
    width: 100%;
}
/* CSS for Footer */

footer {
    clear: both;
    padding: 1em;
    text-align: center;
}

.bottom-center-home {
    position: absolute;
    color:black;
    bottom: 8px;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Responsive rules - apply when screen width is less than 1200px */

/* DESKTOP */
@media all and (min-width:1200px) {
    .topnav {
        padding-top: 5px;
    }
}

/* TABLET */
@media all and (min-width:501px) and (max-width:1199px) {
    h1.page-header {
        float: none;
        margin: auto;
        width: fit-content;
    }

    .topnav {
        width: fit-content;
    }

    #xxximg {
        width: 400px;
        height: 300px;
    }

    .center-card {
        margin: auto;
        width: 440px;
    }

}

/* PHONE */
@media all and (max-width:500px) {
    h1.page-header {
        float: none;
        margin: auto;
        width: fit-content;
    }

    .topnav {
        width: fit-content;
        background-color: #f7d2a6;
    }

    .topnav a {
        padding: 8px 8px;
    }

    #xxximg {
        width: 300px;
        height: 225px;
    }

    .center-card {
        margin: auto;
        width: 440px;
    }
}