@font-face {
  font-family: "segoeui";
  src: url("font/segoe-ui-light.ttf");
  src: url();
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
}

@font-face {
  font-family: "bodybold";
  src: url("font/segoeuithibd.ttf");
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
}


html {
  --yellow: #F0E710;
  --white: #fffdfd;
  --gray-white: #EAEAEA;
  --blue: #3C54EA;
  --red: #e3170a;
  --charcoal: #222823;
  --blue-black: #15192F;
  --gray: #A2ABAB;
  --black: black;

  --font: 'segoeui', Arial, sans-serif;
  --bold: 'bodybold', Arial, sans-serif; 

}

* {
  box-sizing: border-box;
} 

body{
  font-family: var(--font);
  margin: 0;
  line-height: 1.6;
}

header {
  background-color: var(--blue-black);
  color: var(--white);
  padding: 25px;
  padding-bottom: 15px;
  position: relative;
}

label {
  cursor: pointer;
  height: 1.25rem;
  position: absolute;
  right: 1rem;
  top: 1.5rem;
  width: 1.625rem;
  z-index: 1001;
}

span {
  background-color: var(--white);
  border-radius: 2px;
  display: block;
  height: 3px;
  position: absolute;
  width: 100%;
  transform-origin: left;

  &:nth-child(1) {
    top: 0;
  }

  &:nth-child(2) {
    top: 0.5rem;
  }

  &:nth-child(3) {
    top: 1rem;
  }
}

#home {
  margin: 0;
  padding: 0;
  
  
  img {
    width: 30px;
    height: auto;
  }
}

/* nav */
nav {
  background: var(--gray);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  width: 18.75rem;
  position:fixed;
  right: -3000px;
  top: 0;
  z-index: 1000;
}

a {
  transition: transform 0.3s ease-in-out;
}

ul {
  list-style: none;
  margin: 0;
  margin-top: 4rem;
  padding: 2rem;
  

  li {
     margin-bottom: 1.3rem;
     display: flex;
     justify-content: flex-end;
     

    a {
      color: var(--black);
      font-family: var(--bold);
      text-decoration: none;
      padding: 5px;
      border-width: 2px;
      border-radius: 5px;
      border-style: solid;
    }
  }
}

/* Show nav when checkbox is checked */
.nav-toggle:checked ~ nav {
  right: 0;
}
  
.nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
  transform: rotate(45deg);
  top: -2px; /* Fix */
}
  
.nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
  transform: rotate(-45deg);
}

/* welcome photo */
.welcome {
  background-color: var(--blue-black);
  padding: 20px;
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--white);

  h3{
      margin-bottom: 0;
      
  }

  img {
      width: 150px;
      height: 150px;
      border-radius: 50%;
      box-shadow: rgba(0, 0, 0, 0.2) 0 7px 29px 0;
      animation: flip 5s infinite ease-in-out;
  }
}




/* Scripture */
.scripture {
  background-color: var(--yellow);
  margin: 0;
  padding: 10px;
  font-size: 12px;
}

/* giving options */

#waysto { justify-self: center;}


.options {
  margin: 20px;
  display: flex;
  flex-wrap: wrap;
}

.give {
  width: 50%;
  gap: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  transition: opacity 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out;

    img {
        width: 100px;
        height: 100px;
        border-radius: 20%;
        box-shadow: rgba(0, 0, 0, 0.2) 0 7px 29px 0;
    }

    p {
        margin-top: 0;
    }
}


/* connect with us page */

.wrap {
  margin: 30px;
}
.pagetitle {
  margin: 0;
  background-color: var(--yellow);
  padding: 10px;
  text-align: center;
  
}

#addy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#lolo {
  max-width: 600px;
  padding: 30px;
  background-color: var(--gray-white);
  border-radius: 10px;
  margin: 20px;
  box-shadow: rgba(0, 0, 0, 0.16) 0 3px 6px, 
  rgba(0, 0, 0, 0.23) 0 3px 6px;

  img {
    width: 25px;
  }

  a {
    color: var(--blue);
    text-decoration: none;
    background-color: var(--white);
    border-radius: 5px;
    padding: 3px 6px;
  }

}

iframe {
  width: 100%;
  max-width: 450px;
  border-radius: 10px;
  margin: 30px;
  box-shadow: rgba(0, 0, 0, 0.16) 0 3px 6px, 
  rgba(0, 0, 0, 0.23) 0 3px 6px;
  transition: transform 0.3s ease-in-out;
}

#socialbox {
  margin: 50px;
}

#socialmedia { justify-self: center;}

#combo {
  display: flex;
  justify-content: center;
  gap: 35px;
}

.socials {
  align-self: center;
  transition: transform 0.3s ease-in-out;

  img {
    height: 80px;
    width: 80px;
    border-radius: 20%;
    box-shadow: rgba(0, 0, 0, 0.2) 0 7px 29px 0;
    align-self: center;
  }
}



