* {
    margin: 0;
    padding: 0;
    max-width: 100%;
}
html {
    scroll-behavior: smooth;
}
body{
    color: rgba(255, 255, 255, 0.866);
}
.top_codeit {
    font-size: xxx-large;
    display: flex;
}
::selection{
    background-color: rgba(0, 255, 255, 0.263);
    color: black;
}

#code {
    background: linear-gradient(to right, goldenrod, rgb(0, 141, 141));
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation-name: hue;
    animation-duration: 1.5s;
    animation-timing-function: linear;
}

@keyframes hue {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

.typewriter p {
    letter-spacing: .01em;
    margin: 0 auto;
    overflow: hidden;
    white-space: nowrap;
    border-right: .01em solid pink;
    animation: typing 5.5s steps(30, end) infinite, blinking-cursor 1s step-end infinite;
  }
  
  @keyframes typing {
    0% {
        margin-left: 0.5ch;
      width: 0;
    }
    60% {
        margin-left: 0.5ch;
      width: 31ch;
    }
    75%{
        margin-left: 0.5ch;
        width:31ch
    }
    100%{
        margin-left: 0.5ch;
        width: 0%;
    }
  }
  
  @keyframes blinking-cursor {
    from,
    to {
      border-color: transparent
    }
    50% {
      border-color: rgb(255, 255, 255);
    }
}
.top{
    background-color: #3333337b;
    padding: 10px 7px 10px 7px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    position:fixed;
    bottom: 10px;
    right: 10px;
    backdrop-filter: blur(7px);
    box-shadow: 5px 5px 10px black;
    z-index: 50;
    
}
#top{
    opacity: 0;
    transition-duration: 0.3s;
    bottom: 90px;
    right: 27px;
}
.top img{
    height: 20px;
}

.preview{
    width: 40vw;
    margin: 60px;
    transition-duration: 0.3s;
    border-radius: 10px;
    z-index: 0;
    box-shadow: 0 0 10px black;
}
.preview:hover{
    scale: 1.03;
}

#flowchart{
    box-shadow: none;
    width: 45vw;
    margin-left: -2.5vw;
    -webkit-filter: drop-shadow(0px 0px 5px rgb(0, 0, 0));
    filter: drop-shadow(0px 0px 5px rgb(0, 0, 0));
}
#obfuscatePreview{
    margin-top: 10px;
}

#zoom{
    max-width: calc(50vw - 150px);
    max-height: 320px;
    overflow: hidden;
    border-radius: 10px;
    transition-duration: 0.5s;
    margin-left: 40px;
}
#zoom img{
    margin-left: 0px;
}
#zoom:hover{
    box-shadow: 0 0 10px black;
}
#zoom:hover img{
    scale:1.03;
}
.section-l{
    display: flex;
    flex-direction: row;
    margin-left: 100px;
    margin-right: 100px;
}
.section-r{
    display: flex;
    flex-direction: row;
    margin-left: 100px;
    margin-right: 100px;
}
.faq-section {
    max-width: fit-content;
    margin: 20px 0;
    padding: 10px;
    border-radius: 5px;
    padding-top: 100px;
    margin-left: 90px;
    margin-right: 90px;
}
@media screen and (max-width: 768px) {
    .faq-section {
        padding-top: 50px;  
        margin-left: 20px;  
        margin-right: 20px; 
    }

    .faq-answer {
        padding: 10px; 
    }

    .faq-question {
        font-size: 1em; 
    }
    
.visitor-widget{
    margin-top: -5px;
}
}
.faq-item {
    margin-bottom: 15px;
    margin-top: 40px;
}

.faq-question {
    padding: 2px;
    padding-left: 5px;
    max-width: fit-content;
    font-weight:100;
    cursor: pointer;
    font-size: large;
    background-color: rgba(0, 198, 228, 0.463);
}

.faq-answer {
    transition-duration: 0.5s;
    margin-left: 15px;
    padding: 20px 0;
    border-top: 0;
    display: none; 
    font-size: 15px;
}

details[open] .faq-answer {
    display: block; 
    padding: 10px 20px;
}

#intro{
    margin-top: 100px;
}
.left{
    max-width: calc(50vw - 120px);
}
.right{
    max-width: calc(50vw - 120px);
}
.right p{
    margin-left: 100px;
}
#scroll_icon{
    position: fixed;
    bottom: 25px;
    left:50vw;
    transform: translate(-50%);
    font-size: small;
    transition-duration: 0.3s;
}

