@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css);

*{
  margin: 0px;
  padding: 0px;
  font-family: sans-serif;
  box-sizing: border-box !important;
  color: black;
}
body{
  height: 100vh;
  width: 100vw;
  background:url("bg23.png");
}
p{
  font-size: 1.3em !important;
}



/*start of nav*/



#nav{
  background-color:#f7ac08;
  height:15vh;
  color:#009194;
  justify-content: space-evenly ;
  display:flex;
  width: 100vw;
}
.fa{
  display: none !important;
  color: white;
}

#a{
  text-decoration: none;
  color: #ffffff;
  display: flex;
  padding:0 2vw;
  align-items: center;
}

#a:hover{
  color:black;
  background-color:#fdaf08 ;
  border-bottom: solid #ffffff 1px;
  font-weight: 2000;
  border-radius: 1px 4px;
}

li{
list-style: none;
}

.list{
  display:inline-flex;
}

#logo{
  display: inline-flex;
  align-self: center;
  height: 12vh;
  user-select:none;
  width:14vw;
}

.nav2{
  display: flex;
  justify-content: center;
  border-radius:5px 15px;
  padding: 0 1vh;
  box-sizing:border-box;
  width: 75vw;
  align-self: center;
  background-color:#8a6005 ;
  align-items:center;
  overflow: hidden;
  height: fit-content;
}

.colective{
  
  justify-content: space-between;
  font-weight: bolder;
  display: flex;
  padding: 2px;
  height: 4.5vh;
}

.colective1{
  display:none;
}

#par{
  display:none;
}

#icon{
  font-weight: 800;
}

/*end of nav*/
/*main part of homepage*/

#backgroundCover{
  width:100%;
  background-color:rgba(0, 0, 0, 0.415);
}

#mainbox{
  width:70vw;
  margin:auto;
  border-left:solid 1em #562602;
  border-right:solid 1em #562602;
  background-color: #2B1100;
}



/*section of mainbox*/



.section{
display:flex;
width:100%;
border-top:10px solid #562602;
}

#s1{
justify-content: start;
}

#s2{
justify-content: end;
}



/*contents of the sections*/



.contentbox{
  margin:5px;
  display:flex;
  width:95%;
  background-color: rgb(216, 213, 213);
}

.cb1{
min-width: 50%;
margin: 10px;
}
.cb1 h1{
  font-size:3em;
}
.cb1 a{
text-decoration: none;
}

.cb2{
min-width:35%;
margin-left: 1em;
height: 50vh;
overflow: hidden;
}
#s1 .cb1, #s2 .cb2{
order:1;
}
#s1 .cb2, #s2 .cb1{
order:2;
}



/*HomePage*/



.welcome{
  margin-top: 1.3em;
  margin-left: auto;
  margin-right: auto;
  border-radius: 1em;
  width: 95vw;
  padding: 1em;
  height: fit-content;
  background-color: #3d2a02dc;
  display: flex;
  justify-content: center;
}

#header{
  align-self: center;
  margin-bottom: 10px;
  font-size: 5vw;
  color:white;
  text-align:center;
  
}
#msg{
  font-size: 1.75vw;
  color: white;
}



/*end of HomePage*/
/*gallery*/


.biggerbox{
  display: flex;
  flex-direction: row;
}
.mainBox {
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.smolbox {
  overflow: hidden;
  width: fit-content;
  height: 30vh;
  border: solid 1px black;
  padding: 5px;
  background-color: antiquewhite;
}
.smolbox img{
  width: 20vw;
  height: 30vh;
  transition: transform 0.3s ease;
}
.smolbox img:hover{
  cursor:grab;
}

.popup-gallery {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.popup-gallery img {
  max-width: 90%;
  max-height: 90%;
}

.popup-gallery span {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/*end of gallery*/
/*images*/


.img{
width:70%;
margin:10px;
margin-top: 5vh;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
overflow:hidden;
transition:all 1s;
}
.img:hover{
  transform: scale(1.2);
}



/*Dictionary*/



#bigbox{
  height:85vh;
  width:100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}
#dictionary{
  background-color: rgba(197, 197, 197, 0.63);
  width:65vw;
  border-radius: 4px;
  height:75vh;
  padding: 1vh;
}
#search-line{
  width: 99%;
  border-radius: 8px;
  margin: auto;
  display: flex;
  justify-content: space-around;
  padding-top:3px ;
  align-items: center;
  flex-direction: column;
  position: relative;
  height:5vh;
  background-color:  rgba(172, 172, 172, 0.726);
}
#dicr{
  width:96%;
  height: 1px;
  display: flex;
  border: solid 1px #f7ac08;
  color: #f7ac08;
}
#letters-box{
  display: flex;
  justify-content: space-evenly;
 
  width: 98%;
  margin-top: 5px;
  align-content: space-evenly;
  align-self: center;
}
#letters{
  text-decoration: none;
  display: inline-flex;
  font-family: sans-serif;
  font-weight: bold;
  padding:4px;
  text-align: center;
  border-radius: 3px;
  color: black;
}
#letters:hover{
  background-color:#f7ac08 ;
}

