/*media query to create blinking text animations*/
@keyframes blink {
    0% {
      opacity: 1;
    }
    50% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
}

/*variables for dark mode feature*/
:root {
    --bg-color-light: rgb(248, 248, 248);
    --text-color-light: black;
    --btn-color-light: rgb(216, 216, 216);
}

/*STYLING FOR SCROLLBAR*/
    
::-webkit-scrollbar {
    width: 0.35rem;
  }
  
  /*SCROLL TRACK*/
  ::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px #131313;
    border-radius: 10px;
  }
  
  /*SCROLL THUMB*/
  ::-webkit-scrollbar-thumb {
    background: rgb(232, 54, 54);
    border-radius:5px;
  }

/*dark mode styling*/
.dark-mode {
    background-color: var(--bg-color-light);
    transition: var(--bg-color-light) 5s ease;
    transition: background 0.3s linear;/*smooth transition animation*/
}

.dark-mode p {
    color: var(--text-color-light);
}

.dark-mode table {
    color: var(--text-color-light);
}

.dark-mode li {
    color: var(--text-color-light);
}

.dark-mode h2 {
    color: var(--text-color-light);
}

.dark-mode label {
    color: var(--text-color-light);
}

.dark-mode button {
    background-color: var(--btn-color-light);
}
.dark-mode button:hover {
    color: rgb(205, 154, 157);
}
.dark-mode .navbar {
    background-color: rgb(230, 230, 230);
    box-shadow: #333;
}
.dark-mode .topnav {
    background-color: rgb(230, 230, 230);
    border: 2px solid rgb(197, 13, 25);
}
.dark-mode .topnav a {
    color: var(--text-color-light);
}

/*w3 schools styling example for responsive nav bar start*/ 
  .topnav {
    overflow: hidden;
    background-color: #333;
  }
  
  .topnav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    transition: all 400ms ease;
  }
  
  .topnav a:hover {
    color: rgb(205, 154, 157);
    background: transparent;
    transition: all 400ms ease;
    border-radius: 5px;
  }
  
  .topnav a.active {
    background-color: white;
    color: rgb(232, 54, 54)
  }
  
  .topnav .icon {
    display: none;
  }
  
  @media screen and (max-width: 600px) {
    .topnav a:not(:first-child) {display: none;}
    .topnav a.icon {
      float: right;
      display: block;
    }
  }
  
  @media screen and (max-width: 600px) {
    .topnav.responsive {position: relative;}
    .topnav.responsive .icon {
      position: absolute;
      right: 0;
      top: 0;
    }
    .topnav.responsive a {
      float: none;
      display: block;
      text-align: left;
    }
  }

/*style for container div element containing nav bar*/
.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/*style for anchor tags*/
a{
    color: rgb(232, 54, 54);
    margin: 10px;
    display: flex;
    max-width: fit-content;
}

/*style for tables*/
table{
    color: whitesmoke;
}
th {
    margin: 5;
}

/*style for logo*/
#logo{
    height:100px;
    width: 100px;
    display: inline-block;
    margin-top: 10px;
    transition: all 400ms ease;
}

#logo:hover {
    transition: all 400ms ease;
    border-radius: 5px;
    border: 2px solid red;
    transform: scale(1.1);
}

/*styling for html and body tags*/
html, body{
    margin: 0;
    font:Serif;
    font-size:15px;
    /* border:2px solid whitesmoke; */
    background-color: rgba(0, 0, 0, 0.779);
    padding: 0;
    display: block;
    transition: background 0.3s linear;/*smooth transition animation*/
}

/*styling for header*/
.header{
    border:rgb(104, 104, 104);
    background-color: rgba(206, 184, 185, 0.575);
    display:flex;
    align-items:center;
    margin: 0;
    padding:30px 75px 30px 75px;
}

/*styling for buttons*/
button {
    transition: all 400ms ease;
}
button:hover {
    color:rgb(195 168 170);
    background: transparent;
    transition: all 400ms ease;
    border-radius: 5px;
}

/*styling for p tags*/
p{
    font:Serif;
    color: whitesmoke;
}
/*styling for headshot*/
#headshot {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    position: relative;
    align-items: center;
    transition: all 400ms ease;
    margin: 20px;
}

#headshot:hover {
    transition: all 400ms ease;
    border: 2px solid red;
    transform: scale(1.3);
}

h3 {
    color:darkred;
}

#fun-facts {
    color: whitesmoke;
    background: transparent;
    /* border: 2px solid rgb(205, 154, 157); */
    border-radius: 5px;
    max-width: fit-content;
    align-items: left;
    transition: all 400ms ease;
    box-sizing: border-box;/*keeps from being stuck to the left*/
}

