body{
    background-color: #000000f8;
}
.container {
    display: flex;
    align-items: center;
}

.image {
    flex: 0 0 auto; /* Don't grow or shrink */
    margin-right: 20px; /* Adjust margin as needed */
}

.text {
    flex: 1; /* Grow to fill available space */
}
.mytext{
    padding: 10px;
}
.mytext h1{
    font-size: 500%;
}
@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Stack items vertically on small screens */
    }

    .image, .text {
        width: 50%; /* Take full width on small screens */
        margin: 0; /* Remove margin */
        text-align: center; /* Center-align text */
    }

    .image img {
        max-width: 100%; /* Make image responsive */
        height: auto; /* Maintain aspect ratio */
    }

    .mytext h1 {
        font-size: 300%;
    }
}

nav{
    background-color: #333;
    color: white;
    padding: 10px 20px;
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensure it's above other content */
}

.navbar {
    display: flex;
    background-color: #020202; /* Background color */
    color: #7ffd37; /* Text color */
    display: flex; /* Arrange items in a row */
    justify-content: space-between; /* Distribute space between items */
    align-items: center; /* Vertically center items */
    padding: 1px 2px; /* Add some padding */
    z-index: 9999;
}
.navbar ul{
    margin-left: 3%;
    margin-right: 3%;
}

.navbar .nav-links {
    list-style: none; /* Remove bullet points */
    display: flex; /* Arrange items in a row */
    justify-content: space-between;
    flex-grow: 1;
    overflow: hidden;
    position: sticky;
    top: 0;
}

.navbar .nav-links li {
    margin-right: 20px; /* Add some space between items */
    display: block;
    margin-top: 5px;
    margin-bottom: 5px;
}

.navbar .nav-links li:last-child {
    margin-right: 0; /* Remove margin from last item */
}

.navbar .nav-links li a {
    color: #51ec2b; /* Text color */
    text-decoration: none; /* Remove underline */
    font-size: xx-large; /* Adjust font size */
    font-family: monospace;
}

/* Change color on hover */
.navbar .nav-links li a:hover {
    color: #f2f2f2; /* Lighten text color */
}

.externallink{
    margin-left: 6px;
}

.hamburger-menu {
    font-size: 24px;
    cursor: pointer;
    display: none; /* Initially hide hamburger menu */
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide horizontal nav links */
        flex-direction: column; /* Display vertical nav links */
    }

    .hamburger-menu {
        display: block; /* Show hamburger menu */
    }
}

footer{
        position:relative ;
        bottom: 0;
        width: 100%;
        height: 2.5rem;
}
main{
    height: 100%;
    border-radius: 0 0 20px 20px;
    align-items: center;
    overflow: hidden;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 1px;
}
#main-index{
    background-color: black;
    font-family: "Courier New", Courier, monospace;
    color: rgb(3, 252, 24);
    border: 1px solid rgb(3, 252, 24); 
}
#main-about{
    background-color: black;
    font-family: "Courier New", Courier, monospace;
    color: rgb(3, 252, 24);
    border: 1px solid rgb(3, 252, 24); 
}
#main-contact{
    background-color: black;
    font-family: "Courier New", Courier, monospace;
    color: rgb(3, 252, 24);
    border: 1px solid rgb(3, 252, 24); 
}
#main-projects{
    background-color: black;
    font-family: "Courier New", Courier, monospace;
    color: rgb(3, 252, 24);
    border: 1px solid rgb(3, 252, 24); 
}
#main-content{
    margin-left: 15%;
    margin-right: 15%;
}
main pre{
    font-size: small;
}
body{
    position: relative;
    min-height: 100vh;
}
.cursortext{
    animation: blink 0.75s step-end infinite;
}
.cursortitle{
    animation: blink 0.75s step-end infinite;
}
.cursor {
    display: inline-block;
    width: 40px;
    height: 1em;
    background-color: #0f0;
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}
@media (max-width: 768px) {
    footer {
        position:relative ;
    }
}



#ccc {
    display: flex;
    height: 10vh;
    justify-content: center;
    align-items: center;
    margin-top: 3%;
  }
  
  .social {
    display: flex;
    color: white;
    font-size: medium;
    list-style: none;
  }
  
  .social-link {
    width: 18px;
    height: 18px;
    margin: 10px;
    border: 7px solid white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    transition: 0.3s;
  }
  
  .facebook:hover {
    background-color: #BBDEFB;
    border-color: rgb(3, 252, 24);
    color: rgb(3, 252, 24);
    box-shadow: 0 0 30px rgb(3, 252, 24);
  }
  
  .twitter:hover {
    background-color: #B2EBF2;
    border-color: rgb(3, 252, 24);
    color: rgb(3, 252, 24);
    box-shadow: 0 0 30px rgb(3, 252, 24);
  }
  
  .telegram:hover {
    background-color: #FFCDD2;
    border-color: rgb(3, 252, 24);
    color: rgb(3, 252, 24);
    box-shadow: 0 0 30px rgb(3, 252, 24);
  }
  
  .instagram:hover {
    background-color: #D1C4E9;
    border-color: rgb(3, 252, 24);
    color: rgb(3, 252, 24);
    box-shadow: 0 0 30px rgb(3, 252, 24);
  }
  
  .vk:hover {
    background-color: #DCEDC8;
    border-color: rgb(3, 252, 24);
    color: rgb(3, 252, 24);
    box-shadow: 0 0 30px rgb(3, 252, 24);
  }

  .social-link a {
    color: #777;
  }

  .social-link a:visited {
    color: #777;
  }
  