article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    height: calc(100vh - 500px);
    position: relative;
    overflow: hidden;
    background-color: rgba(172, 172, 172, 0.726);
    border-radius: 10px;
}

.dictionary-container {
    width: 100%;
    height: 90%;
    padding: 4px;
    margin-top: 0.5em;
    border-radius: 5px;
    overflow-y: auto;
    background-color: rgba(172, 172, 172, 0.726);
    padding-right: 5px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.dictionary-group {
    margin-bottom: 30px;
}

.dictionary-group h2 {
    color: #333;
    border-bottom: 2px solid #f7ac08;
    margin-bottom: 15px;
    padding-bottom: 5px;
    font-weight: 800;
}

.dictionary-group ul {
    columns: 3;
    column-gap: 40px;
    list-style: none;
    padding: 0;
}

.dictionary-group li {
    font-weight: 700;
    margin-bottom: 10px;
    break-inside: avoid;
    padding: 5px 0;
}

.dictionary-group li:hover {
    color: #f7ac08;
    cursor: pointer;
}

/* Custom scrollbar styling */
.dictionary-container::-webkit-scrollbar {
    width: 8px;
}

.dictionary-container::-webkit-scrollbar-track {
    border-radius: 4px;
}

.dictionary-container::-webkit-scrollbar-thumb {
    background: #f7ac08;
    border-radius: 4px;
}

.dictionary-container::-webkit-scrollbar-thumb:hover {
    background: #d99407;
}

@media screen and (max-width: 768px) {
    .dictionary-group ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 15px;
    }

    .dictionary-group li {
        text-align: center;
        padding: 5px;
        margin: 0;
        font-size: 13px;
        background-color: #f9f9f9;
        border-radius: 4px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    .dictionary-group li:hover{
      background-color: #cccccc;
    }
}

@media (max-width: 480px) {
    .dictionary-group ul {
        columns: 1;
    }
}



/* end dictionary */





/* Projects */



#download-bt{
  display: flex;
  justify-self: center;
  text-decoration: none;
  margin-top:1vh;
}
#download-bt button{
  border-radius: 5px;
  background-color: #009194;
  padding: 2px;
  color: white;
  font-weight: bold;
  font-size: 1em;
}
#download-bt:hover button{
  background-color: #087577;
}

#boxproject{
  background-color: rgb(107, 83, 47);
  width:fit-content;
  height: fit-content;
  flex-direction: column !important;
  border-radius: 5px;
  justify-content: center;
  display: flex;
  align-items: center;
  padding: 1em;
  display: flex;
}
#boxproject p{
  margin: auto;
  font-size: larger;
  display: flex;
  justify-content: center;
  text-align: center;
  margin-top:1 10px;
  margin-bottom: 1em;
  font-weight: bolder;
  color:white;
}
#biggerboxproject{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items:  center;
  padding: 2em;
  height: 75vh;
}
#p-text-background{
  background-color: #2b1100a1;
  width: fit-content;
  border-radius: 0.5em;
  height: fit-content;
  padding: 10px;
}
#iframe1{
  width: 50vw;
  height: 50vh;
  display: flex;
  justify-self: center;
}
#link7{
 align-self:center !important;
 user-select: none;
 border-radius: 3px;
}
#counterd{
  display: flex;
  align-items: center; 
  justify-content: start;
  flex-direction: column;
  height: 100%;
}
#counterd div{
  background-color: rgba(255, 255, 255, 0.555);
  border-radius: 2px;
  height:fit-content;
  align-items: start;
  display: flex;
  width: fit-content;

}
#counterd div p{
  margin:0 !important;
}
#lit-ab{
  margin-top: 28%;
  width: 6em;
  margin-bottom: 5px;
  font-size: 15pt;
  background-color: #009194a9;
  font-weight: bold;
  padding: 2px;
}
#lit-ab1{
  margin-top: 28%;
  width: 6em;
  margin-bottom: 5px;
  font-size: 15pt;
  justify-self: flex-end;
  background-color: #009194a9;
  font-weight: bold;
  display: flex;
  padding: 2px;
  text-align: center;
  justify-content: center;
  align-items: center;
}
#lit-ab1 p{
  text-align: center;
  width: 100%;
}
/* END Projects */

