/* ==== Base & Body ==== */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Courier', monospace;
  background: url('./media/background.png') no-repeat center center fixed;
  background-size: repeat;
  background-attachment: scroll;
  scroll-behavior: smooth;
  background-repeat: repeat-y;
  background-repeat: repeat-x;
}



.scroll-to-top {
  animation-name: appear;
  animation-timeline: scroll(y);
    padding: 12px 24px;
    color: rgb(0, 55, 0);
    background-color: #056839; 
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    rotate: 270deg;
}

.scroll-to-top:hover {
    transform: scale(1.05); 
    color: #000000;
    background-color: rgb(0, 900, 0); 
  }

  .scroll-to-top{
    transition: all 0.2s ease;
}

.scroll-to-top:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.scroll-to-top:active {
    transform: scale(1) translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.scroll-to-top:active {
    transform: scale(0.98); 
}

@keyframes appear {
  0%{
    opacity: 0;
    display: none;
    position:fixed;
    bottom: 20px;
  }

  3%{
    opacity: 0;
    display: none;
  }

  10%{
    opacity: 1;
    display: block;
  }

  100%{
    opacity: 1;
    display: block;
    position:fixed;
    bottom: 20px;
  }
}


/* ==== Header + Nav ==== */
.head {
  padding: 8px 0 8px 4%;
  color: #056839;
  font-family: Courier;
  width: 17%;
  float: left;
  border-bottom: 1px solid #eaeae1 296.81;
  display: inline;
  grid-column: 3 / 4;
  margin-top: 30px;
  
}

::-webkit-scrollbar { 
   height: 12px;
}

::-webkit-scrollbar-track {
   background: #DDD6BE;
   border-radius: 6px;
}

::-webkit-scrollbar-thumb {
   background: #056839; 
   border-radius: 6px;
   border: 2px solid #DDD6BE;
}

::-webkit-scrollbar-thumb:hover {
   background: #056839;
}

::-webkit-scrollbar-corner {
   background: #DDD6BE;
}

html {
   scrollbar-color: #056839 #DDD6BE; 
}


::-webkit-scrollbar-thumb {
   background: linear-gradient(180deg, #28a745 0%, #20c997 100%); 
   box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:active {
   background: #056839;
}

.head a {
  padding: 4px 0;
  color: #DDD6BE;
  text-decoration: none;
  grid-column: 3 / 4;
}

#logo {
  padding: 4px 0;
  float: left;
  display: inline;
  grid-column: 4;
}

#logol {
  padding: 4px 0;
  color: #056839;
  text-decoration: none;
  float: right;
  grid-column: 3 / 4;
}

.disptitl {
  float: left;
}

.displogo {
  float: right;
}

.grid {
  margin-top: -10px;
  border: 1px solid transparent;
  position: relative; 
  z-index: 9999;      
  
}




/* ==== Slider / Marquee ==== */
marquee {
  margin: 10px 0 5px;
}

.partner-link {
  padding-right: 40px;
  text-decoration: none;
}

.partner-link:hover {
  text-decoration: none;
}

/* ==== Main Content ==== */
#ndhome {
  width: 90%;
  margin: 10px auto 0;
  padding-top: 10px;
  height: 100%;
}

#Partners {
  background-color: #DDD6BE50;
  width: 90%;
  padding: 10px;
  margin: 0 auto;
  border-radius: 12px;
  height: 74%;
}


h1#intro {
  color: darkgreen;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  font-size: 220%;
}

/* ==== Footer ==== */
.footer {
  width: 100%;
  display: inline-block;
  margin-top: 10px;
  background-color: rgba(255, 255, 255, 0);
  position: relative;
  bottom: 0;
}

#page {
  position: relative;
  min-height: 100%;
}

/* ==== Social Media ==== */
#social_icon {
  float: right;
}

.socialmediaicons {
  margin-left: 20%;
  padding-top: 20px;
  grid-column-start: 12;
  grid-column-end: 15;
}

.social-media {
  float: none;
}

.social-media:hover {
  opacity: 0.7;
}

/* ==== Tabs (Tweets) ==== */
.tab {
  background-color: white;
  width: 276px;
  border-radius: 15px;
  margin-right: 10px;
}

.tab button,
.tablinksr button {
  background-color: #d4efd4;
  width: 50%;
  border: 1px solid #056839;
  border-bottom: none;
  cursor: pointer;
  padding: 4px;
  transition: 0.3s;
}

.tablinksl {
  border-radius: 15px 0 0 0;
}

.tablinksr {
  border-radius: 0 15px 0 0;
}

.tab button:hover {
  background-color: #f3f3f3;
}

.tab button.active {
  background-color: white;
}

.tabcontent {
  background-color: white;
  padding: 6px 12px;
  border-radius: 0 0 15px 15px;
  border: 1px solid #056839;
  border-top: none;
  width: 250px;
  margin-right: 10px;
}

