
/* Design for desktop */
@media only screen and (min-width: 778px){
html{
  scroll-behavior: smooth;
}

p, h1, a, li{
    font-family: myFirstFont;
    /* Fallback: Set a background color. */
    background-color: #CA4246;
    
    /* Create the gradient. */
    background-image: linear-gradient(
            45deg,
            #CA4246 16.666%, 
            #E16541 16.666%, 
            #E16541 33.333%, 
            #F18F43 33.333%, 
            #F18F43 50%, 
            #8B9862 50%, 
            #8B9862 66.666%, 
            #476098 66.666%, 
            #476098 83.333%, 
            #A7489B 83.333%);
    
    /* Set the background size and repeat properties. */
    background-size: 100%;
    background-repeat: repeat;

    /* Use the text as a mask for the background. */
    /* This will show the gradient as a text color rather than element bg. */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
    
    /* Animate the text when loading the element. */
        /* This animates it on page load and when hovering out. */
        animation: rainbow-text-simple-animation-rev 1.5s ease forwards;

    }

    @font-face {
        font-family: myFirstFont;
        src: url(../font/Colaborate/ColabThi.otf);
      }

    /* Move the background and make it smaller. */
    /* Animation shown when entering the page and after the hover animation. */
    @keyframes rainbow-text-simple-animation-rev {
        0% {
            background-size: 650%;
        }
        40% {
            background-size: 650%;
        }
        100% {
            background-size: 100%;
        }
    }

    /* Move the background and make it larger. */
    /* Animation shown when hovering over the text. */
    @keyframes rainbow-text-simple-animation {
        0% {
            background-size: 100%;
        }
        80% {
            background-size: 650%;
        }
        100% {
            background-size: 650%;
        }
    }

    @keyframes example {
    from {background-color: rgb(174, 238, 24);
    background-color: aqua;
    background-color: rgb(45, 187, 197);}
    to {background-color: yellow;}
    }


body, html {
    height: 100%;
    margin: 0;
    
  }
  
.bg {
    /* The image used */
    background-image: url("../Images/Back.png");
  
    /* half height */
    height: 60%; 
  
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 10px;
    border-radius: 5%;
    box-shadow: 0 0 10px rgba(0, 0, 0, .7);
}

nav{
    font-size:2.5em ;
    text-align: center;
    position: relative;
    top: 50%;
    background-color:white;
    /* font-style: italic; */

}

section.posn h1{
    text-align: center;
    /* font-style: italic; */
}

section h1{
    font-size: xx-large;
    text-align: center;
    /* font-style: italic; */
}

section {
    text-align: center;
    margin: 10px;
    background-color: white;
    font-size: x-large;
}


div.lower{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 5px;
}

nav a{
    margin-left: 2.5%;
    margin-right: 2.5%;
}

nav li:hover{
    animation-name: example;
    animation-duration: 4s;
}

section.posn{
    margin: 25px;
}

section.posn:hover{
    animation-name: example;
    animation-duration: 4s;
}

div section {
    height: auto;
    border-left: 3px solid;
    border-right: 3px solid;
    border-image: 
    linear-gradient(
    to bottom, 
    red, 
    rgba(0, 0, 0, 0)
    ) 1 100%;
    padding:50px;
    background-color:snow;
    text-align: center;
}

div section:hover{
    animation-name: example;
    animation-duration: 4s;
}

li.top{
    list-style-type: none;
    display: inline;
}

ul.low li{
  width: max-content
}


h1:hover, p:hover, a:hover{
    animation: rainbow-text-simple-animation 0.5s ease-in forwards;
   
}

div.lowerbg{
    /* The image used */
   background-image: url("../Images/Logo.png");
  
   /* half height */
   height: 400px; 
   width: 400px;

   border-radius: 50%;
    
   /* Center and scale the image nicely */
   background-position: center;
   background-repeat: no-repeat;
   background-size: cover;
   margin-right: auto;
}

div.upperbg{
    /* The image used */
   background-image: url("../Images/services1.PNG");
  
   /* half height */
   height: 400px; 
   width: 400px;

   border-radius: 50%;
    
   /* Center and scale the image nicely */
   background-position: center;
   background-repeat: no-repeat;
   background-size: cover;
   /* margin: 100px; */
   margin-left: auto
}


div.bottom{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 20px;
    border-radius: 5%;
    padding: 2%;
    box-shadow: 0 0 10px rgba(0, 0, 0, .7);
}

div.upperbgone{
  margin-left: 10%;
}

div.lowerbgone{
  margin-right: 10%;
}



/*W3 schools*/

* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {opacity: .2}
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .2}
  to {opacity: 1}
}