/*Author's Page*/

#AuthorsBigbox{
  display: flex;
  width:100vw;
  justify-content:center;
}

#AuthorsSmallbox{
  margin-top: 3em;
  border-radius:0.4em;
  display:flex; 
  background-color:rgb(216, 213, 213); 
  width:80vw;
  height: 75vh;
}

#pAuthors {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s;
  }
  
  #pAuthors:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }
#authors-sprite{
  user-select: none;
  align-self: center;
  display: flex;
  height:28px;
  width:28px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
#AuthorsSmallbox Section{
  display: flex;
  width:100% ;
  justify-content: space-between;
  flex-direction: row;
}
.author-bio {
  display: none;
  position: absolute;
  background-color: #fff;
  padding: 15px;
  margin: 10px 0;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-size: 0.95em;
  line-height: 1.5;
  text-align: justify;
  transition: all 0.3s ease;
  border-left: 3px solid #f7ac08;
  width: fit-content;
  max-width: 400px;
  z-index: 100;
}
#AuthorsSmallbox Section li{
  padding-left: 1vh;
  padding-right: 1vh;
  height: 100%;
  display: inline-flex;
  justify-content: space-evenly;
  flex-direction: column;
}
#AuthorsSmallbox Section li ul{
  display: flex;
}
#AuthorsSmallbox Section li br{
  display: none;
}
#AuthorsSmallbox Section br{
  display: none;
}
#AuthorSection{
  justify-content: center;
  display: flex;
}
/*END Author's Page*/








/*      DISCUSSION          */


#combox{
  margin-top: 1em;
  width: 100vw;
  height: fit-content;
  align-items: center;
  flex-direction:column ;
  display: flex;
  justify-content: center;
}
#writeacom{
  display: flex;
  background-color: rgb(199, 207, 207);
  justify-content: center;
  align-items: center;
  width: 30vw;
  border-radius: 20px;
  height: 7vh;
}
#gotocom{
  background-color: #009194;
  height: fit-content;
  border-radius: 5px;
  padding: 4px;
  text-decoration: none;
  color: white;
}
#commentsout{
  border-left:2px orange solid;
  display: flex;
  justify-content: center;
  align-items: center;
  border-right:2px orange solid;

  margin-top: 2em;
  height: 65vh;
  overflow: hidden;
  width: 60vw;
}
#commentsin{
  background-color: #dbececb4;
  border-radius: 10px;
  padding: 0.5em;
  font-size: 25pt;
  overflow-y: scroll;
  width: 95%;
  height: 97%;
}
#commentsin::-webkit-scrollbar{
  appearance: none;
  background-color: rgb(255, 255, 255);
  margin-right: 10px;
  border-radius: 5px;
  width: 0.3em;
}
#formichka{
  width: 100vw;
  height: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5em;
}
#thecom{
  background-color:rgba(160, 160, 160, 0.938);
  padding: 2em;
  display: flex;
  flex-direction: column;
  width: 25vw;
  align-content: center;
  justify-content: space-between;
  font-weight: bolder;
  height: 65vh;
  border-radius: 10px;
  border:3px rgba(255, 174, 0, 0.815) solid;
}
.comment{
  padding: 1em;
  display: flex;
  border-radius: 20px;
  justify-content: center;
  margin: 1em;
  align-items: center;
  overflow: visible;
  flex-direction: column;
}
.Username{
  display: flex;
  font-size: 15pt;
  font-weight: bolder;
}
.date{
  display: flex;
  align-self: center;
  width: fit-content !important;
  font-size: 10pt !important;
  color:rgba(68, 68, 68, 0.747);
  text-align: center !important;
}
.Email{
  font-size: 10pt !important;
  user-select: none;
  margin-bottom: 1em;
}
.Message{
  font-size: 15pt !important;
  text-align: center;
}
#thecom input,textarea{
  padding: 4px;
  width: 70%;
  height: 2.5vh;
  border: 2px solid;
  border-radius: 10px;
}
#thecom textarea{
  width: 80%;
  height: 60%;
  resize: none;
}
#thecom button{
  background-color: rgba(223, 145, 0, 0.719);
  cursor: pointer;
  border-radius: 5px;
  width: fit-content;
  height: fit-content;
  padding: 0.35em;
  font-size: 10pt;
  font-weight:bolder ;
  color: white;
}
#thecom button:hover{
  background-color: rgb(209, 136, 0);
}
#commentsin::-webkit-scrollbar-thumb{
  background-color:orange;
  border-radius: 10px;
  width: 0.15em;
  height: 1.5em;
}




