
html{
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: #0A192F;
    color: rgb(255, 255, 255);
    margin: 0;
    padding: 0;
}

.content-wrapper {
    overflow-x: hidden; /* Prevents horizontal scroll within this container */
}

/* SCROLLBAR WIDTH */
::-webkit-scrollbar {
    width: 10px;
  }
  
  /* SCROLLBAR TRACK */
  ::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px rgb(105, 105, 105); 
    border-radius: 10px;
  }
   
  /* SCROLLBAR HANDLE */
  ::-webkit-scrollbar-thumb {
    background: rgb(9, 90, 128); 
    border-radius: 10px;
  }
  
  /* SCROLLBAR Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: rgb(22, 101, 138); 
  }

/*LINK BAR*/
ul {
    list-style-type: none;
    margin: 0;
    padding: 0; /* Ensure no padding is affecting the width */
    width: 100%; /* Make sure the ul takes up the full width */
    box-sizing: border-box; /* Includes padding and border in the element's width and height */
    overflow: hidden;
    background-color: #051020;
    border-bottom: 3px solid black;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    flex-wrap: wrap;

}
  
li {
    margin: 0 10px; /* Add space between the links */
}

li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: small;
}
  
  /* Change the link color to #111 (black) on hover */
li a:hover {
    color: rgb(38, 171, 233);
}

#main-heading-div {
    text-align: center;
}

#social-link-outer-div{
    display: flex;
    justify-content: center;
    align-items: center;
}

#social-link-div{
    margin: 0 5px; /* Adjust the margin to control the spacing between the divs */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 250ms;
}

#social-link-div:hover{
    transform: translateY(-5px);
}

.website-developer-text-div {
    /*FOR CENTRED ANIMATION TEXT: */
    width:fit-content;
    text-align-last: left;
    color: rgb(14, 3, 3);
    font-family:monospace;
}

.first-line { /*FIRST LINE TO FASE IN WITH ANIMATION */
    margin:0px;
    white-space:nowrap;
    overflow:hidden;
    animation:typing 3s forwards;
    animation-delay: 0s;
    color: #0A192F;
    font-size: 20px;
}

.second-line /*SECOND LINE TO FASE IN WITH ANIMATION */{
    margin:0px;
    white-space:nowrap;
    overflow:hidden;
    animation:typing 3s forwards;
    animation-delay: 1.5s;
    color: #0A192F;
    font-size: 20px;
}
  
/*WEBSITE DEVELOPER TEXT ANIMATION */
@keyframes typing {
    0% { width:0% }
    100% { width:100%; color: white;}
}

#main-image {
    height: auto;
    max-width: 100%;
    border-radius: 50%;
    margin: 20px;
    border: 3px solid black;
    box-shadow: 10px 10px 2px #051020;
}

/* MAIN BODY */
#leon-hill-div {
    font-family: 'Courier New', monospace;
    text-align: center;
}

.outer-body-div { /*OUTER DIV SURROUNDING GREY BOXES*/
    margin: auto;
    width: 70%;
}

.box-div { /*MAIN GREY BOX DIVS*/
    background-color: #0A192F;
    line-height: 1.5;
    margin: auto;
    margin-top: 25px;
    margin-bottom: 15px;
    padding: 50px;
    border-top: 3px solid black;;
}

#project-image { /*IMAGES FOR PROJECTS*/
    max-width: 100%;
    height: auto;
}

#project-image:hover {
    opacity: 1.0s;
}

.project-surrounding-div{ /*AN OUTER DIV SURROINDING PROJECT IMAGE AND TEXT DIVS*/
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Allows items to wrap to the next line */
}

.project-image-div{ /*A DIV SURROUNDING PROJECT IMAGE*/
    padding: 20px;
}

.project-text-div{ /*A DIV SURROUNDING PROJECT TEXT*/
    flex: 1; /* Allows the text div to grow */
    min-width: 200px; /* Ensures the text div has a minimum width */
}

div.gallery {
    margin: 5px;
    float: left;
    width: 300px;
  }
  
  div.gallery img {
    width: 100%;
    height: auto;
  }
  
  div.desc {
    padding: 15px;
    text-align: center;
  }

.Experience-inner-div {
    margin: 10px;
    margin-bottom: 50px;
}

.button {
    background-color:rgb(38, 171, 233); /* Green */
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    transition: transform 250ms;
    box-shadow: 10px 10px 2px #051020;
}

/* Media query for smaller screens */
@media (max-width: 600px) {
    .project-surrounding-div {
        flex-direction: column; /* Stacks the items vertically */
    }

    .project-image-div {
        margin-right: 0; /* Removes the right margin when stacked */
        margin-bottom: 20px; /* Adds space between the image and text */
    }

    .project-text-div {
        padding-left: 0; /* Removes the left padding when stacked */
    }

    ul {
        justify-content: space-around; /* Distribute space evenly */
    }

    li {
        margin: 0 40px; /* Reduce the space between the links */
    }

    li a {
        padding: 10px 8px; /* Reduce padding for smaller screens */
        font-size: smaller; /* Adjust font size for better fit */
    }
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .box-div {
        width: 100%; /* Increase the width for screens smaller than 768px */
        padding: 35px;
    }
}

/* Media query for very small screens */
@media (max-width: 580px) {
    .box-div {
        width: 95%; /* Further increase the width for very small screens */
        padding: 20px;
    }

    .outer-body-div { /*OUTER DIV SURROUNDING GREY BOXES*/
        margin: auto;
        width: 90%;
    }

    .first-line,
    .second-line {
        font-size: 4vw; /* Increase font size relative to small screens */

    }
}

/*FOOTER*/
.footer-space {
    width: 100%;
    margin: 15px;
}
  
footer {
    background-color: #051020;
    border-top: 3px solid black;;
    padding: 30px;
    width: 100%;
    bottom: 0;
    margin-top: 15px;
}
  