@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
:root{
  --base-clr: #ffffff;
  --line-clr: #1d1e22;
  --hover-clr: #222533;
  --text-clr: #000000;
  --accent-clr: #5e63ff;
  --secondary-text-clr: #000000;
  --sidebar-clr: #000000;
  --svg-clr: #ffffff;
}

/*Styling Footer*/
.site-footer {
  border: 1px solid var(--line-clr);
  border-radius: 1em;
  margin: 20px auto; /* Center the footer */
  padding: 20px;
  background-color: #1e1e1e;
  color: rgb(111, 111, 212);
  text-align: center;
  width: 100%; /* Ensure it spans the full width */
  max-width: 1200px; /* Limit the width on larger screens */
  box-sizing: border-box; /* Include padding and border in width calculations */
}

.site-footer p {
  color: white;
  margin: 0.5em 0; /* Add spacing between paragraphs */
  font-size: 1rem; /* Adjust font size */
}

.site-footer a {
  color: rgb(111, 111, 212);
  text-decoration: none;
  font-size: 1rem; /* Ensure links are readable */
}

.site-footer a:hover {
  text-decoration: underline;
}

.social-icon-img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth animations */
}

.social-icon-img:hover { /* Fixed pseudo-class */
  opacity: 0.7;
  transform: scale(1.1); /* Slight zoom effect on hover */
}

/*.site-footer {
    border: 1px solid var(--line-clr);
    border-radius: 1em;
    margin-bottom: 20px;
    padding: min(3em, 15%);
    background-color: #1e1e1e;
    color: rgb(111, 111, 212);
    padding: 20px 0;
    text-align: center;
    width: 100%;
}
.site-footer p {
  color: white;
}
.site-footer a {
  color: rgb(111, 111, 212);
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
.social-icon-img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  transition: opacity 0.3s ease;
}
.social-icon-img::hover {
  opacity: 0.7;
}*/
/*end styling footer*/


/*creating color list for dark mode*/
.darkmode{
  --base-clr: #000000;
  --line-clr: #ffffff;
  --hover-clr: #222533;
  --text-clr: #ffffff;
  --accent-clr: #5e63ff;
  --secondary-text-clr: #ffffff;
  --sidebar-clr: #000000;
  --svg-clr: #ffffff;
}
#theme-switch{
  height: 50px;
  width: 50px;
  padding: 0;
  border-radius: 50px;
  background-color: #000000;
  margin-left: 5%;
  display: flex;
  justify-content: center;
  align-items: center;
}
#theme-switch svg{
  fill: var(--svg-clr);
}
#theme-switch svg:last-child{
  display: none;
}
.darkmode #theme-switch svg:first-child{
  display: none;
}
.darkmode #theme-switch svg:last-child{
  display: block;
}
*{
  margin: 0;
  padding: 0;
}
html{
  font-family: Poppins, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5rem;
}
body{
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--base-clr);
  color: var(--text-clr);
  display: grid;
  grid-template-columns: auto 1fr;
}

.topheader{
  display: flex;
  margin-bottom: 20px;
}
.maintitle{
  margin: 0;
  padding: 0;
  display: inline-flex;
}

/*new translate widget*/
.language-select img {
  width: 50px;
  height: 30px;
  cursor: pointer;
  margin: 0 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  transition: transform 0.2s;
}

.language-select img:hover {
  transform: scale(1.1);
}
/*end new translate widget*/

/*make translate flag fixed not flow*/
.gtranslate_wrapper{
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 1000;
}
/*end make translate flag fixed*/