.tabscontent a {
  display: none;
}

.tabcontent a:first-child {
  display: block;
}

.feeds {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 15px;
}

#twitterfeed {
  width: 23%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
}

/* ==== Events ==== */
.events {
  float: left;
  border-radius: 15px;
  border: 1px solid #d3d3d300;
  background-color: #d4efd400;
  padding: 0 10px;
  width: 45%;
}

#div_ev {
  margin-top: 7%;
  display: flex;
  justify-content: center;
  align-items: center;
}

a.event {
  color: #ffffff;
  text-decoration: none;
}

a.event:hover {
  color: #1300ff;
}

/* ==== Upcoming & Past ==== */
#up {
  margin: 0 7px 0 5px;
}

#past {
  margin: 0 12px 0 7px;
}

/* ==== Speech Bubble ==== */
.speech-bubble {
  position: relative;
  background: #d4efd4;
  border-radius: 0.4em;
  padding: 10px 20px;
  font-family: 'Lato', sans-serif;
  font-style: italic;
  font-size: 16px;
  line-height: 20px;
  margin: 5% 3% 0 3%;
  text-align: center;
}

.speech-bubble:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  border: 26px solid transparent;
  border-top-color: #d4efd4;
  border-bottom: 0;
  margin-left: -15px;
  margin-bottom: -15px;
}

.speech-bubble-speaker {
  margin: 14px auto 35px;
  font-family: 'Lato', sans-serif;
  text-align: center;
}

/* ==== Arrow Button ==== */
#arrow {
  display: block;
  padding-top: 20px;
  margin: 0 auto;
}

button.down {
  width: 5em;
  height: 5em;
  background-image: url(media/dark-arrow.svg);
  background-repeat: no-repeat;
  background-position: center;
  text-indent: -10em;
}

button.down.anchored {
  position: absolute;
  bottom: 0;
  left: 50%;
  margin-left: -2.5em;
  height: 4.5em;
  border-radius: 3em 3em 0 0;
}

button.style2 {
  background-color: rgba(171, 243, 186, 0.035);
  border: 2px solid #e5e6e7;
  color: inherit;
}

button.style2:hover {
  background-color: #056839;
  opacity: 0.05;
}

button.style2.down {
  background-image: url(media/arrow.svg);
}

/* ==== Partners ==== */

.img_log {
  width: 300px;
  transition: transform 0.3s ease;
}

.img_log:hover {
  transform: scale(1.2);
}

.link {
    color: #DDD6BE;
    font-weight: bold;
    margin-bottom: 5px;
  }

  a.button-link {
    display: inline-block;
    background-color: #444;
    color: #DDD6BE;        
    text-decoration: none;
    padding: 10px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease;
  }

  a.button-link:hover {
    transform: scale(1.1);
    background-color: #666;
  }

/* ==== Footer Partners ==== */
.partner-link-foot {
  padding-right: 10px;
  text-decoration: none;
}

.partner-link-foot:hover {
  text-decoration: none;
}

#logo_line {
  text-align: center;
  width: 100%;
  border-top: 1px solid #DDD6BE;
  border-bottom: 1px solid #DDD6BE;
  height: 3%;
  padding: 5px 0;
  margin-top: 10px;
}

#logos {
  height: 23px;
}

/* ==== Responsive Layouts ==== */
@media screen and (max-width: 1250px) {
  #twitterfeed {
    margin-top: 5%;
  }

  #div_ev {
    width: 100%;
  }

  #evhome {
    width: 85%;
    margin: 0 auto;
  }

  .tabcontent {
    border-radius: 15px;
  }
}

@media screen and (max-width: 736px) {
  #div_ev {
    width: 90%;
    margin: 0 auto;
    display: inline;
  }

  .tab, .tab button, .tabcontent, .feeds, #twitterfeed, .events {
    float: none;
    margin: 0 auto;
    width: 90%;
  }

  #ndhome {
    margin-top: 10px;
  }

  #intro {
    padding-top: 15%;
    padding-bottom: 15%;
  }

  .events {
    height: 300px;
    margin: 10px auto;
  }
}

/* Additional breakpoints for .events height */
@media screen and (max-width: 1100px) {.events { height: 340px; }}
@media screen and (max-width: 900px)  {.events { height: 350px; }}
@media screen and (max-width: 800px)  {.events { height: 365px; }}
@media screen and (max-width: 680px)  {.events { height: 320px; }}
@media screen and (max-width: 445px)  {.events { height: 340px; }}
@media screen and (max-width: 375px)  {.events { height: 370px; }}
@media screen and (max-width: 361px)  {.events { height: 390px; }}
@media screen and (max-width: 345px)  {.events { height: 400px; }}
@media screen and (max-width: 303px)  {.events { height: 450px; }}
@media screen and (max-width: 257px)  {.events { height: 490px; }}
@media screen and (max-width: 175px)  {.events { height: 530px; }}