:root {
  font-size: 16px;
  font-family: 'Open Sans';
  --text-primary: #EDEDED;
  --text-secondary:  #D1D2D6;
  --bg-primary: #222546;
  --bg-secondary: #474866;
  --transition-speed: 600ms;
}

body {
  color: var(--text-primary);
  background-color: var(--bg-primary);
  margin: 0;
  padding: 0;
}

body::-webkit-scrollbar {
  width: 0.5rem;
}

body::-webkit-scrollbar-track {
  background: #222546;
}

body::-webkit-scrollbar-thumb {
  background: #29658A;
}



.navbar {
  position: fixed;
  background-color: var(--bg-primary);
  transition: width 600ms ease;
  overflow-x: hidden; 
  overflow-y: scroll; 
  z-index: 100;
}

.navbar::-webkit-scrollbar {
  width: 0.25rem;
}

.navbar::-webkit-scrollbar-track {
  background: #29658A;
}

.navbar::-webkit-scrollbar-thumb {
  background: #29658A;
}

.navbar::-webkit-scrollbar-corner {
  background: #29658A;
}




.nav-link-extra::-webkit-scrollbar {
  width: 0.25rem;
}

.nav-link-extra::-webkit-scrollbar-track {
  background: #222546;
}

.nav-link-extra::-webkit-scrollbar-thumb {
  background: #29658A;
}

.nav-link-extra::-webkit-scrollbar-corner {
  background: #222546;
}

.dropdown-content::-webkit-scrollbar {
  width: 0.25rem;
}

.dropdown-content::-webkit-scrollbar-track {
  background: #EDEDED;
}

.dropdown-content::-webkit-scrollbar-thumb {
  background: #29658A;
}

.dropdown-content::-webkit-scrollbar-corner {
  background: #EDEDED;
}


.modal::-webkit-scrollbar {
  width: 0.25rem;
}

.modal::-webkit-scrollbar-track {
  background: #29658A;
}

.modal::-webkit-scrollbar-thumb {
  background: #29658A;
}

.modal::-webkit-scrollbar-corner {
  background: #29658A;
}


.navbar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.nav-item {
  width: 100%;
}

.nav-item:last-child {
  margin-top: auto;
}

.nav-link {
  display: flex;
  align-items: center;
  height: 5rem;
  color: var(--text-primary);
  text-decoration: none;
  filter: grayscale(100%) opacity(0.7);
  transition: var(--transition-speed);
}

.nav-link:hover {
  filter: grayscale(0%) opacity(1);
  background: var(--bg-secondary);
  color: var(--text-secondary);
}


.link-text {
  display: none;
  margin-left: 1rem;
}

.nav-link svg {
  width: 2rem;
  min-width: 2rem;
  margin: 0 1.5rem;
}

.fa-primary {
  color: #00979d;
}

.fa-secondary {
  color: #00979d;
}

.fa-primary,
.fa-secondary {
  transition: var(--transition-speed);
}

.newlogo {
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  font-size: 1.5rem;
  letter-spacing: 0.3ch;
  width: 100%;
  z-index: 101;
}

.newlogo svg {
  padding: 1rem;
  width: 2rem;
  transform: rotate(0deg);
  transition: var(--transition-speed);
  position: fixed;
  left: 1.5rem;
  top: 1rem;
  z-index: 102;
  cursor: pointer;
}

.newlogoclick svg{
  transform: rotate(-180deg);
  margin-left: 9.5rem;
}

.logo {
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  font-size: 1.5rem;
  letter-spacing: 0.3ch;
  width: 100%;
}

  .navbar {
    top: 0;
    width: 0rem;
    height: 100vh;
  }

  .link-text {
    display: inline;
  }

  .navbarlogoclick {
    display: inline;
  }

  .navbar:hover .logo svg
  {
    margin-left: 11rem;
  }

  .navbar:hover .logo-text
  {
    left: 0px;
  }


.dark {
  --text-primary: #EDEDED;
  --text-secondary: #D1D2D6;
  --bg-primary: #222546;
  --bg-secondary: #474866;
  --bg-third: #656792;
  --accent:#D1D2D6;
  --code-primary:#000000;
  --code-secondary:#ffffff;
}

.light {
  --text-primary: #222546;
  --text-secondary: #474866;
  --bg-primary: #EDEDED;
  --bg-secondary: #D1D2D6;
  --bg-third: #b9b9b9;
  --accent:#29658A;
  --code-primary:#ffffff;
  --code-secondary:#000000;
}


.theme-icon {
  display: none;
}

.dark #darkIcon {
  display: block;
}

.light #lightIcon {
  display: block;
}