.proto_intro{
  background-image: url('images/raising-hand.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--line-clr);
  border-radius: 1em;
  margin-bottom: 20px;
  padding: min(10em, 100%);
  height: 150px;
}

.proto_intro2{
  background-image: url('images/image_header_about_us_g.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--line-clr);
  border-radius: 1em;
  margin-bottom: 20px;
  padding: min(10em, 100%);
  height: 150px;
  position: relative;
  display: flex;
}


#sidebar{
  box-sizing: border-box;
  height: 100vh;
  width: 250px;
  padding: 5px 1em;
  background-color: var(--sidebar-clr);
  border-right: 1px solid var(--line-clr);

  position: sticky;
  top: 0;
  align-self: start;
  transition: 300ms ease-in-out;
  overflow: hidden;
  text-wrap: nowrap;
  

  /*prevent overlapping when scrolling*/
  z-index: 1;
}
#sidebar.close{
  padding: 5px;
  width: 60px;
}
#sidebar ul{
  list-style: none;
}
#sidebar > ul > li:first-child{
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
  .logo{
    font-weight: 600;
  }
}
#sidebar ul li.active a{
  color: var(--accent-clr);

  svg{
    fill: var(--accent-clr);
  }
}

#sidebar a, #sidebar .dropdown-btn, #sidebar .logo{
  border-radius: .5em;
  padding: .85em;
  text-decoration: none;
  color: var(--svg-clr);
  display: flex;
  align-items: center;
  gap: 1em;
}
.dropdown-btn{
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}
#sidebar svg{
  flex-shrink: 0;
  fill: var(--svg-clr);
}
#sidebar a span, #sidebar .dropdown-btn span{
  flex-grow: 1;
}
#sidebar a:hover, #sidebar .dropdown-btn:hover{
  background-color: var(--hover-clr);
}
#sidebar .sub-menu{
  display: grid;
  grid-template-rows: 0fr;
  transition: 300ms ease-in-out;

  > div{
    overflow: hidden;
  }
}
#sidebar .sub-menu.show{
  grid-template-rows: 1fr;
}
.dropdown-btn svg{
  transition: 200ms ease;
}
.rotate svg:last-child{
  rotate: 180deg;
}
#sidebar .sub-menu a{
  padding-left: 2em;
}
#toggle-btn{
  margin-left: auto;
  padding: 1em;
  border: none;
  border-radius: .5em;
  background: none;
  cursor: pointer;

  svg{
    transition: rotate 150ms ease;
  }
}
#toggle-btn:hover{
  background-color: var(--hover-clr);
}

main{
  padding: min(30px, 7%);
}
main p{
  color: var(--secondary-text-clr);
  margin-top: 5px;
  margin-bottom: 15px;
}

.container2{
  margin-bottom: 20px;
  border: 1px solid var(--line-clr);
  border-radius: 1em;
  padding: min(3em, 15%);
  min-height:auto;
  overflow: hidden;
  h2, p { margin-top: 1em }

}
.textinsidecontainer{
  width: 40%;
  float: left;
  text-align: justify;
  
}
.imginsidecontainer{
  margin-top: 1em;
  width: 40%;
  float: right;
  background-position:top;
  background-size: 45.45% contain;
  position: relative;
}

/*test popuop*/
.openPopupVisionButton{
  margin-left: 25.25%; 
  text-decoration: underline; 
  cursor: pointer; 
  background-color: transparent; 
  border-color: transparent;
  color: darkcyan;
  font-weight: bold;
}
.openPopupMissionButton{
  margin-left: 25.25%; 
  text-decoration: underline; 
  cursor: pointer; 
  background-color: transparent; 
  border-color: transparent;
  color: darkcyan;
  font-weight: bold;
}
.popup {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: radial-gradient(circle, rgb(92, 233, 92), rgb(23, 41, 201));
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 60%;
  max-width: 500px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  position: relative;
  text-align: center;
}

.close-popup {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-popup:hover,
.close-popup:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* Responsive design */
@media (max-width: 600px) {
  .popup-content {
      width: 90%;
  }
  .container-article{
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

}
/*end test popup*/

.container{
  border: 1px solid var(--line-clr);
  border-radius: 1em;
  margin-bottom: 20px;
  padding: min(3em, 15%);

  h2, p { margin-top: 1em }
}

/* container carousel */

.container-article{
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  max-width: 800px;
  margin: auto;
}
.main-content {
  flex: 1;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 20px;
  background-color: #f9f9f9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main-content img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 5px;
  margin-bottom: 20px;
}

.main-content h1 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #333;
}

.main-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 10px;
}