/*          DISC END         */








/*Contact's page*/
#contactsBigBox{
  display: flex;
  width:100vw;
  justify-content:center;
}

#contactsSmallBox{
  margin-top: 3em;
  border-radius:0.4em;
  display:flex; 
  background-color:rgb(216, 213, 213); 
  width:90vw;
  height: calc(90vh);
}

#pcontacts{
  display:flex;
  align-items: center;
}
#contactInfoText{
  margin-right:1em;
}
#popupCloseBtn{
  position: absolute;
  top:1em;
  right:1em;
  appearance: none;
  height: fit-content;
  cursor: pointer;
  color:black;
  border: none; 
  background-color: rgba(150, 150, 150, 0.445);
  font-weight: 800;
  border-radius: 5px;
  padding: 3px 6px;
}
#popupCloseBtn:hover{
  background-color: rgba(150, 150, 150, 0.616);
}
.clist1{
  direction: rtl;
  text-align: right;
}
.ccontact1{
  order:1;
}
#theInfo{
  text-decoration:underline orange ;
  cursor: pointer;
}
#theInfo:hover{
  text-decoration: none;
  font-weight: bold;
  padding: 2px;
  border-radius: 8px;
  background-color: rgba(150, 150, 150, 0.445);
}
img{
  user-select: none;
}
#contactPopup{
  user-select: none;
  position: relative;
  display: none;
  box-shadow: 0px 0px 200vw 80vw rgba(0, 0, 0, 0.555);
  position: fixed;
  top: 30%;
  left: 35%;
  border-radius: 10px;
  padding: 20px;
  background: rgba(211, 211, 211, 0.897);
  border: 3px solid rgba(151, 151, 151, 0.856);
  z-index: 1000;
}
#contactsSprite{
  cursor: pointer;
  padding: 1px;
  border-radius: 20px;
  user-select: none;
  background-color: rgba(128, 128, 128, 0.267);
  align-self: center;
  transition: transform 0.3s ease;
  display: flex;
  height:28px;
  width:28px;
}
#contactsSprite:hover{
  padding:4px;
  background-color: rgba(128, 128, 128, 0.541);
}
#contactsSmallBox Section{
  display: flex;
  width:100% ;
  justify-content: space-between;
  flex-direction: row;
}
#contactsSmallBox Section li{
  padding-left: 1vh;
  padding-right: 1vh;
  height: 100%;
  display: inline-flex;
  justify-content: space-evenly;
  flex-direction: column;
}
#contactsSmallBox Section li ul{
  display: flex;
}
#contactsSmallBox Section li br{
  display: none;
}
#contactsSmallBox Section br{
  display: none;
}
#contactsSection{
  justify-content: center;
  display: flex;
}

/*END Contact's page*/



/*feet (footer)*/



#footer {
    margin-top: 5em;
    background-color: #43464b;
    position: relative;
    padding: 20px 0 10px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0 20px;
}

.footer-section {
    min-width: 200px;
    border-right: 1px solid #ffffff;
    padding-right: 30px;
}

.footer-section:first-child {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 10px;
    padding-left: 20px;
}

.footer-section:last-child {
    border-right: none;
}

.footer-logo {
    max-width: 150px;
    height: auto;
    cursor: pointer;
}

.footer-section h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #f5f5f5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #f7ac08;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #666;
}

.footer-bottom p {
    color: #f5f5f5;
    font-size: 14px;
}