.shadow{
    height: 20px;
    width: 180px;
    background-image: linear-gradient(115deg, #00000000,#191919,#00000000);
    position: absolute;
    margin-top: -20px;
    animation-name: wave;
    animation-duration: 2s;
    animation-iteration-count:infinite;
    animation-timing-function: ease-in-out;
}
@keyframes wave{
    0%{
        margin-left: -180px;
    }
    100%{
        margin-left: 7rem;
    }
}
#refine{
    margin-top: 20vh;
}
.heading{
    font-size: xxx-large;
    display: block;
    max-width: fit-content;
    padding: 2px 5px 0px 5px;
    font-weight:900;
}
.subheading{
    display: inline-block;
    font-size: xx-large;
    margin-top: 10px;
    font-weight: 600;
}
.text{
    margin-top: 10px;
    font-size: larger;
    line-height: 25px;
}
#obfuscate{
    margin-top: 10vh;
}
#nomenclature{
    margin-top: 10vh;
}
#complexity{
    margin-top: 10vh;
}
#working{
    margin-top: 10vh;
}

#contributeSection{
    margin-top: 100px;
}
.contributeBtn , .licBtn{
    text-decoration: none;
    width:fit-content;
    margin-top: 30px;
    margin-left: 100px;
    background-color: #00000000;
    border: 1px solid white;
    border-radius: 5px;
    color: white;
    font-size: 20px;
    font-family: consolas;
    display: flex;
    flex-direction: row;
    padding: 12px 10px 5px 10px;
    transition-duration: 0.3s;
}
#github{
    height: 28px;
    margin: 5px 0px 5px 10px;
    margin-top: -3px;
    filter: invert(1);
    transition-duration: 0.3s;

}

.contributeBtn:hover , .licBtn:hover{
    background-color: rgb(255, 255, 255);
    color: black;
}
.contributeBtn:hover #github , .licBtn:hover #lic-logo{
    filter: invert(0);
}

[data-theme="light"] .contributeBtn ,[data-theme="light"] .licBtn{
    background-color: transparent; /* Button background for light mode */
    border: 1px solid #000; /* Border color for light mode */
    color: black; /* Text color for light mode */
}

[data-theme="light"]  #github ,[data-theme="light"] #lic-logo {
    filter: invert(0); /* Black icon for light mode */
}

[data-theme="light"]  .contributeBtn:hover ,[data-theme="light"] .licBtn:hover {
    background-color: #000; 
    color: #fff; }

[data-theme="light"] .contributeBtn:hover #github ,[data-theme="light"] .licBtn:hover #lic-logo{
    filter: invert(1); /* White icon on hover for light mode */
}

.design_line {
    height: 1px;
    width: 50vw;
    margin-left: calc(50vw + 15px);
    transform: translate(-50%);
    margin-bottom: 20px;
    margin-top: 50px;
    background-image: linear-gradient(to right,rgba(0, 0, 0, 0),rgb(255, 255, 255),rgba(0, 0, 0, 0));
}
[data-theme="light"] .design_line {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgb(0, 0, 0), rgba(0, 0, 0, 0)); /* Light mode gradient */
}


footer {
    display: flex;
    flex-direction: column;
    padding-left: 10vw;
    padding-right: 10vw;
}
.left_last{
    display: flex;
    flex-direction: row;
}
.icon-links {
    font-size: 35px;
    width: 200px;
    display: flex;
    gap: 40px;
    margin-top: 20px;
    justify-content: center;
    align-items: center;
}

.icon-links a {
    color: white; /* Default color for dark mode */
    transition: color 0.3s; /* Smooth transition for color change */
}

[data-theme="light"] .icon-links a {
    color: black; /* Icon color for light mode */
}

.icon-links a:hover {
    color: #888888; /* Hover color in dark mode */
}

[data-theme="light"] .icon-links a:hover {
    color: #555555; /* Hover color in light mode */
}

#last_link{
    background-color: #00000000;
    margin-top:16px;
    margin-left: 150px;
}
form {
    background-color: #4c4c4c2a;
    backdrop-filter: blur(7px);
    width: 30vw;
    margin-left: 5vw;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0px 0px 10px black;
}

input {
    padding-left: 10px;
    color: white;
    background-color: #76767639;
    border: 0.1px solid rgba(255, 255, 255, 0.193);
    width: calc(100% - 10px);
    height: 30px;
    margin-top: 20px;
    border-radius: 5px;
}
.inputclass {
  position: relative;
  max-width: 100%;
  display: flex;
  align-items: center;
}
textarea.feedback{
    padding-left: 50px;
    color: white;
    background-color: #76767639;
    border: 0.1px solid rgba(255, 255, 255, 0.193);
    width: calc(100% - 80px);
    height: 70px;
    margin-top: 20px;
    margin-bottom: 10px;
    border-radius: 5px;
}
#send {
    padding: 5px 10px 5px 10px;
    border-radius: 5px;
    border: none;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 10px;
    /* transform: translate(calc(-100% - 0px)); */
    width: min-content;
    width: 80px;
    height: 30px;
    background-color: #248e87;
    cursor: pointer;
    color:rgba(255, 255, 255, 0.63);
    transition-duration: 0.3s;
}