/* Extra Image Styling */
#extra-image {
  margin-top: 20px;
  border-radius: 5px;
  max-width: 300px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Carousel Container Styling */
.carousel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Carousel Styling */
.carousel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  max-height: 300px;
  scrollbar-width: none; /* Hide scrollbar */
}

.carousel img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.carousel img:hover {
  border-color: #333;
  transform: scale(1.1);
}

/* Arrows Styling */
.arrow {
  background-color: #ddd;
  border: none;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}

.arrow:hover {
  background-color: #bbb;
}

/* Hide Scrollbar (Optional) */
.carousel::-webkit-scrollbar {
  display: none;
}
/* end carousel style */

.slider{
  position: relative;
  max-width: 100%;
  height: 20rem;
  background-color: #000000;
  box-sizing: border-box;
  border-radius: 1rem;
  padding-top: 1rem;
  display: flex;
  justify-content: left;
  align-items: center;
  overflow-x: auto;
  margin: 20px;

  /*prevent overlapping when scrolling*/
  /**z-index: 1;*/
}

.slider::-webkit-scrollbar{
  display: none;
}

.slider::before{
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #0004;
  border-radius: 1rem;
  backdrop-filter: blur(50px);
}

.slider .cards{
  position: absolute;
  list-style: none;
  padding-inline: 1.6rem;
  display: flex;
  gap: 1rem;
  transition: left 2s cubic-bezier(0.23, 1, 0.32, 1);
  will-change:left;
}

.card {
  color: #ffffff;
  cursor: pointer;
  transition: .4s;
}

.card:hover{
  scale: 1.08;
}

.card div{
  display: flex ;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
}

.card h1{
  text-transform: uppercase;
  font-size: 1.3rem;
  font-weight: lighter;
}

.card p{
  text-transform: capitalize;
  font-size: 1rem;
  font-weight: lighter;
  color: #ffffff;
}

.card img{
  width: 15rem;
  height: 15rem;
  border-radius: 1rem;
}

@media(max-width: 800px){
  body{
    grid-template-columns: 1fr;
  }
  main{
    padding: 2em 1em 60px 1em;
  }
  .container{
    border: none;
    padding: 0;
  }
  .container-article{
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }


  #sidebar{
    height: 60px;
    width: 100%;
    border-right: none;
    border-top: 1px solid var(--line-clr);
    padding: 0;
    position: fixed;
    top: unset;
    bottom: 0;
    /*z-index: 1;*/

    > ul{
      padding: 0;
      display: grid;
      grid-auto-columns: 60px;
      grid-auto-flow: column;
      align-items: center;
      overflow-x: scroll;
    }
    ul li{
      height: 100%;
    }
    ul a, ul .dropdown-btn{
      width: 60px;
      height: 60px;
      padding: 0;
      border-radius: 0;
      justify-content: center;
    }

    ul li span, ul li:first-child, .dropdown-btn svg:last-child{
      display: none;
    }

    ul li .sub-menu.show{
      position: fixed;
      bottom: 60px;
      left: 0;
      box-sizing: border-box;
      height: 60px;
      width: 100%;
      background-color: var(--hover-clr);
      border-top: 1px solid var(--line-clr);
      display: flex;
      justify-content: center;

      > div{
        overflow-x: auto;
      }
      li{
        display: inline-flex;
      }
      a{
        box-sizing: border-box;
        padding: 1em;
        width: auto;
        justify-content: center;
      }
    }
  }
}

.hidden {
  display: none;
}

#textBox {
  width: 300px;
  height: 200px;
  border: 1px solid #000;
  padding: 10px;
  box-sizing: border-box;
  resize: both;
  overflow: auto;
  display: none;
}

/* Responsive styles */
@media (max-width: 600px) {
  #textBox {
      width: 80%;
  }
  .container-article{
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

@media (min-width: 601px) {
  #textBox {
      width: 400px;
  }
  .container-article{
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