/* Mobile Responsive Footer */
@media only screen and (max-width: 600px) {
    #footer {
        padding: 10px 0 5px 0;
    }
    #Username1{
      font-size: 13pt;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 10px;
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #ffffff;
    }

    .footer-section:first-child {
        padding-top: 5px;
        padding-left: 0;
    }

    .footer-section:last-child {
        border-bottom: none;
        margin-bottom: 5px;
    }

    .footer-logo {
        margin: 0 auto;
        display: block;
        max-width: 120px;
    }

    .footer-bottom {
        margin-top: 10px;
        padding-top: 10px;
    }
    .biggerbox{
      box-sizing: border-box;
      display: flex;
      height: fit-content;
      align-items: center;
      flex-direction: column;
    }
    .smolbox{
      width: 33vw;
      height: 22VH;
    }
    .sb1 img,.sb3 img{display:none;}
    .sb2{
      margin: 0 0.3em;
      height: 25vh;
      border-radius: 10px;
      border: 2px solid orange;
      
    }
    #bt12{
      color:rgb(36, 36, 36);
      font-weight: bolder;
      font-size: larger;
      height: 13vh;
      border: none;
      background-color: #d1d1d1a9;
      border-radius: 15px 1px 1px 15px;
    }
    #bt22{
      font-weight: bolder;
      color:rgb(36, 36, 36);
      height: 13vh;
      font-size: larger;
      border: none;
      background-color: #d1d1d1a9;
      border-radius: 1px 15px 15px 1px;
    }
    #bt22:hover,#bt12:hover{
      background-color:rgb(36, 36, 36);
      color: #d1d1d1a9;
    }
    .img1{background-color: none;border:none;}
    .sb22{
      margin: 3vh 0;
      scale:1.3;
      width:50vw;
      height: 41vw;
    }
    .sb1,.sb3{
      width: fit-content;
      margin: 2.2em;
      padding: 0;
      border:0px;
      background-color: rgba(0, 0, 0, 0) !important;
      height: fit-content;
    }
    .sb1 button,.sb3 button{
      display: block !important;
      width: 20px;
      height: 20px;
    }
    .smolbox img{
      width: 100%;
      height: 21VH;
    }
    .mainBox {
      width: 100vw;
      justify-content: center;
      display: flex;
      flex-direction: row;
      align-items: center;
    }
}

/*end of feet (footer)*/






/*Projects Gallery*/



#bx-img{
  width:50vw;
  height:50vh;
  background-color: rgb(82, 55, 30);
  display: flex;
  overflow: hidden;
  align-items: flex-start;
  box-sizing: content-box;
  background-position: center;
  background-size:contain;
  background-repeat: no-repeat;
  justify-content: space-between;
  justify-self: center;
  border-radius: 10px;
}
.bt{
  border: none;
  background-color: rgba(126, 126, 126, 0.671);
  display: flex;
  align-items: center;
  justify-items: center;
  user-select:none;
  height: 100%;
}
.bt:hover{
  background-color:rgba(75, 75, 75, 0.815);
}

.bt-right{
  justify-self: end;
}

.bt img{
  display: flex;
  opacity: 0.5;
  padding: 5px;
}
.bt:hover img{
  opacity: 1;
}
#counterd{
  display:flex;
  color:black;
  margin-top:0.2em;
  font-size: 1.08vw;
}
.counterdArts{
  display: flex;
  justify-content: end !important;
  padding-bottom:0.5em !important;
}
#chooseone{
  appearance: none;
  cursor: pointer;
  user-select: none;
  margin: 0 0 4px 0;
  width: 4.8em;
  display: flex;
  align-items: center;
  --thumb-image: url('bt-1.png');
  height: 2em;
  height:fit-content;
  padding: 1px 3px;
  border: 1px solid rgb(94, 94, 94);
  border-radius: 20px;
  background-color: rgb(209, 209, 209);
}
#chooseone::-webkit-slider-thumb{
  align-self: center;
  z-index: 2200;
  display: flex;
  -webkit-appearance: none !important; 
  appearance: none !important;
  width: 39px;
  position: relative;
  background-image: var(--thumb-image) !important;
  background-repeat: no-repeat !important;
  background-size: 30px;
  background-position: center center;
  height: 35px;
  border-radius: 88px;
}
#chooseone::-moz-slider-thumb{
  align-self: center;
  display: flex;
  -webkit-appearance: none !important; 
  appearance: none !important;
  width: 25px;
  background-image: var(--thumb-image) !important;
  background-size: 25px;
  background-repeat: no-repeat !important;
  background-position: center center;
  height: 25x;
  border-radius: 88px;
}
#dot{
  width: 4.8em;
  height: 2em;
  padding: 1px 3px;
  display: flex;
  position: absolute;
  z-index: 1 !important;
  align-items: center;
  bottom: 0.5em;
  justify-content: space-evenly;
  justify-self: center;
  border-radius: 20px;
}
.dot{
  width:15px;
  z-index: 1000;
  height:15px;
  background-image: url('dot.png');
  background-size: 15px;
  background-repeat: no-repeat;
  background-position: center center;
}
#chooser{
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  justify-self: center;
}
#boxproject{
  margin-top: 10vh;
}