#send:hover{
    color: black;
    background-color: rgba(0, 240, 236, 0.715);
    box-shadow: 0px 0px 10px cyan;
}

.contact {
    width: 40vw;
}

.end-logo {
    position: absolute;
    height: 40px;
    margin-top: 13px;
    margin-left: 100px;
}

.name {
    display: flex;
}
[data-theme="light"] .subheading {
    color: black; /* Icon color for light mode */
}

.links {
    background-color: #12121200;
    height: max-content;
    text-align: center;
}

.links a {
    color: rgba(255, 255, 255, 0.433);
}
.links p {
    color: rgba(255, 255, 255, 0.433);
}
[data-theme="light"] .footer_logo img {
    filter: none; /* Reset any color adjustment */
  }
  
  /* On hover for light mode */
[data-theme="light"] .footer_logo:hover img {
    transform: scale(1.1);
    filter: brightness(0) invert(1); /* For inverted logo on hover */
}

.last{
    padding: 10px;
}
.last p{
    text-align: center;
    margin-top: 5px;
}

a{
    text-decoration: none;
    color: white;
}
[data-theme="light"] .last p {
    color: black; /* Text color for light mode */
}

[data-theme="light"] .last p a {
    color: black; /* Link color for light mode */
}


#linksTejas{
    font-size: small;
}
#map {
    width: 45vw;
    margin-left: 30px;
    margin-top: -30px;
    height: 65vh;
    transition: 0.5s ease;
    filter: invert(1) hue-rotate(180deg) brightness(1.5);
    border-radius: 7px;
}
/*=====================hiding map watermark=================*/
.leaflet-control-attribution {
    display: none !important;
}


@media screen and (max-width: 830px) {
    #map{
        margin-left: 0px;
        width: calc(100vw - 40px);
        height: 25vh;
        margin-top: 20px;
    }
    .section-r{
        margin-left: 20px;
        margin-right: 20px;
        flex-direction: column;
    }
    .section-l{
        margin-left: 20px;
        margin-right: 20px;
        flex-direction: column-reverse;
    }
    #intro{
        flex-direction: column;
    }
    #scroll_icon{
        bottom: 10px;
    }
    .left{
        max-width: calc(100vw - 40px);
    }
    .right{
        max-width: calc(100vw - 40px);
    }
    .right p{
        margin-left: 0px;
    }
    .preview{
        width: calc(100vw - 40px);
        margin: 0px;
        margin-top: 20px;
    }
    #flowchart{
        width: calc(100vw - 40px);
        margin: 0px;
    }
    #zoom{
        margin-top: 30px;
        margin-left: 0px;
        max-width: calc(100vw - 40px);
    }
    #intro{
        margin-top: 20px;
    }
    .top_codeit{
        font-size: xx-large;
    }
    .typewriter{
        font-size: small;
    }
    .heading{
        font-size: x-large;
    }
    .subheading{
        font-size: large;
    }
    .text{
        font-size: 15px;
        line-height: 20px;
    }
    #contributeSection{
        margin-top: 50px;
    }
    .contributeBtn , .licBtn{
        font-size: 15px;
        margin-left: 50%;
        transform: translate(-50%);
    }
    #github , #lic-logo{
        height:20px;
    }

    .license{
        flex-direction:column;
    }

    .left_last{
        flex-direction: column;
    }
    form{
        width: calc(100vw - 90px);
        margin-top: 40px;
    }
    .links{
        margin-top: 10px;
    }
}

.scroll-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    height: min-content;
    background-color: #ffffff00;
    margin-bottom: 100px;
  }

  .scroll-content {
    display: inline-flex;
    animation: scroll 15s linear infinite;
  }

  .feedback-card {
    max-width: 300px;
    margin: 10px;
    padding: 15px;
    border: 1px solid #cccccc76;
    border-radius: 8px;
    background: #353535a2;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    word-break: break-all;
    word-wrap: break-word;
  }
  .feedback-card h4 {
    margin: 5px 0;
    color: #d6d6d6;
  }

  .feedback-card p {
    margin: 5px 0;
    color: #ffffff;
  }

  .feedback-card .stars {
    color: gold;
    font-size: 20px;
  }

  @keyframes scroll {
    from {
      transform: translateX(0%);
    }
    to {
      transform: translateX(-50%);
    }
  }

  .scroll-container:hover .scroll-content {
    animation-play-state: paused;
  }

  hr{
    opacity: 0.1;
  }