@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");

:root {
  --red: hsl(0, 78%, 62%);
  --cyan: hsl(180, 62%, 55%);
  --orange: hsl(34, 97%, 64%);
  --blue: hsl(212, 86%, 64%);
  --varyDarkBlue: hsl(234, 12%, 34%);
  --grayishBlue: hsl(229, 6%, 66%);
  --veryLightGray: hsl(0, 0%, 98%);
  --weight1: 200;
  --weight2: 400;
  --weight3: 600;
}

.attribution { 
  font-size: 11px; text-align: center; 
}
.attribution a { 
  color: hsl(228, 45%, 44%); 
}

@media (max-width: 400px) {
  h1 {
      font-size: 1.5rem;
  }

  .skills img {
    margin: 20%;
  }

}

.header {
  text-align: center;
  line-height: 0.8;
  margin-bottom: 50px;
  margin-top: 100px;
}

.header p {
  margin: 0 auto;
  line-height: 2;
  color: var(--grayishBlue);
}

.box p {
  color: var(--grayishBlue);
}

.box h2{
  text-align: center;
}

.box {
  border-radius: 5px;
  box-shadow: 0px 30px 40px -20px var(--grayishBlue);
  padding: 30px;
  margin: 20px;  
}

.skills img {
  width: 100%;
  padding: 40px;
}

h4 {
  text-align: center;
}

@media (max-width: 450px) {
  .skills img {
    margin: 20%;
  }
}

@media (max-width: 950px) and (min-width: 450px) {
  .box {
    width: 50%;
    margin: auto;
    margin-top: 10%;
  }

  footer {
    margin-top: 10%;
  }
}


.cyan {
  border-top: 3px solid var(--cyan);
}
.red {
  border-top: 3px solid var(--red);
}
.blue {
  border-top: 3px solid var(--blue);
}
.orange {
  border-top: 3px solid var(--orange);
}

.skills h2 {
    color: var(--varyDarkBlue);
    font-weight: var(--weight3);
}


@media (min-width: 950px) {
  .row1-container {
      display: flex;
      justify-content: center;
      align-items: center;
  }
  
  .row2-container {
      display: flex;
      justify-content: center;
      align-items: center;
  }
  .box-down {
      position: relative;
      top: 150px;
  }
  .box {
      width: 20%;
   
  }

  
  .header p {
      width: 30%;
  }
  
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background-color: white;
  color: black;
  font-family: "Poppins", sans-serif;
}

header a {
  text-decoration: none;
}



header {
  padding: 0 20px;
  background-color: #1d1f1d;
  height: 120px;
  display: flex;
  justify-content: space-between;
}

#brand {
  font-weight: bold;
  font-size: 18px;
  display: flex;
  align-items: center;
}

#brand a {
  color: #09c372;
}

ul {
  list-style: none;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

ul a {
  color: white;
}

ul li {
  padding: 5px;
  margin-left: 10px;
}

ul li:hover {
  transform: scale(1.1);
  transition: 0.3s;
}

#login,
#signup {
  border-radius: 5px;
  padding: 5px 8px;
}

#login {
  border: 1px solid orange;
}

#login a {
  color: orange;
}

#hamburger-icon {
  margin: auto 0;
  display: none;
  cursor: pointer;
}

#hamburger-icon div {
  width: 35px;
  height: 3px;
  background-color: white;
  margin: 6px 0;
  transition: 0.4s;
}

.open .bar1 {
  -webkit-transform: rotate(-45deg) translate(-6px, 6px);
  transform: rotate(-45deg) translate(-6px, 6px);
}

.open .bar2 {
  opacity: 0;
}

.open .bar3 {
  -webkit-transform: rotate(45deg) translate(-6px, -8px);
  transform: rotate(45deg) translate(-6px, -8px);
}

.open .mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.mobile-menu {
  display: none;
  position: absolute;
  z-index: 2;
  top: 120px;
  padding-top: 100px;
  left: 0;
  height: calc(100vh - 50px);
  width: 100%;
  background-color: black;
}

.mobile-menu li {
  margin-bottom: 10px;
}