/*END of projects Gallery*/




/*LICENCES*/
.license-content{
  background-color: #D8D5D5;
  margin-left: 10vw;
  margin-right:10vw;
  margin-top:5vh;
  padding:20px;
  border-radius: 10px;
}
.license-content h1{
  padding: 1vh 0 4vh 0;
}
.license-content section{
  padding:2vh 0 3vh 1vw;
}
.license-content p, .license-content ul{
  padding-left: 1vw;
  padding-top:1vh;
}
.license-content hr{
  border: orange 1px dashed;
}
#hrAfterMain{
  border: black 2px double;
}






/*phones and smaller devices*/


@media only screen and (max-width:970px) {
  #search-line{
    height: 6vh;
  }
  #letters-box {
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0px;
    }

    #letters-box::-webkit-scrollbar {
        height: 5px;
    }

    #letters-box::-webkit-scrollbar-track {
        background: none;
        border-radius: 3px;
    }

    #letters-box::-webkit-scrollbar-thumb {
        background: #f7ac08;
        border-radius: 3px;
    }

    #letters-box::-webkit-scrollbar-thumb:hover {
        background: #d99407;
    }

    #bx-img {
        width: 70vw;
    }

    #p-text-background p br {
        display: none;
    }
}
@media only screen and (max-width: 900px){
  #logo{
    margin-top: 1em;
    height: 12vh;
    width:20vw;
  }
  .list #a{
    font-size: 11pt;
  }
  
}
@media only screen and (max-width: 835px) {
  .list a{
    font-size: smaller;
  }
  #p-text-background{
    font-size: smaller;
  }

}