div > p{
    font-size: 1.25rem;
    font-weight: bold;
}

/*W3 schools scrollbar*/

 /* Style the header: fixed position (always stay at the top) */
 .header {
  position: fixed;
  top: 0;
  z-index: 1;
  width: 100%;
  background-color: #f1f1f1;
}

/* The progress container (grey background) */
.progress-container {
  width: 100%;
  height: 6px;
  background: white;
}

/* The progress bar (scroll indicator) */
.progress-bar {
  height: 6px;
  background: #4caf50;
  width: 0%;
} 

/* Events section */
.box { 
  width: 880px;
  height: 330px;
  border-radius: .5em;
}


.sunrise {
  position: absolute;  /* remove from flow so sunset is placed on top */

  background:  url(../Images/first.png) no-repeat;
  box-shadow: 0 0 10px rgba(0, 0, 0, .7);
  background: linear-gradient(90deg, rgba(131,58,180,1) 0%, rgba(250,253,29,1) 50%, rgba(252,176,69,1) 100%);
}

.slider {
  /* set initial width */
  width: 520px;
         
  /* hide the content that overflows (to allow second box to show through) */
 overflow: hidden;
 display: inline-block;
         
  /* skew container so that it has angled edge, and set up transition */
 transform: skewX(-20deg);
 transition: width 1.2s ease-in-out;

  /* give negative margin to remove gap caused by left hand skew */
  margin-left: -76px;
         
  /* hide pointer events for unseen content */
  pointer-events: none;
}

.sunset {
  /* skew back by negative of parent’s skew so contents is upright */
  transform: skewX(20deg);
  margin-left: 76px; /* give margin to push content away from left slanted edge */
 /* background: url(../../Images/second.png) no-repeat; */
 pointer-events: auto;    /* allow pointer events for the box */
 background: linear-gradient(0deg, rgba(34,193,195,1) 0%, rgba(100,253,45,1) 100%);
 text-align: start;
}
/* 
.slider {
  give negative margin to remove gap caused by left hand skew
  margin-left: -76px;
         
 hide pointer events for unseen content
 pointer-events: none;
} */

.slider:hover {
  width: 760px;
}
      
.sunrise:hover + .slider { 
  width: 250px;
}

div.event{
  width: 65%;
  margin-left: 5%;
  margin-bottom: 4%;
}

div.sunrise > a{
  font-size: 4rem; 
  letter-spacing: 0.2em; 
  position: relative; top: 80%;
}

h1::first-letter{
  font-size: 200%; 

}

div.sunset > a{
  font-size: 4rem; 
  letter-spacing: 0.2em; 
}

div.contact{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 2%;
  grid-gap: 10px;
}

div.contact div{
  height: 250px;
}

div.contact > h1{
  width:max-content;
  height: max-content;
  margin: auto;
  position: relative;
  top: 70%;
  text-align: center;
}

div.grids{
  display:grid; 
  grid-template-columns: repeat(3,1fr);   
  background: #011F2A; 
  border-radius: 2%; 
  box-shadow: 0 0 10px rgba(0, 0, 0, .7); 
  grid-column:2
}
div.grids p{
  font-size: 1.5rem; 
  width: max-content; 
  margin: auto;
 }

div.grids > div{
  text-align: center;
  position: relative;
  top: 40%; 
   height: 50%;
}
div.grids a:hover p::first-letter{
  font-size: 200%;
}

img.grid{
  height: 80px;
}

img.grid:hover{
  height: 50px;
}

h1#contacts{
  width: max-content;
  position: relative; 
  left: 45%;
}
}
 /* ******************************************************************************************************************* */
 /* *********************************************************************************************************************** */

 /* Mobile based wesite  */