#fun-facts:hover {
    background-color: rgb(156, 156, 156);
    transition: all 400ms ease;
    border-radius: 5px;
    color:black;
}
/*style for exerience section*/
#experience {
    color: whitesmoke;
    background: transparent;
    /* border: 2px solid rgb(205, 154, 157); */
    border-radius: 5px;
    max-width: fit-content;
    align-items: center;
    transition: all 400ms ease;
    box-sizing: border-box;/*keeps from being stuck to the left*/
}
#experience:hover {
    background-color: rgb(156, 156, 156);
    transition: all 400ms ease;
    border-radius: 5px;
    color:black;
}

/*style for education section*/
#education {
    background: transparent;
    /* border: 2px solid rgb(205, 154, 157); */
    transition: all 400ms ease;
    border-radius: 5px;
    max-width:fit-content;
    box-sizing: border-box;/*keeps from being stuck to the left*/
}
#education:hover {
    background-color: rgb(156, 156, 156);
    transition: all 400ms ease;
    border-radius: 5px;
    color:black;
}

/*styling for list items*/
li{
    color:whitesmoke;
}

footer {
    font: 1500px;
    border-radius:5px;
    background: transparent;
    /* border: 2px solid rgb(205, 154, 157); */
    margin: auto;
    padding: unset;
    max-width: fit-content;
    transition: all 400ms ease;
}

footer:hover {
    background-color: rgb(156, 156, 156);
    transition: all 400ms ease;
    border-radius: 5px;
    color:black;
}

#skills {
    background: transparent;
    /* border: 2px solid rgb(205, 154, 157); */
    color: rgb(0, 0, 0);
    border-radius: 5px;
    max-width:fit-content;
    align-items: center;
    transition: all 400ms ease;
    justify-content: space-between;
}

#skills:hover{
    background-color: rgb(156, 156, 156);
    transition: all 400ms ease;
    border-radius: 5px;
    color:black;
}

/*styling for hire form*/
#hire-me {
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
}
#hire-form {
    border: 1px;
    background: transparent;
    border-radius: 5px;
    max-width: 100%;
    max-width:fit-content;
    align-items: center;
    border: 2px solid rgb(205, 154, 157);
    transition: all 400ms ease;
    justify-content: center;
    /*Keeps elements from sticking to the left side of screen*/
    margin-left: auto;
    margin-right: auto;
    width: 50%;

}

#email {
    border-radius: 5px;
    border: 2px solid rgb(205, 154, 157);
    background: transparent;
    color: red;
}
#name {
    border-radius: 5px;
    border: 2px solid rgb(205, 154, 157);
    background: transparent;
    color: red;
}
#phone {
    border-radius: 5px;
    border: 2px solid rgb(205, 154, 157);
    background: transparent;
    color: red;
}

#hire-form:hover{
    background-color: rgb(156, 156, 156);
    transition: all 400ms ease;
    border-radius: 5px;
    color:black;
}

/*styling for labels*/
label {
    margin-left: auto;
    margin-right: auto;
    /* display: flex; */
}

/*styling for message box */
#message{
    border-radius: 5px;
    background: transparent;
    color: red;
    border: 2px solid rgb(205, 154, 157);
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    width: 75%;
    height: 50%;
    margin-bottom: 10px;
}

/*styling for hire form submit button*/
.submit-button {
    transition: all 400ms ease;
    background-color: black;
    color: darkred;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    margin-bottom: 10px;
}
.submit-button:hover {
    color:rgb(195 168 170);
    background: transparent;
    transition: all 400ms ease;
    border-radius: 5px;
}
/*styling for h1 tags*/
h1 {
    color:rgb(254, 45, 45);
    animation: blink 2s linear infinite;
    max-width: 600px;
    margin-top: 15px;
}
label{
    color:whitesmoke;
    align-items: center;
}

/*The following code is for carousel animation to showcase projects*/
.carousel {
    display:flex; /* Displays project items in a row*/
    overflow-x: scroll; /* Enables horizontal scrolling */
    scroll-snap-type: x mandatory; /* Snaps to each project item */
    scrollbar-width: thin; /* Optional: Adds a scrollbar */
    column-gap: 3rem;
}

.project-item {
    border: 2px solid rgb(205, 154, 157);
    border-radius: 5px;
    flex: 0 0 300px; /* Adjust the width of each project item */
    padding: 20px;
    transition: all 400ms ease;
    scroll-snap-align: start; /* Snaps the project item to the start of the scroll container */
 }
 .project-item:hover {
    background-color: rgb(156, 156, 156);
    transition: all 400ms ease;
    border-radius: 5px;
    color:black;
 }