*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.fredoka {
  font-family: "Fredoka", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}
 

section{
    height: 100vh;
    width: 100%;
    background: linear-gradient(-45deg, #5de0e6, #004aad); 
    display: flex;
    flex-direction: column;
    overflow-y: scroll;    

}


h1{
    font-family: fantasy;
    color: white;
    font-size: 60px;
    padding: 20px;
    text-align: center;
    position: static;
    left: 40%;
}

.project{
    display: flex;
    flex-direction: column;
    
}

.pro{
    display: flex;
    flex-direction: row;
    position: relative;
    margin: 40px;
}
.img{
    height: 350px;
    width: 500px;
    background-image: url("A.png");
    background-position: center;
    background-size: cover;
    border-radius: 5px;
    margin-left: 200px;
    border: 5px solid black;
    box-shadow: 5px 5px 20px #000000;
}

h2{
    font-family: fredoka;
    font-weight: 400;
    font-size: 40px;
    color: white;
    margin: 20px;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
}

.text{
    height: 250px;
    width: 600px;
    background-color: #003984d1;
    position: absolute;
    top: 80px;
    right: 230px; 
    border-radius: 4px;
    padding: 30px;
    color: lightblue;
    font-size: 23px;
    font-family: fredoka;
    font-weight: 300;
}

.view{
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(161, 211, 255, 0.914);
    z-index: 10;
    position: absolute;
    bottom: -25px;
    right: -25px;
}

i{
    color: white;
    font-size: 40px;
    padding: 20px;
}



.imgr{
    height: 350px;
    width: 500px;
    background-image: url("A.png");
    background-position: center;
    background-size: cover;
    border-radius: 5px;
    margin-left: 250px;
    border: 5px solid black;
    box-shadow: 5px 5px 20px #000000;
    position: relative;
    right: -250px;
   
}

.textr{
    height: 250px;
    width: 600px;
    background-color: #003984d1;
    position: absolute;
    top: 80px;
    right: 630px;
    border-radius: 4px;
    padding: 30px;
    color: lightblue;
    font-size: 23px;
    font-family: fredoka;
    font-weight: 300;
    z-index: 10;
}

.textboxr{
    text-align: right;
}

.r{
    position: relative;
    left: 250px;
}

.viewr{
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(161, 211, 255, 0.914);
    z-index: 10;
    position: absolute;
    bottom: -25px;
    left: -25px;
}

.b{
    background-image: url("B.png");
}

.c{
    background-image: url("C.png");
    background-size: cover;
}

.d{
    background-image: url("D.png");
}

.e{
    background-image: url("E.png");
    background-size: cover;
}

.f{
    background-image: url("F.png");
    background-size: cover;
}

.g{
    background-image: url("G.png");
    background-size: cover;
}

.h{
    background-image: url("H.png");
    background-size: cover;
    background-position: left;
}

@media (min-width: 768px) and (max-width: 991px) {
  .project {
    flex-direction: column;
  }

  .pro {
    flex-direction: column;
    margin: 60px 5vw;
    align-items: center;

  }

  .img, .imgr {
    width: 90vw;
    max-width: 450px;
    margin: 0 auto 20px auto;
    right: 0;
    left: 0;
  }

  .textbox, .textboxr, .text, .textr {
    position: static;
    width: 90vw;
    max-width: 450px;
    margin: 0 auto 15px auto;
    top: 0;
    right: 0;
    left: 0;
  }

  .textr {
    z-index: 1;
    text-align: left;
    font-size: 20px;

  }
  .text {
    z-index: 1;
    text-align: left;
    font-size: 20px;
  }

  .view, .viewr {
    position: static;
    margin: 0px 22px 20px -50px;
    left: 20px;
    right: 0;
    bottom: 0;
  }

  h2, .r {
    font-size: 32px;
    text-align: center;
    position: static;
    left: 0;
    transform: none;
    margin: 10px 0 10px 0;
  }

  .r {
    left: 0;
  }

  .swap{
    display: flex;
    flex-direction: column-reverse;
  }
}

@media (max-width: 767px) {
  section {
    padding: 20px 10px;
    height: auto;
    overflow-y: visible;
  }

  .project {
    flex-direction: column;
    gap: 25px;
    padding: 0;
  }

  .pro {
    flex-direction: column;
    margin: 15px auto;
    align-items: center;
    max-width: 95vw;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
  }

  .img, .imgr {
    width: 100%;
    max-width: 400px;
    height: 220px;
    border-width: 3px;
    box-shadow: 3px 3px 12px #000000AA;
    margin: 0 0 20px 0;
    border-radius: 8px;
  }

    .imgr{
        margin-left: -1%;
        position: static;

    }

  .textbox, .textboxr, .text, .textr {
    position: static;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    margin: 0 auto 15px auto;
    font-size: 18px;
    line-height: 1.5;
    border-radius: 8px;
    background-color: rgba(0, 57, 132, 0.85);
    box-shadow: 0 1px 5px rgba(0,0,0,0.3);
    text-align: center;
  }



  h1 {
    font-size: 40px;
    padding: 10px 0 15px 0;
    text-shadow: 0 0 8px rgba(0,0,0,0.7);
  }

  h2, .r {
    font-size: 28px;
    color: #ffffffdd;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.75);
    margin: 0 0 15px 0;
    text-align: center;
    position: static;
    transform: none;
  }

  .view, .viewr {
    width: 60px;
    height: 60px;
    font-size: 28px;
    margin-right: 0px;
    position: relative;
    background-color: rgba(161, 211, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border-radius: 50%;
  }

  .view{
    right: 10px;
  }

  i {
    font-size: 30px;
    padding: 14px;
  }

  .r {
    left: 0;
  }

  .swap{
    display: flex;
    flex-direction: column-reverse;
  }
}

.techstack{
  background-color: rgba(163, 102, 255, 0.467);
  border: 0.5px solid white;
  border-radius: 15px;
  padding: 0 5px;
  display: inline;
  margin: 4px;
  padding: 5px;
  margin: 10px;
  z-index: -1;
  margin-top: 30px;
  
}

.img:hover,
.imgr:hover{
  z-index: 1000;
  transform: scale(1.1);
}


