@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap");
* {
  margin: 0px;
  box-sizing: border-box;
}

body {
  font-family: "Roboto Mono", monospace;
}

body::-webkit-scrollbar {
  width: 10px;
  background-color: rgba(255, 255, 255, 0);
}

body::-webkit-scrollbar-thumb {
  background-color: #43919B;
  border-radius: 5px;
}

header {
  display: flex;
  background-color: #247881;
  align-items: center;
  justify-content: space-between;
  padding: 0px 60px;
  flex-wrap: wrap;
  position: sticky;
  top: 0px;
  z-index: 1000;
  box-shadow: 0px 3px 10px gray;
}

header, header div{
  height: 100px;
  transition: height 0.3s ease-in-out;
}

.scrolled, .scrolled div {
  height: 50px;
}

.scrolled h1{
  display: none;
}

.scrolled img{
  width: 50px;
  position: relative;
  left: 0px;
}

header div {
  display: flex;
  align-items: center;
  gap: 30px;
}
header img {
  width: 100px;
}
h1, header a {
  color: white;
  text-decoration: none;
}

header ul {
  list-style: none;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.presentation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-top: 100px;
}

.hidden {
  opacity:0;
}

.console-container {
  font-size:2em;
  text-align:center;
  display:block;
  color:#247881;
  top:0;
  bottom:0;
  left:0;
  right:0;
}
.console-underscore {
  display:inline-block;
  position:relative;
  top:-0.14em;
  left:10px;
}

.presentation p {
  color: #247881;
  font-size: 1.875rem;
  text-align: center;
}
.presentation .imgEmoji {
  margin-bottom: 30px;
}
.presentation h3 {
  color: #43919B;
}

.wave {
  width: 100%;
}

.service {
  background-color: #247881;
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
}

.card {
  width: 300px;
  height: 290px;
  perspective: 1000px;
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-front {
  color: white;
  padding: 20px;
}

.card-back {
  color: #fff;
  transform: rotateY(180deg);
  padding: 20px;
}

.card-front, .card-back {
  display: flex;
  flex-direction: column;
  text-align: center;
  background-color: #43919B;
  padding: 30px;
  border-radius: 20px;
  row-gap: 20px;
  margin-bottom: 100px;
  box-shadow: 0px 2px 10px rgb(41, 41, 41);
}


.card i {
  color: white;
  font-size: 4.375rem;
}
.card h3 {
  font-size: 1.5rem;
}

.portfolio {
  display: flex;
  flex-direction: column;
}
.portfolio div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 200px;
  padding: 50px 100px;
}
.portfolio div a {
  text-decoration: none;
  color: #247881;
}
.portfolio div article {
  box-shadow: 0px 5px 20px #247881;
  border-radius: 20px;
  transition: transform 500ms ease-in-out;
}
.portfolio div article img {
  width: 500px;
  border-radius: 20px 20px 0px 0px;
}
.portfolio div article h3 {
  text-align: center;
}
.portfolio div article:hover {
  transform: scale(1.2);
}

.contact {
  background-color: #247881;
  display: flex;
  flex-direction: column;
  text-align: center;
  color: white;
}
.contact h2 {
  font-size: 4.375rem;
  margin-bottom: 30px;
}
.contact form {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact form .nameAndEmail {
  display: flex;
  gap: 0px 30px;
}
.contact form .divInput {
  display: flex;
  flex-direction: column;
}
.contact form .divInput label {
  text-align: start;
  padding-left: 10px;
  margin-bottom: 5px;
}
.contact form input {
  border-radius: 10px;
  border: 1px solid #247881;
  width: 200px;
  height: 30px;
  padding: 5px 20px;
}
.contact form textarea {
  width: 500px;
  height: 300px;
  margin-top: 30px;
  border-radius: 10px;
  border: 1px solid #247881;
  padding: 10px;
  resize: none;
}
.contact form button {
  margin: 20px 0px;
  padding: 15px 25px;
  border: unset;
  border-radius: 15px;
  color: #212121;
  z-index: 1;
  background: #e8e8e8;
  position: relative;
  font-weight: 1000;
  font-size: 1.063rem;
  box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
  transition: all 250ms;
  overflow: hidden;
}
.contact form button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  border-radius: 15px;
  background-color: #43919B;
  z-index: -1;
  box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
  transition: all 250ms;
}
.contact form button:hover {
  color: #e8e8e8;
  cursor: pointer;
}
.contact form button:hover::before {
  width: 100%;
}
.contact a {
  text-decoration: none;
  color: white;
  margin-bottom: 20px;
  margin-top: 5px;
}
.contact a:hover {
  text-decoration: underline;
}

footer {
  background-color: #247881;
  border-top: 3px solid #43919B;
  display: flex;
  padding: 20px;
  align-items: center;
  justify-content: space-between;
}
footer a, footer p {
  text-decoration: none;
  color: white;
}
footer div {
  display: flex;
  gap: 20px;
}
footer div i {
  font-size: 1.875rem;
}
footer div i:hover {
  transform: scale(1.2);
}
footer p a:hover {
  text-decoration: underline;
}

@media (max-width: 900px){
  header {
    height: auto;
  }
}

@media (max-width: 500px) {

  .scrolled img{
    display: none;
  }

  .scrolled{
    justify-content: center;
  }

  .scrolled ul{
    margin: 0px;
    padding: 0px;
  }

  header{
    padding-left: 0px;
    padding-right: 0px;
  }

  header ul {
    margin-bottom: 20px;
  }

  .wave {
    width: 100vw;
  }

  .portfolio article {
    width: 300px;
  }
  .portfolio div {
    row-gap: 70px;
  }
  .portfolio div article img {
    width: 300px;
  }

  .contact h2 {
    font-size: 3.125rem;
  }
  .contact form .nameAndEmail {
    flex-direction: column;
  }
  .contact form .divInput {
    margin-bottom: 20px;
  }
  .contact form textarea {
    width: 300px;
    margin-top: 0px;
  }

  footer {
    flex-direction: column;
    row-gap: 20px;
  }
}