@media only screen and (max-width: 720px) {
  .list{
    font-size: 11pt;
    height: 95% !important;
    width:fit-content !important;
    margin: 0 2px;
    display:flex;
  }
  .colective{
    width: 95%;
    display: flex;
  }
  .list a{
  padding:0 4px !important;
  }
  #logo{
    width: 15vw;
    height: 10vh;
  } 

}
@media only screen and (max-width: 650px) {
  .list{
    font-size:8pt;
    margin:1px;
  }
  #nav2{
    padding:9 7px;
    width:75vw !important;
  }
}
@media only screen and (max-width: 600px) {
  #link7{
    font-size: 1em !important;
  }
  #thecom{
    width:90% ;
    height:68vh ;
  }
  body{
    background-clip: content-box !important;
    background-size: cover; 
    background-repeat: no-repeat ;
  }


  /* Responsive Menu */
  .contentbox{
    display:flex;
    justify-content: center;
  }
  .cb1{
    margin-left:auto;
    margin-right: auto;
    width:94vw
  }
  #msg{
    font-size:4vw !important;
  }
  #nav2{
    width: fit-content !important;
  }
  .img{
    width:90vw;
  }
  .cb2{
    width:90vw;
  }
  
  .section{
    margin-top: 5vh;
    padding:0 !important;
  }
  .fa{
    display: flex !important;
    font-size: 160%;
    flex-direction:row-reverse;
  }
  #boxproject p{
    font-size: 10pt;
  }
  #iframe1{
    width: 80vw;
    height: 34vh;
    display: flex;
    justify-self: center;
  }
  .fa:hover{
    color:black;

  }
  
  .nav2{
      border-radius:10px;
    }
  #par{
    padding:3px 8px;
    user-select:none;
    position: absolute;
    right: 1vw;
    font-size: 19pt;
    font-family: sans-serif ;
    background-color: rgba(130,130,130,0.3);
    border-radius: 5px;
    display: none;
    color:black;
    z-index: 200000;
    }
    
  .colective1{
      position: absolute;
      top: 5vh;
      padding:5px;
      width: 70vw;
      z-index: 19999;
      border-radius: 10px;
      height: 50vh;
      left: 8vh;         
      background-color: rgba(255,255,255,0.8);
    }

  .list1 a{
      color:black !important;
      font-family: sans-serif;
      font-weight: bolder;
      margin:8px !important;
      font-size: 15pt;
    }
    .list1{
    width:50%
    }
  .nav2:hover .fa{
    color:black;
  }
  #logo{
    margin: 0 15vw ;
    height: 12vh;
    width:50vw;
  }

  .nav2{
    width: fit-content;
    padding: 1vh 1vh;
  }
  .nav2:hover{
    background-color: white;
  }
  #nav{
    justify-content: start;
    flex-direction:row-reverse ;
    padding: 1vw;
  }
  .colective{
    display: none;
  }
  #mainbox{
    width:100vw !important;
    background:lightblue;
  }
  
  .contentbox{
  width:100%;
  flex-wrap: wrap;
  }
  #s1 .cb1, #s2 .cb1 {
  order:0;
  margin-top:20px;
  margin-bottom:10px;
  }


  /* Responsive Menu End */




  .authors-sprite{
    width:10vw;
  }






  body{
    background-size: cover;
    overflow-x:hidden;
    background-repeat: repeat-y;
  }

  /* Project Gallery Mobile Styles */
  #bx-img {
    width: 90vw;
    height: 35vh;
    margin: 0 auto;
  }
  #biggerbox{
    display: flex;
    flex-direction: column;
  }
 .pgline{
    display: block !important;
    border: 2px solid orange !important;
    margin: 0.5em !important;
    border-radius: 5px !important;
    width: 94vw !important;
  }
  .mainBox1{
    margin-top: 0.6em;
  }
  .bt {
    background-color: rgba(126, 126, 126, 0.35);
  }

  .bt:hover {
    background-color: rgba(75, 75, 75, 0.4);
  }

  .bt img {
    width: 42px;
    padding: 4px;
  }

  #counterd {
    font-size: 3.5vw;
  }
  

  #p-text-background {
    padding: 10px;
  }
  #p-text-background p br{
    display: none;
  }
  #biggerboxproject {
    padding: 10px;
    width: 95vw;
    margin: 0 auto;
  }

  #boxproject {
    padding: 5px;
  }
  /*Project gallery*/


  /*Authors pg*/

  #AuthorsSmallbox{
    padding: 15px;
    height: auto;
    margin-top: 1em;
    width: 95vw;
    background-color: rgb(216, 213, 213);
    border-radius: 15px;
  }

  /* Mobile layout */
  #AuthorsSmallbox section {
    flex-direction: column;
  }

  #AuthorsSmallbox section li {
    width: 100%;
  }

  /* Reset any desktop-specific styles */
  .left-authors #pAuthors,
  .right-authors #pAuthors {
    flex-direction: initial !important;
    justify-content: initial !important;
  }

  /* Mobile alternating layout */
  #AuthorsSmallbox section li ul {
    margin-bottom: 15px;
  }

  #AuthorsSmallbox section li ul:nth-child(odd) #pAuthors {
    flex-direction: row;
  }

  #AuthorsSmallbox section li ul:nth-child(odd) #pAuthors #AuthorsSprite {
    margin-right: 12px;
    margin-left: 0;
  }

  #AuthorsSmallbox section li ul:nth-child(even) #pAuthors {
    flex-direction: row-reverse;
  }

  #AuthorsSmallbox section li ul:nth-child(even) #pAuthors #AuthorsSprite {
    margin-left: 12px;
    margin-right: 0;
  }

  /* Desktop layout */
  @media screen and (min-width: 769px) {
    #AuthorsSmallbox section {
      flex-direction: row;
      justify-content: space-between;
    }

    #AuthorsSmallbox section li {
      width: 48%;
    }

    /* Reset mobile styles */
    #AuthorsSmallbox section li ul:nth-child(odd) #pAuthors,
    #AuthorsSmallbox section li ul:nth-child(even) #pAuthors {
      flex-direction: initial;
    }

    #AuthorsSmallbox section li ul:nth-child(odd) #pAuthors #AuthorsSprite,
    #AuthorsSmallbox section li ul:nth-child(even) #pAuthors #AuthorsSprite {
      margin: 0;
    }

    /* Left side authors - buttons on the left */
    .left-authors #pAuthors {
      flex-direction: row !important;
    }

    .left-authors #pAuthors #AuthorsSprite {
      margin-right: 12px !important;
    }

    /* Right side authors - buttons on the right */
    .right-authors #pAuthors {
      flex-direction: row-reverse !important;
    }

    .right-authors #pAuthors #AuthorsSprite {
      margin-left: 12px !important;
    }

    /* Desktop biography style */
    .author-bio {
      position: absolute;
      max-height: none;
      width: 400px;
      font-size: 16px;
      line-height: 1.6;
      border-radius: 10px;
      bottom: auto;
    }
  }

  #AuthorSection {
    margin: 10px 0;
  }

  #pAuthors {
    font-size: 18px;
    padding: 15px;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 8px 0;
  }

  #AuthorsSprite {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  /* Alternating button positions */
  #AuthorsSmallbox section li:nth-child(even) #pAuthors {
    flex-direction: row;
    justify-content: flex-end;
  }

  #AuthorsSmallbox section li:nth-child(odd) #pAuthors {
    flex-direction: row-reverse;
    justify-content: flex-end;
  }

  #AuthorsSmallbox section li:nth-child(even) #pAuthors #AuthorsSprite {
    margin-left: 12px;
  }

  #AuthorsSmallbox section li:nth-child(odd) #pAuthors #AuthorsSprite {
    margin-right: 12px;
  }

  /* Remove extra spacing */
  #AuthorsSmallbox Section li br,
  #AuthorsSmallbox Section br {
    display: none;
  }
  
  /* Author biographies */
  .author-bio {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100vw - 40px);
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    margin: 0;
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-radius: 12px;
    z-index: 9999;
    padding: 20px;
    display: none;
  }

  .bio-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 32px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    padding: 5px;
    line-height: 0.8;
    z-index: 1001;
    background: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
  }

  .bio-close:hover {
    color: #000;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  }

  .bio-content {
    padding: 15px 0;
    margin-top: 15px;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
  }

  @media screen and (min-width: 769px) {
    .author-bio {
      position: fixed;
      transform: translate(-50%, -50%) !important;
      top: 50% !important;
      bottom: auto;
      width: 500px;
      max-height: 80vh;
      border-radius: 10px;
      box-shadow: 0 0 20px rgba(0,0,0,0.2);
    }
  }

  /*END of Authors pg*/


  /*  CONTACTS  */

  
  #contactsSmallBox{
    height:fit-content;
  }
  #contactPopup{
    position:fixed;
    width:97vw;
    z-index: 100000;
    left:1vw;
    font-size:small;
  }
  .clist ul{
    margin-top:2em !important; 
  }
  .clist2{
    margin-top:1em;
  }
  .clist1{
    margin-bottom:1em;
  }
  #contactsSmallBox section{
    height:fit-content;
    font-size:10pt;
  }




  /*END CONTACTS*/



  /*    DISCUSSIONS     */


  #writeacom{
    width:40vw;
  }
  #commentsout{
    width: 98vw;
  }
  .comment{
    margin:1em 0.4em 1em 0.4em
  }


  /*     END DISCUSSIONS     */






  /* Project Navigation Mobile */
  .project-nav {
    gap: 10px;
  }

  .project-btn {
    padding: 8px 12px;
  }

  .project-btn img {
    width: 15px;
  }
  /* End Project Gallery Mobile Styles */
}

