/*Universal Styles*/

* {
    font-family: 'Montserrat Alternates', sans-serif;
    box-sizing: border-box;
    font-size: 16px;
    margin: 0;
    padding: 0;
    max-width: 100%;
    background-color: #f1f2f6;
    top: 72.6px;
    
   
}

body {
   
    
}

.button{
    height: 50px;
    width: 8rem;
    margin-right: 0.5rem;
    font-weight: 500;
    outline: none;
    border: none;
    padding: 12px 24px 12px 24px;
    font-size: 18px;
    border-radius: 10px;
    background: #f1f2f6;
    box-shadow:  -3px -3px 7px #ffffffb2,
        3px 3px 7px rgba(94, 104, 121, 0.945);
}

.button:hover {
    color: black;
}

.button:active{
    box-shadow:  inset -3px -3px 7px #ffffffb2,
    inset 3px 3px 7px rgba(94, 104, 121, 0.945);       
}

.gridcontainer {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: 25rem 25rem 20rem 20rem 25rem 25rem;
    grid-template-areas: 
        "timothy bsphoto rightcolumn"
        "battles about ."
        "psalm . ."
        "genesis . .";
    width: 94%;
    grid-gap: 1.5rem;
    min-height: 0;
    min-width: 0;
    margin: 7rem 5rem 5rem 5rem;
}


/*Scrollbar*/

/* width */
::-webkit-scrollbar {
  width: 2rem;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f2f6;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #EC8181;
  box-shadow:  -3px -3px 7px #ffffffb2,
        4px 4px 8px rgba(94, 104, 121, 0.945);
    border-radius: 7px;
}
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}



/*Header*/

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1 {
    padding-left: 3rem;
}
h1,
h2,
h3,
a {
	color: #EC8181;
}

a:hover {
   color: black;
}
a {
	text-decoration: none;
}

.logo {
	margin: 0;
	font-size: 1.95em;
}

.nav {
	margin-top: 5px;
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
}
.logo a,
.nav a {
	padding: 10px 15px;
	text-transform: uppercase;
	text-align: center;
	display: block;
    margin-right: 0.5rem;
}

.nav a {
	color:#EC8181;
	font-size: 0.99em;
    font-weight: 900;
}

.nav a:hover {
	
}

.header {
    
    min-width: 100%;
	padding: 0.6rem 0; 
	background-color: #f1f2f6;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    box-shadow:  -3px -3px 7px #ffffffb2,
        3px 3px 7px rgba(94, 104, 121, 0.945);
}

.material-symbols-outlined {
    font-size: 40px;
}

/* =================================    
  Media Queries
==================================== */




@media (min-width: 769px) {
	.header, 
	.nav {
		display: flex;
	}
	.header {
		flex-direction: row;
		align-items: center;
            width: 80%;
            margin: 0 auto;
            max-width: 1150px;
	}

}

@media (min-width: 1024px) {
	.header {
		flex-direction: row;
		justify-content: space-between;
       
	}
}

@media (max-width: 1024px) {
    h1 {
        font-size: 1.2rem !important;
        padding: 0;
        text-align: center;
    }
}

@media only screen and (max-width: 768px) {
    .gridcontainer {
        grid-template-rows: 1fr;
        grid-template-columns: 95%;
        grid-template-areas:
        "bsphoto"
        "about "
        "rightcolumn"
        "timothy"
        "battles"
        "psalm"
        "genesis";
        margin-top: 8rem;
        margin-bottom: 0;
        margin-right: 0;
        margin-left: 0;
        justify-content: center;

    }
 
    .button {
        height: 40px;
        width: 4rem;
    }
    .bsphoto {
        display: flex;
    }
    .bsphoto img {
       height: 13rem !important;
        flex-shrink: 1;
    }
    
    h1 {
        text-align: center;
    }
    
    .flexbox {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
        margin-top: 8rem;
        margin-bottom: 0;
        margin-right: 0;
        margin-left: 0;
        
    }
    .flexbox img {
        width: 100% !important;
        margin-left: 0 !important;
        left: 0;
    }
    
    .example {
        flex-wrap: wrap;
    }
    .map {
        width: 100% !important;
        left: 0 !important;
    }
}
/*About Section*/