.rozdili{
  position: relative;
  display: inline-block;
  width: 100%;
 }
 
 .nav-link-extra {
     visibility: hidden;
         position: relative;
     width:100%;
     opacity: 0;
     display: block;
     height: 0rem;
     overflow-x: hidden; 
     overflow-y: scroll;
     color: var(--text-primary);
     transition: 600ms ease;
    
 }
 
 .nav-link-extra a {
     color: #A9AAB5;
     padding: 0.5rem;
     text-decoration: none;
     display: block;
     height: 1rem;
     overflow:hidden;
     transition: 600ms ease;
    white-space: nowrap;
    

 }
 
 .rozdili:hover .nav-link-extra{
     visibility: visible;
     height: 25rem;
     opacity: 1;
     overflow-x: hidden; 
     overflow-y: scroll;
     transition: 600ms ease;
 }
 
 .nav-link-extra a:hover{
     height: auto;
     white-space: normal;
     background: var(--bg-secondary);
     color: var(--text-secondary);
     transition: 600ms ease;
}
     

img {
  align-content: center;
  max-width: 100%;
  height: auto;
}

.container {
  display: flex;
  justify-content: center;
}


.upbar{
  display: block;
  height: 2rem;
  margin-top: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  width: 70%;
  
  background: var(--bg-secondary);
  border-radius: 20px;
}

.upbar[id="upbar"]{
  display: block;
  height: 2rem;
  margin-top: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  width: 70%;
  background: var(--text-secondary);
  border-radius: 20px;
}

.upbar:hover{
background:  #29658A;
transition: 600ms ease;
}

.upbar:hover[id="upbar"]{
background: var(--text-secondary);
}



.maingrid{
  display: grid;
  grid-template-columns: repeat(auto-fit, 1fr);
  width: 70%;
  height: 100%;
  margin: auto;
  padding: 1rem;
  column-gap: 2rem;
}

.maingrid > *{
  padding:1rem;
  
}

.textbox {

  max-width: 23rem;
  min-width: 1px;
  max-height: 7rem;
  min-height: 1px;
  margin-top: auto;
  margin-bottom: 30%;
  background: #29658A;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 57px;
}

h1{

 margin: auto;
 padding: 1rem;
  font-style: normal;
  font-weight: 700;
  
  font-size: 4.5vw;
  text-align: center;
  text-transform: uppercase;
  
  color: #EDEDED;
  
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);  
}

h2{
  position: relative;
  max-width: 25rem;
  min-width: 1rem;
  max-height: 9rem;
  min-height: 1rem;
  top: -20%;

  font-style: normal;
  font-weight: 900;
  font-size: 1.4vw;
  line-height: 150%;
  
  text-transform: capitalize;
  
  color: var(--text-secondary);
  
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);  
}

.grimages{
grid-row: 1/3;
grid-column: 2/2;
}

.bgimg{
  position: relative;
  width: 40rem;
  top: 20%;
  
}

.frontimg{
  position: relative;
  width: 40rem;
  top: -40%;

}

.content{
  width: 70%;
  height: auto;
  margin: auto;
  padding: 1rem;
  margin-top: 1rem;
  color:  var(--text-primary);
  background: var(--bg-secondary);
  border-radius: 40px;
}

.content-frntpg {
  width: 70%;
  height: auto;
  margin: auto;
  padding: 1rem;
  margin-top: 1rem;
  margin-bottom: 10rem;
  color:  var(--bg-secondary);
  background: var(--text-secondary);
  border-radius: 40px;
}

.maincontenttitle{
color: var(--bg-secondary);
margin: auto;
padding: 1rem;
 font-style: normal;
 font-weight: 700;
 
 font-size: 4.5vw;
 text-align: center;
 text-transform: uppercase;
 
 text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);  
}

.linkbox{
display: grid;
grid-template-columns: repeat(3, 1fr);
width: 80%;
height: auto;
margin: auto;
background: #474866;
border-radius: 2rem;
padding: 5%;
color:  #EDEDED;
}

.menu-items{
width: auto;
margin: auto;
font-size: 2vw;
text-align: center;
padding: 5%;
font-weight: 700;
}

.svgbox{
  width: 70%;
  height: 13vw;
  margin: auto;
  background: #EDEDED;
 border-radius: 30%;
 display: flex;
  justify-content: center;
  align-items: center;
}

.svgicon{
 width: 60%;
 height: 60%;
 fill: #474866;
}

.svgbox:hover > svg{
  width: 65%;
  height: 65%;
  fill: #29658A;
}

.buttons{
  display: flex;
justify-content: space-around;
align-items: center;
 flex-wrap: nowrap;
  width: 70%;
  margin: auto;
  margin-top: 1rem;
  margin-bottom: 1rem;
  
 
}

.backbutton{
  width:25%;

 
  background: var(--bg-secondary);
  border-radius: 40px 0px 0px 40px;
}

.backbutton:hover{
  background: var(--bg-third);
  transition: 600ms ease;
}

.forwardbutton{
  width:25%;
  
  background: var(--bg-secondary);
  border-radius: 0px 40px 40px 0px;
}

.forwardbutton:hover{
  background: var(--bg-third);
  transition: 600ms ease;
}

.arrows{
  width: 2rem;
  height: 2rem; 
  fill: var(--text-primary);
}

.navbox{
  display: flex;
  justify-content: center;
}

.navbox:hover > svg{
  fill: var(--text-secondary);
  transition: 600ms ease;
}

.dropbtn {
  background-color:var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: bold;
  width: 100%;
  height: 2rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
}

.dropdown {
  position: relative;
  display: inline-block;
  width: 100%;
}