/* Author Popup Styles */
#author-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.author-popup-content {
    background-color: #dddddd;
    margin: 15% auto;
    padding: 20px;
    border: 2px solid #8a6005;
    border-radius: 10px;
    width: 70%;
    max-width: 600px;
    position: relative;
    color: white;
}

.close-author-popup {
    color: #333;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-author-popup:hover {
    color: black;
}

#author-name {
    color: #2B1100;
    margin-bottom: 15px;
    font-size: 24px;
}

#author-bio {
    color: #333;
    line-height: 1.6;
    font-size: 16px !important;
}

.authors-sprite {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.authors-sprite:hover {
    transform: scale(1.1);
}

.authors-sprite.rotate-sprite {
    transform: rotate(180deg);
}

.authors-sprite.rotate-sprite:hover {
    transform: rotate(180deg) scale(1.1);
}





 
/* Popup styles */
.number-popup {
    background: rgb(216, 213, 213);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}

.number-popup img {
    width: 30px;
    height: auto;
    cursor: pointer;
    margin: 0 5px;
}

.number-popup img:hover {
    background-color: #f0f0f0;
    border-radius: 3px;
}
 

.word-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.popup-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
    position: relative;
}

.close-popup {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-popup:hover {
    color: black;
}

#popup-word {
    margin-top: 0;
    color: #562602;
    font-size: 1.5em;
}

#popup-definition {
    margin-top: 10px;
    line-height: 1.4;
}


#dictionary{
  width:92vw;
}





 

