.project {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  padding-left: 10%;
  padding-right: 10%;
  padding-top: 5%;
  grid-gap: 3%;
}

.project-informations {
  text-align: left;
}

.project-button {
  display: inline-block;
  padding: 0.3em 1.2em;
  margin: 0 0.3em 0.3em 0;
  border-radius: 2em;
  box-sizing: border-box;
  font-weight: 300;
  text-align: center;
  color: #fff;
  font-size: 1rem;
  outline: none;
  cursor: pointer;
}

@media all and (max-width: 30em) {
  .project-button {
    display: block;
    margin: 0.2em auto;
  }
}

.project-img {
  border: 1px solid #333;
  margin-bottom: 20px;
  height: 350px;
  overflow-y: scroll;
  
}
/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: #888; 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555; 
}

.project-img img {
  max-width: 100%;
  height: auto;
  cursor: pointer;
  
}

.project:nth-of-type(2n) .project-informations {
  order: 2;
}

.project-informations h3 {
  margin: 0 0;
  font-size: 20px;
  padding-top: 10px;
  text-transform: uppercase;
}

.project-informations p {
  font-size: 20px;
}



/*
=============================
View Project Button
=============================
*/
.wrapper{
  margin-top:20px;
    position: absolute;
}



.project-icon{
    width: 40px;
    height: 40px;
    border: 3px solid transparent;
    position: absolute;
    transform: rotate(45deg);
    right: 0;
    top: 0;
    z-index: -1;
    transition: all .35s;
}

.project-icon svg{
    width: 30px;
    position: absolute;
    top: calc(50% - 15px);
    left: calc(50% - 15px);
    transform: rotate(-45deg);
    fill: #333;
    transition: all .35s;
}





.glow-on-hover {
    width: 120px;
    height: 40px;
    border: none;
    outline: none;
    color: black;
    border: 3px solid black;
    /* background: #111; */
    background: white;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
    font-size: 15px;
    margin-right: 5px;
}

.glow-on-hover:before {
    content: '';
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -2px;
    left:-2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
}

.glow-on-hover:active {
    color: #000
}

.glow-on-hover:active:after {
    background: transparent;
}

.glow-on-hover:hover:before {
    opacity: 1;
}

.glow-on-hover:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    /* background: #111; */
    background: white;
    left: 0;
    top: 0;
    border-radius: 10px;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

@media(max-width: 645px) {
  #myproject2{
    display:flex;
    flex-direction: column-reverse;
    /* gap: 50px; */
  }
  .project-img{
    margin-top: 100px;
  }
  .projects-main{
    margin-bottom: -50px;

  }
}
@media(min-width: 646px) and (max-width: 990px) {
  .wrapper{
    margin-top:-15px;
  }
}