.bsphoto {
    grid-area: bsphoto;
    box-shadow:  -3px -3px 7px #ffffffb2,
        3px 3px 7px rgba(94, 104, 121, 0.945);
    padding: 1rem;
    border-radius: 10px;
    height: 26rem;
    display: flex;
    justify-content: center;
}
.bsphoto img {
  height: 24rem;
    display: flex;
    justify-content: center;
    align-self: center;
    
}

.about {
    grid-area: about;
      border-radius: 10px;
    background: #f1f2f6;
    box-shadow:  -3px -3px 7px #ffffffb2,
        3px 3px 7px rgba(94, 104, 121, 0.945);
    padding: 1rem;
    
}
/* Current/past bible studies*/

.biblestudy {
    
}

.timothy {
    grid-area: timothy;
    
}

.battles {
    grid-area: battles;
    
}

.psalm {
    grid-area: psalm;
}

.genesis {
    grid-area: genesis;
}

figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 12px 24px 12px 24px;
    border-radius: 10px;
    background: #f1f2f6;
    box-shadow:  -3px -3px 7px #ffffffb2,
        3px 3px 7px rgba(94, 104, 121, 0.945);
    
}

figcaption {
    border-radius: 10px;
    padding: 0.5rem;
    text-align: center;
    
}

img {
    
    border-radius: 10px;
    height: 14rem;
    
}

/*Church website*/

.ricc {
    padding: 0.5rem;
    width: 80%;
    height: auto;
    border-radius: 1rem;
    margin-top: 72.6px;
    
}
.ricc:hover {
    opacity: 50%;
}

.ricc:active{
    box-shadow:  inset -3px -3px 7px #ffffffb2,
    inset 3px 3px 7px rgba(94, 104, 121, 0.945);       
}

.ricc img {
    background-color: none;
    height: 6rem;
    width: auto;
    border-radius: 10px;
    box-shadow:  -3px -3px 7px #ffffffb2,
        3px 3px 7px rgba(94, 104, 121, 0.945); 
    border: 2px solid white;
}

.rightcolumn {
    grid-area: rightcolumn;
}

.email {
     border-radius: 10px;
    background: #f1f2f6;
    box-shadow:  -3px -3px 7px #ffffffb2,
        3px 3px 7px rgba(94, 104, 121, 0.945);
    height: 6rem;
    width: 13.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.email:active {
    opacity: 50%;
}
 
/*Location Page*/

.map {
    
    position: absolute;
    width: 60%;
    height: auto;
    top: 7rem;
    left: 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
      padding: 24px;
    font-size: 18px;
    border-radius: 1rem;
    background: #f1f2f6;
    box-shadow:  -3px -3px 7px #ffffffb2,
        3px 3px 7px rgba(94, 104, 121, 0.945);
    text-align: center;
    
}

.map img {
    width: 95%;
    height: auto;
   
}

.map a {
    margin-top: 1rem;
}


/*About Page*/

.flexbox {
    margin-top: 7rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    
}


.flexbox img {
    margin-left: 45%;
    width: 45%;
    height: auto;
    border-radius: 1rem;
    background: #f1f2f6;
    box-shadow:  -3px -3px 7px #ffffffb2,
        3px 3px 7px rgba(94, 104, 121, 0.945);
    text-indent: 2rem;
    padding: 1rem;
}
.example {
    margin-right: 20%;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
      padding: 24px;
    font-size: 18px;
    border-radius: 1rem;
    background: #f1f2f6;
    box-shadow:  -3px -3px 7px #ffffffb2,
        3px 3px 7px rgba(94, 104, 121, 0.945);
    text-indent: 2rem;
    
}

.example h2 {
    text-align: center;
}