.container {
    position: relative;
  }

  .center {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    background-color: #353836;
    padding: 24px;
    border-radius: 15px;
    color: white;
  }
  
  .background_img { 
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Add the blur effect */
    /* filter: blur(8px);
    -webkit-filter: blur(8px); */
  }


  button {
    background-color: orange; /* Green */
    border: none;
    color: white;
    width: 100%;
    padding-top: 8px;
    border-radius: 5px;
    padding-bottom: 8px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin-top: 2rem;
    font-family: "Poppins", sans-serif;

  }

  button:hover {
    transform: scale(.9);
    transition-duration: 300ms;
  }

  div.gallery {
    border: none;
    
  }
  
  div.gallery:hover {
    border: none;
  }
  
  div.gallery img {
    width: 300px; 
    height: 200px; 
    object-fit: cover; 
    object-position: 100% 0;
    border-radius: 15px;
  }
  
  .responsive {
    padding: 0 6px;
    float: left;
    width: 24.99999%;
  }




/* CONTACT PAGE STYLE */

input[type=text], select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}

label {
  padding: 12px 12px 12px 0;
  display: inline-block;
}

input[type=submit] {
  background-color: orange;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  float: right;
}

input[type=submit]:hover {
  background-color: orange;
}

.contact-form {
  border-radius: 15px;
  background-color: #f2f2f2;
  padding: 20px;
  width: 50%;
  float: left;
  margin: 20px;
  margin-top: 0px;
}

.mid {
  width: 100%;
  margin-left: 25%;
}

.col-25 {
  float: left;
  width: 25%;
  margin-top: 6px;
}

.col-75 {
  float: left;
  width: 75%;
  margin-top: 6px;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

.text-style {
    padding: 16px;
}

.card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  max-width: 100%;
  margin: auto;
  text-align: center;
  float: left;
  padding: 20px;
  padding-bottom: 50px;
  border-radius: 15px;
}

.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

.card-container {
  padding: 2px 16px;
}

.card-button {
  border: none;
  outline: 0;
  display: inline-block;
  padding: 8px;
  color: white;
  background-color: #000;
  text-align: center;
  cursor: pointer;
  width: 100%;
  font-size: 18px;
  border-top-left-radius: 0%;
  border-top-right-radius: 0%;
}

.subhover {
  margin-top: 8px;
}

.subhover:hover {
  transform: scale(1.2);
  transition-duration: 300ms;
}

.card a {
  text-decoration: none;
  font-size: 22px;
  color: black;
}

.card a:hover {
  opacity: 0.7;
}


@media only screen and (max-width: 500px) {
    .responsive {
      width: 100%;
    }
}

@media only screen and (max-width: 600px) {
.box {
  width: 80%;
  height: auto;
  padding: 0;
  margin-left: 10%;
  margin-right: 10%;
}

.box img{
    width: 60%;
 
}

.box h2{
  padding-top: 1.5rem;

}

  header nav {
    display: none;
  }

  #hamburger-icon {
    display: block;
  }

  .center {
    position: absolute;
    top: 40%;
    padding-left: 5%;
    padding-right: 5%;
    width: 90%;
    transform: translate(-50%, -50%);
    font-size: 18px;

  }

  /* Responsive contact form */
  .col-25, .col-75, input[type=submit] {
    width: 100%;
    margin-top: 0;
  }

  .contact-form {
    width: 100%;
    margin: 0px;
    border-radius: 0%;
  }

  .card {
    border-radius: 0%;
  }

  div.gallery img {
    width: 100%; 
    height: 100%; 
  }

}

@media only screen and (max-width: 700px) {
  
    .responsive {
      width: 100%;
      margin: 6px 0;
    }
  }

.clearfix:after {
    content: "";
    display: table;
    clear: both;
  }


/* footer */
footer {
  width: 100%;
  left: 0;
  bottom: 0;
  background-color: #1d1f1d;
  color: #ccc;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  float: left;
}
.text-center {
  text-align: center;
  color: white;
}

ol li {
  padding-left: 2.5rem;
}

span a{
  text-decoration: none;
  color: white;
}

span a:hover {
  color: orange;
}