body {
    background-color: rgb(42, 40, 40);
    font-family: monospace;
}

#name {
    font-size: 160px;
    color: blanchedalmond;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 50px;   
    animation: fadeIn 2.6s ease-out;
    margin-bottom: 0px;
 
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



#explorebutton {
    font-size: 35px;
    padding: 8px 25px;
    background-color: #5C80BC;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#explorebutton:hover {
    background-color: #960000;
    transform: translateY(-7px);
}


.dropdownnav {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    list-style: none;
    position: absolute;
    top: 110%;
    left: 0;
    min-width: 80%;

    background-color: #5C80BC;
    padding: 10px 20px;
    border-radius: 15px;
    max-height: 0;
    overflow: visible;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.dropdown-menu li {
    list-style: none;
  }

.dropdown-menu a { 
    font-size: 25px;
    color:rgb(42, 40, 40);
    display: block;
    text-decoration: none;   
    padding: 8px 0px;
   
}

.dropdown-menu.active {
    max-height: 200px;
    opacity: 1;
}

/*This is the "Back to top" button code*/
#topbutton {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
  }


















/*This is the code for previous assignment look*/
/*#aboutnav {
    margin-left: 30px;
    font-size: 35px;
    display:inline-flex;    /* only as wide as content */
   /* align-items: center;
    justify-content: center;
    padding: 8px 25px;  /* space around nav items */
   /* background-color: #5C80BC; /* curved container color */
   /* border-radius: 30px;  /* round corners */
   /* transition: all 0.3s ease;
    position: relative;

}


.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
}

#contactnav {
    margin-left: 1180px;
    font-size: 35px;
    display:inline-flex;    /* only as wide as content */
   /* align-items: center;
    justify-content: center;
    padding: 8px 25px;  /* space around nav items */
    /*background-color: #5C80BC; /* curved container color */
   /* border-radius: 30px;  /* round corners */
   /* transition: all 0.3s ease;

}


#contactnav:hover{
    background-color: #960000; /* New color on hover */
   /* cursor: pointer; /* Changes cursor to a hand pointer */
   /* background-color: #960000;
    transform: translateY(-7px);
}


#aboutnav:hover{
    background-color: #960000; /* New color on hover */
    /* cursor: pointer; /* Changes cursor to a hand pointer */
  /*  background-color: #960000;
    transform: translateY(-7px);
}
*/
#scrolltextanimation {

 animation: bounceText 1.5s infinite ease-in-out;

}

@keyframes bounceText {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-15px); }
    100% { transform: translateY(0); }

}

#arrowimage {
    height: 60px;
    width: 130px;
   margin-left: 650px;
   transform: rotate(45deg);
   color: #960000;

}



#image-box-1 {
margin-right: 30px ;
    
}


#image-box-2 {
    margin-right: 30px ;
        
    }


#image-box-3 {
    margin-right: 30px ;
        
    }


#image-box-4 {
    margin-right: 30px ;
        
    }


#image-box-5 {
    margin-right: 30px ;
        
    }


#image-box-6 {
    margin-right: 30px ;
        
    }


#contactheader {
    font-size: 100px;
    font-family: monospace;
    color:blanchedalmond;
}

.projects-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px; /*space between projects */
    padding: 100px;
    margin-top: 120px;
}

.projects-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    color: blanchedalmond;
    font-family: monospace;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeUp 1s ease forwards; 
}
/*Note:nth-child = _child of a parent. For example nth-child (3), means third child of the parent element */
.projects-card:nth-child(1) {animation-delay: 0.2s; }
.projects-card:nth-child(2) {animation-delay: 0.4s; }
.projects-card:nth-child(3) {animation-delay: 0.6s; }
.projects-card:nth-child(4) {animation-delay: 0.8s; }
.projects-card:nth-child(5) {animation-delay: 1s; }
.projects-card:nth-child(6) {animation-delay: 1.2s;}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.projects-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(92, 128, 188, 1);
}

.project-card img {
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    background-color: white;
  }

  .nameheader {
    display: grid;
    flex-direction: row;
  }

  


  /*768px and under_tablets*/
@media (max-width: 768px) {
    
  h1{
    font-size: medium;

  }

}


/*520px and under_mobile*/
@media (max-width: 520px) {
    h1{
        font-size: x-small;
    }
    

}

/*This is where the CSS for "Back to Top" button will be*/ 

#backtotopbutton {
  display: none; /* this makes it hide by default */
  position: fixed; 
  bottom: 20px; /* This places the button at the bottom of the page */
  right: 30px; 
  z-index: 99; /* Makes sure the button does not overlap */
  border: none; 
  outline: none; 
  background-color:#5C80BC; 
  color: rgb(42, 40, 40); /*color of mi text*/
  cursor: pointer; 
  padding: 15px; 
  border-radius: 10px; 
  font-size: 18px; 
}

#backtotopbutton:hover {
  background-color: #960000; 
}



/*FUN GAME CSS PAGE START*/
.wrapper {
    position: absolute;
    width: 90%;
    max-width: 37em;
    background-color: #5C80BC ;
    padding: 7em 3em;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    text-align: center;
    border-radius: 1em;
    z-index: 1;
    margin-top: 200px;

}

.controls-container {
    background-color:rgb(42, 40, 40);
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    top: 0;
    z-index: 10;

}

#start {
    color: rgb(42, 40, 40);
    font-size: 1.2em;
    padding: 1em 3em;
    background-color: #960000;
    border: none;
    outline: none;
    border-radius: 2em;
    cursor: pointer; 
}

#letter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8em 0.4em;
    justify-content: center;
    margin-top: 2em;
  }

  #letter-container button {
    background-color: #ffffff;
    border: 2px solid #7786f5;
    color: #7786f5;
    outline: none;
    border-radius: 0.3em;
    cursor: pointer;
    height: 3em;
    width: 3em;
  }

  #letter-container .correct {
    background-color: #008000;
    color: #ffffff;
    border: 2px solid #008000;
  }
  #letter-container .incorrect {
    background-color: #8a8686;
    color: #ffffff;
    border: 2px solid #8a8686;
  }
  .hint-ref {
    margin-bottom: 1em;
  }
  .hint-ref span {
    font-weight: 600;
  }
  #chanceCount {
    margin: 1em 0;
    position: absolute;
    top: 0.62em;
    right: 2em;
  }
  #word {
    font-weight: 600;
    margin: 1em 0 2em 0;
  }
  #word span {
    text-transform: uppercase;
    font-weight: 400;
  }
  .hide {
    display: none;
  }