.graycont {
  background-color: var(--gray);
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.graybg {
  margin-top: 25px;
}

.service {
  padding: 15px;
  background-color: var(--white);
  border-radius: 10px;
  margin-bottom: 50px;
  box-shadow: rgba(0, 0, 0, 0.16) 0 3px 6px, 
  rgba(0, 0, 0, 0.23) 0 3px 6px;
  justify-items: center;
  transition: transform 0.3s ease-in-out;

  img {
    width: 100%;
    height: auto;
    border-radius: 5px;
  }

  h2 {
    margin: 10px;
    justify-self: center;
  }

  p {
    font-family: var(--font);
  }
}

#servicebox {
  margin-top: 25px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.servicetime {
  background-color: var(--gray);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 50px;
  box-shadow: rgba(0, 0, 0, 0.16) 0 3px 6px, 
  rgba(0, 0, 0, 0.23) 0 3px 6px;
  justify-items: center;
  transition: transform 0.3s ease-in-out;

  img {
    width: 80px;
    height: auto;
    border-radius: 5px;
  }

  h2 {
    margin: 10px;
    justify-self: center;
  }

  p {
    font-family: var(--font);
  }

  a {
    color: var(--blue);
    text-decoration: none;
    background-color: var(--white);
    border-radius: 5px;
    padding: 3px 6px;
  }
}

/* ministry */
.ministries {
  padding: 15px;
  background-color: var(--gray-white);
  border-radius: 10px;
  margin-bottom: 50px;
  box-shadow: rgba(0, 0, 0, 0.16) 0 3px 6px, 
  rgba(0, 0, 0, 0.23) 0 3px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease-in-out;

  img {
    width: 100%;
    height: auto;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }

  a {
    color: var(--white);
    text-decoration: none;
    background-color: var(--blue);
    border-radius: 5px;
    padding: 5px 7px;
  }

  h2 {
    margin: 10px;
  }
}

.missionvision {
  padding: 15px;
  background-color: var(--white);
  border-radius: 10px;
  margin-top: 30px;
  margin-bottom: 50px;
  box-shadow: rgba(0, 0, 0, 0.16) 0 3px 6px, 
  rgba(0, 0, 0, 0.23) 0 3px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease-in-out;

  img {
    width: 200px;
    height: auto;
    border-radius: 5px;
  }

  h2 {
    margin: 10px;
    justify-self: center;
  }

  p {
    font-family: var(--font);
  }


}



/* footer*/
footer {
  background-color: var(--blue-black);
  color: var(--white);
  text-align: center;
  padding: 20px;
  font-size: 10px;

  h3{
    margin-bottom: 25px; 
  }

  h3 a {
      /* font-weight: 900; */
      color: var(--yellow);
      text-decoration: none;
      padding: 5px;
      border-width: 2px;
      border-radius: 5px;
      border-color: var(--yellow);
      border-style: solid;
    }

    #menu {
      display: flex;
      flex-direction: row;
      gap: 20px;
      align-items: space-around;
    }

}

/* animation and effects */


@keyframes flip {
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

a:hover, .give:hover, #home:hover, iframe:hover, .socials:hover, .ministries:hover, .service:hover {
  transform: scale(1.1); 
}

a:active, .give:active, #home:active, iframe:active, .socials:active, .ministries:active, .service:active {
  transform: translate(2px, 2px);
}

@media (min-width: 620px) {

  /* index */
  header{
    display: none;
  }

  #homebody {
    display: grid;
    grid-template-rows: 50% 50%;
    grid-template-columns: 50% 50%;
    grid-template-areas:
    "leftside rightside"
    "leftside rightside";

  }

  .welcome {
    grid-area: leftside;
    justify-content: center;

    img {
      width: 250px;
      height: 250px; 
    }
  }

  #right {
    grid-area: rightside;

    #topright {
      background-color: var(--gray);
      display: flex;
      justify-content: flex-end;
      gap: 12px;
      padding: 35px;
      margin: 0;

      a {
        color: var(--black);
        font-family: var(--bold);
        text-decoration: none;
        padding: 5px;
        border-width: 2px;
        border-radius: 8px;
        border-style: solid;
      }
    }

    .scripture {
      font-size: 17px;
    }

    #waysto { padding: 25px; }

    .options{
      row-gap: 40px;
      padding: 30px;

      .give {
        flex: 1 1 calc(50% - 20px);

        img {
          width: 80px;
          height: 80px;
        }
      }

    }

    footer {
      background-color: var(--gray);
      color: var(--black);
      font-size: 16px;
      padding: 35px;


      #menu {
        display: none;
      }
    }
  }

  /* connect page */
  .head{
    background-color: var(--gray);
    padding: 25px 35px;
    margin: 0;
    display: flex;
    justify-content: space-between;

    .lefthead {

      .homelogo {
        width: 60px;
      }
    }

    #righthead {
      display: flex;
      align-items: center;
      gap: 10px;
      

      a {
        color: var(--black);
        font-family: var(--bold);
        text-decoration: none;
        padding: 5px;
        border-width: 2px;
        border-radius: 8px;
        border-style: solid;
      }
      
    }
  }

  #connectwrap {
    flex-direction: column;
  }
  

  .graybg, #servicebg {
    display: flex;
    flex-wrap: row wrap;
    justify-content: center;
    gap: 30px;


    .missionvision {
      width: calc(33.33% - 30px);
      max-width: 600px;
      min-width: 200px;
      /* width: 100%;  */
    }
  }

 

  .service {
    justify-self: center;
    max-width: 450px;
    width: 100%; 
  }


 @media (min-width: 850px) {

  #topright {
    gap: 50px;
  }

  #addy {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    #lolo {
      max-width: 500px;
    }

    iframe {
      max-width: 500px;
      height: 320px;
    }
 }

  .graybg, #servicebg {
    display: flex;
    flex-wrap: row wrap;
    justify-content: center;
    gap: 40px;

  
    .service, .servicetime {
      width: calc(33.33% - 35px);
      max-width: 400px;
      min-width: 200px;
      /* width: 100%;  */
    }

  }

 }


  /* ministry page */
  #ministrywrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    justify-items: center;
    margin-inline: auto;
    max-width: 1200px;
    margin-top: 50px 0;
  }

  .ministries {
    max-width: 350px;
    width: 100%; 
  }




 footer {
  font-size: 16px;
 }

 #menu {
  display: none;
}
}