@media only screen and (max-width: 778px){
  html{
    scroll-behavior: smooth;
  }
  
  p, h1, a, li{
      font-family: myFirstFont;
      /* Fallback: Set a background color. */
      background-color: #CA4246;
      
      /* Create the gradient. */
      background-image: linear-gradient(
              45deg,
              #CA4246 16.666%, 
              #E16541 16.666%, 
              #E16541 33.333%, 
              #F18F43 33.333%, 
              #F18F43 50%, 
              #8B9862 50%, 
              #8B9862 66.666%, 
              #476098 66.666%, 
              #476098 83.333%, 
              #A7489B 83.333%);
      
      /* Set the background size and repeat properties. */
      background-size: 100%;
      background-repeat: repeat;
  
      /* Use the text as a mask for the background. */
      /* This will show the gradient as a text color rather than element bg. */
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent; 
      
      /* Animate the text when loading the element. */
          /* This animates it on page load and when hovering out. */
          animation: rainbow-text-simple-animation-rev 1.5s ease forwards;
  
      }
  
      @font-face {
          font-family: myFirstFont;
          src: url(../font/Colaborate/ColabThi.otf);
        }
  
      /* Move the background and make it smaller. */
      /* Animation shown when entering the page and after the hover animation. */
      @keyframes rainbow-text-simple-animation-rev {
          0% {
              background-size: 650%;
          }
          40% {
              background-size: 650%;
          }
          100% {
              background-size: 100%;
          }
      }
  
      /* Move the background and make it larger. */
      /* Animation shown when hovering over the text. */
      @keyframes rainbow-text-simple-animation {
          0% {
              background-size: 100%;
          }
          80% {
              background-size: 650%;
          }
          100% {
              background-size: 650%;
          }
      }

  body, html {
      height: 100%;
      margin: 0;
    
    }
    
  .bg {
      /* The image used */
      background-image: url("../Images/Back.png");
    
      /* half height */
      height: 60%; 
    
      /* Center and scale the image nicely */
      background-position: center;
      background-repeat: no-repeat;
      background-size: cover;
      margin: 10px;
      border-radius: 5%;
      box-shadow: 0 0 10px rgba(0, 0, 0, .7);
  }
  
  nav{
      font-size:2.5em ;
      text-align: center;
      position: relative;
      top: 50%;
      background-color:white;
      /* font-style: italic; */
  
  }
  
  section.posn h1{
      text-align: center;
      /* font-style: italic; */
  }
  
  section h1{
      font-size: xx-large;
      text-align: left;
      /* font-style: italic; */
  }

  section.one, section.two{
    padding: 4%;
  }
  section p{
    text-align: left;
  }
  
  section {
      text-align: center;
      background-color: white;
      font-size: x-large;
  }
  
  
  div.lower{
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      grid-gap: 5px;
      margin: 2%;
  }
  
  nav a{
      margin-left: 2.5%;
      margin-right: 2.5%;
  }
  
  nav li:hover{
      animation-duration: 4s;
  }
  
  section.posn{
      margin: 25px;
  }
  
  section.posn:hover{

      animation-duration: 4s;
  }
  
  div section {
      height: min-content;
      border-left: 3px solid;
      border-right: 3px solid;
      border-image: 
      linear-gradient(
      to bottom, 
      red, 
      rgba(0, 0, 0, 0)
      ) 1 100%;
      background: linear-gradient(0deg, rgba(21,23,19,1) 46%, rgba(34,193,195,1) 100%);
      text-align: center;
  }
  
  
  li.top{
      list-style-type: none;
      display: inline;
  }

  ul.low li{
    width: max-content
  }
  
  
  h1:hover, p:hover, a:hover{
      animation: rainbow-text-simple-animation 0.5s ease-in forwards;
     
  }
  
  div.lowerbg{
      /* The image used */
     background-image: url("../Images/Logo.png");
    
     /* half height */
     height: 200px; 
     width: 200px;
  
     border-radius: 50%;
      
     /* Center and scale the image nicely */
    
     background-repeat: no-repeat;
     background-size: cover;
     margin: auto;
  
  }
  
  div.upperbg{
      /* The image used */
     background-image: url("../Images/services1.PNG");
    
     /* half height */
     height: 200px; 
     width: 200px;
  
     border-radius: 50%;
      
     /* Center and scale the image nicely */
     
     background-repeat: no-repeat;
     background-size: cover; 
     margin: auto;
  }
  
  
  div.bottom{
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      border-radius: 5%;
      padding: 2%;
      box-shadow: 0 0 10px rgba(0, 0, 0, .7);
      margin: 5%;
  }
  


  /*W3 schools*/
  
  * {box-sizing:border-box}
  
  /* Slideshow container */
  .slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
  }
  
  /* Hide the images by default */
  .mySlides {
    display: none;
  }
  
  /* Next & previous buttons */
  .prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
  }
  
  /* Position the "next button" to the right */
  .next {
    right: 0;
    border-radius: 3px 0 0 3px;
  }
  
  /* On hover, add a black background color with a little bit see-through */
  .prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
  }
  
  /* Caption text */
  .text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
  }
  
  /* Number text (1/3 etc) */
  .numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
  }
  
  /* The dots/bullets/indicators */
  .dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
  }
  
  .active, .dot:hover {
    background-color: #717171;
  }
  
  /* Fading animation */
  .fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
  }
  
  @-webkit-keyframes fade {
    from {opacity: .2}
    to {opacity: 1}
  }
  
  @keyframes fade {
    from {opacity: .2}
    to {opacity: 1}
  }
  
  div > p{
      font-size: 1.15rem;
      font-weight: bold;
  }
  
  /*W3 schools scrollbar*/
  
   /* Style the header: fixed position (always stay at the top) */
   .header {
    position: fixed;
    top: 0;
    z-index: 1;
    width: 100%;
    background-color: #f1f1f1;
  }
  
  /* The progress container (grey background) */
  .progress-container {
    width: 100%;
    height: 6px;
    background: white;
  }
  
  /* The progress bar (scroll indicator) */
  .progress-bar {
    height: 6px;
    background: #4caf50;
    width: 0%;
  } 
  
  /* Events section */
  .box { 
    width: 880px;
    height: 330px;
    border-radius: .5em;
  }
  
  
  .sunrise {
    position: absolute;  /* remove from flow so sunset is placed on top */
  
    background:  url(../Images/first.png) no-repeat;
    box-shadow: 0 0 10px rgba(0, 0, 0, .7);
    background: linear-gradient(90deg, rgba(131,58,180,1) 0%, rgba(250,253,29,1) 50%, rgba(252,176,69,1) 100%);
  }
  
  .slider {
    /* set initial width */
    width: 520px;
           
    /* hide the content that overflows (to allow second box to show through) */
   overflow: hidden;
   display: inline-block;
           
    /* skew container so that it has angled edge, and set up transition */
   transform: skewX(-20deg);
   transition: width 1.2s ease-in-out;
  
    /* give negative margin to remove gap caused by left hand skew */
    margin-left: -76px;
           
    /* hide pointer events for unseen content */
    pointer-events: none;
  }
  
  .sunset {
    /* skew back by negative of parent’s skew so contents is upright */
    transform: skewX(20deg);
    margin-left: 76px; /* give margin to push content away from left slanted edge */
   /* background: url(../../Images/second.png) no-repeat; */
   pointer-events: auto;    /* allow pointer events for the box */
   background: linear-gradient(0deg, rgba(34,193,195,1) 0%, rgba(100,253,45,1) 100%);
   text-align: start;
  }

  
  .slider:hover {
    width: 760px;
  }
        
  .sunrise:hover + .slider { 
    width: 250px;
  }
  
  /* div.event{
    width: 65%;
    margin: auto;
    margin-bottom: 4%;
  } */
  
  div.sunrise > a{
    font-size: 4rem; 
    letter-spacing: 0.2em; 
    position: relative; top: 80%;
  }
  /* event ends */
  
  h1::first-letter{
    font-size: 200%; 
  
  }
  
  div.sunset > a{
    font-size: 4rem; 
    letter-spacing: 0.2em; 
  }
  
  div.contact{
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    margin: 2%;
    grid-gap: 10px;
  }

  div.contact > h1{
    width:max-content;
    height: max-content;
    /* margin: auto; */
    text-align: center;
  
  
  }
  
  div.contact div{
    height: auto;
  }

  div.grids{
    display:grid; 
    grid-template-columns: repeat(3,1fr);   
    background: #011F2A; 
    border-radius: 2%; 
    box-shadow: 0 0 10px rgba(0, 0, 0, .7); 
  }

  div.grids p{
    font-size: 1.5rem; 
    width: max-content; 
    margin: auto;
   }
  
  div.grids{
    text-align: center;
    position: relative;
    top: 40%; 
    height: 50%;
   }



  img.grid{
    height: 40px;
    padding-top: 2%;
  }

 

  h1#contacts{
    text-align: center;
    
  }
  }

  /* Restricting of showing event element aross diff devices */
  @media screen and (min-width: 0px) and (max-width: 950px) {
    div.event {    display: none;  }
    div.desktop {    display: block;  }
    div.desktop1{display: block;}
  }

  @media screen and (min-width: 950px) {
    div.event {    display: block;  }
    div.desktop {    display: none;  }
    div.desktop1{display: none;}
  }


  @media screen and (min-width: 0px) and (max-width: 950px) {
    div.desktop{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  margin: 3%;
  grid-gap: 10px;

}

div.desktop > div{
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, .7);
  height: 200px;
  border-radius: 2%;
  font-size: 2em;
}

div.desktop > div > a{
  position: relative;
  top: 40%;
}
  }