.dropdown-content {
  visibility: hidden;
  position: absolute;
  background-color: var(--bg-secondary);
  width:100%;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  opacity: 0;
  height: 0rem;
  overflow: hidden;
  transition: height 600ms ease;
}

.dropdown-content a {
  color: var(--text-secondary);
  padding: 0.5rem;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
color: var(--text-primary);
background-color: var(--bg-primary);
transition: 600ms ease;
}

.dropdown:hover .dropdown-content {
  
  opacity: 1;
  height: 20rem;
  visibility: visible;
  overflow-x: hidden; 
  overflow-y: scroll;
  transition:  600ms ease;
}

.dropdown:hover .dropbtn {
  color: var(--text-secondary);
  background-color: var(--bg-third);
  transition: 600ms ease;
}

.dropdown-content .active{
  background-color:#29658A;
  color: #EDEDED;
}

h4{
 text-align: center;  
}

p{
 text-align: justify;
 padding: 0.5rem;
}

.imgborders{
  width:fit-content;
  margin: auto;
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: var(--bg-third);
  border-radius: 1rem;
  text-align: center;
}

.code{
  width:80%;
  margin: auto;
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: var(--code-primary);
  color: var(--code-secondary);
  border-radius: 1rem;
  text-align: left; 
  font-family: "Courier New", monospace;
  line-height: 1.5rem;
}

.img-grid{
display: grid;
gap: 1rem;

grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
grid-auto-rows: 240px;
}

.gallery-img{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #353535;
  font-size: 3rem;
  color: #fff;
  box-shadow: rgba(3, 8, 20, 0.1) 0px 0.15rem 0.5rem, rgba(2, 8, 20, 0.1) 0px 0.075rem 0.175rem;
  height: 100%;
  width: 100%;
  border-radius: 4px;
  transition: all 500ms;
  overflow: hidden;
  content-visibility: hidden;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.gallery-img:hover{
  box-shadow: rgba(2, 8, 20, 0.1) 0px 0.35em 1.175em, rgba(2, 8, 20, 0.08) 0px 0.175em 0.5em;
  transform: translateY(-3px) scale(1.1);
}

.modal {
  display: none; 
  position: fixed; 
  z-index: 1; 
  padding-top: 100px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: scroll; 
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.9);
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.closecode {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.closecode:hover,
.closecode:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.modal-content {
  margin: auto;
  display: block;
  height: 500px;
  width: 80%;
  max-width: 700px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

#caption{
text-align: center;
padding: 1rem;
color: #EDEDED;
}

footer{
text-align: center;
padding: 2rem;
margin-top: 15rem;
background-color: var(--bg-secondary);
}


.codes{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #353535;
  font-size: 3rem;
  color: #fff;
  box-shadow: rgba(3, 8, 20, 0.1) 0px 0.15rem 0.5rem, rgba(2, 8, 20, 0.1) 0px 0.075rem 0.175rem;
  height: 100%;
  width: 100%;
  border-radius: 4px;
  transition: all 500ms;
  overflow: hidden;
  content-visibility: hidden;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

}

.listN{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--bg-primary);
  font-size: 3rem;
  color: var(--text-primary);
  box-shadow: rgba(3, 8, 20, 0.1) 0px 0.15rem 0.5rem, rgba(2, 8, 20, 0.1) 0px 0.075rem 0.175rem;
  height: 100%;
  width: 100%;
  border-radius: 4px;
  transition: all 500ms;
  overflow: hidden;
  content-visibility: visible;

}

#code-content{
  margin: auto;
  display: block;
  width: 70%;
  margin-bottom: 30rem;
}

.listN:hover{
  box-shadow: rgba(2, 8, 20, 0.1) 0px 0.35em 1.175em, rgba(2, 8, 20, 0.08) 0px 0.175em 0.5em;
  transform: translateY(-3px) scale(1.1);
}

@media only screen and (max-width: 600px) {
.maingrid{
  width: 100%;
  grid-template-columns: 1fr;
  grid-row-gap: 100px;
  padding: 0;
  gap: 0;
  
}
.grimages{
padding: 0;
grid-row: 1;
grid-column: 1;
height: 3rem;

}

.bgimg
{display: none;
}

.frontimg
{display: none;
}
.textbox{
display: flex;
width: 100%;
padding: 0;
height: 10rem;
margin-bottom: 0;
align-items: center;
max-width: 100%;
border-radius: 2rem;
}
h1{
  font-size: 2rem;
 text-align: center;

}
h2{
  top: 0.3rem;
  font-size: larger;
padding: 0;
}
.content-frntpg{
  margin-top: 3.5rem;
  width: 98%;
  height: 50vw;
  padding: 0;
}

.content{
  width: 90%;
}
.linkbox{
width: 100%;
height: 50vw;
padding: 0%;
border-radius:0 0 3rem 3rem;
}
.maincontenttitle{
  font-size: 2rem;
}

.menu-items{
  font-size: 1rem;
}
.svgbox{
height: 30vw;
width: 30vw;  
}

#upbar{
  width: 90%;
}

.upbar{
  width: 90%;
}
.buttons{
  width: 90%;
}

}