* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    font-family: sans-serif;
}

html {
  scroll-behavior: smooth;
}


body {
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #111111;
    overflow-x: hidden;
}

section {
    width: 100vw;
    height: 100vh;
    position: relative;
}

a {
    text-decoration: none;
    color: #444444;
}

button {
    font-weight: 700;
    background-color: transparent;
    border: none;
}

.search-bar {
  transition: opacity 0.3s ease;
}

.search-bar.show {
  opacity: 1;
  pointer-events: auto;
}

.search-bar.fade-out {
  opacity: 0;
  pointer-events: none;
}


.search-result {
    position: fixed;
    z-index: 333;
    top: 8%;
    left: 0%;
    width: 100vw;
    height: 40vh;
    background-color: white;
    padding: 2em;
    display: none;
    flex-wrap: nowrap; 
    flex-direction: row;
    gap: 1em;
    animation: none;
    transform-origin: top;
    overflow-x: auto;
    pointer-events: auto;
}

.result-card {
    width: 380px;
    height: 320px;
    border-radius: 25px;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    border: 1px solid #444444;
    padding-bottom: 1em;
}

.result-img {
    width: 100%;
    height: 60%;
    border-radius: 25px 25px 0 0;
    object-fit: cover;
}

.result-info {
    width: 90%;
    height: 40%;
    padding-left: 1em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.result-title {
    font-size: 1rem;
    font-weight: 700;
}

.result-des {
    font-size: 0.8rem;
    color: #444444;
}

.result-btn {
    width: 60px;
    height: 30px;
    border-radius: 5px;
    background-color: white;
    box-shadow: 2px 2px 4px 0px rgb(211, 210, 210);
    color: #111111;
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

.result-btn:hover {
    background-color: #111111;
    color: white;
}

.nav-bar {
    width: 100vw;
    height: 50px;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid gray;
    background-color: white;
    padding: 2em;
    padding-top: 3em;
    z-index: 444;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav {
    width: 30%;
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    gap: 4em;
    font-weight: 700;
}

.search-bar {
    height: 40px;
    width: 30%;
    background-color: white;
    display: flex;
    gap: 1em;
    flex-direction: row;
    align-items: center;
    justify-content: end;
}

.nav a:hover {
    color: #111111;
}

.search {
    color: gray;
    width: 80%;
    height: 100%;
    border-radius: 10px;
    border: none;
    box-shadow: 2px 2px 4px 0px rgb(211, 210, 210);
    padding-left: 1em;
}

.search-btn,
.clear-btn {
    height: 90%;
    align-items: center;
    color: #444444;
}

.search-btn:hover,
.clear-btn:hover {
    color: #111111;
}

.background-img {
    width: 100%;
    height: 100%;
    background-image: url('https://images.pexels.com/photos/5627347/pexels-photo-5627347.jpeg');
    background-size: cover;
    background-repeat: none;
    background-position: center center;
    position: relative;
}

.introduction {
    width: 600px;
    height: 45%;
    position: absolute;
    top: 30%;
    left:10%; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
}

.introduction h1 {
    font-size: 5rem;
    display: inline-flex;
    line-height: 5rem;
}

.introduction a {
    width: 160px;
    height: 44px;
    align-items: center;
    color: #111111;
    background-color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.introduction a:hover {
    color: white;
    background-color: #111111;
}

.social {
    width: 50px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1em;
    align-items: center;
    position: fixed;
    top: 50%;
    right: 0%;
    border-radius: 25px;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.3);    
    z-index: 444;
}

.social button {
    color: #ffffff;
}

.social button:hover {
    color: #111111;
}

#page2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about {
    width: 80%;
    height: 50%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 4em;
}

.about-text {
    width: 60%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    padding: 2em;
}

.about-img {
    width: 40%;
    height: 100%;
    background-image: url('https://images.pexels.com/photos/35760696/pexels-photo-35760696.jpeg');
    background-repeat: none;
    background-size: cover;
    background-position: center 80%;
    border-radius: 10px;
}

.about-text h1 {
    font-size: 5rem;
}

.team {
    width: 100%;
    height: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    color: #111111;
}

.team h1 {
    display: none
}

.team-cards {
    width: 60%;
    height: 280px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.team-card {
    width: 250px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-john {
    width: 200px;
    height: 200px;
    border-radius: 200px;
    background-image: url('https://images.pexels.com/photos/2379004/pexels-photo-2379004.jpeg');
    background-repeat: none;
    background-position: center center;
    background-size: cover;
}

.profile-carolline {
    width: 200px;
    height: 200px;
    border-radius: 200px;
    background-image: url('https://images.pexels.com/photos/733872/pexels-photo-733872.jpeg');
    background-repeat: none;
    background-position: center center;
    background-size: cover;
}

.profile-alexa {
    width: 200px;
    height: 200px;
    border-radius: 200px;    
    background-image: url('https://images.pexels.com/photos/1520760/pexels-photo-1520760.jpeg');
    background-repeat: none;
    background-position: center center;
    background-size: cover;
}

.name {
    margin-top: 1em;
    font-weight: 700;
}

.position {
    text-align: center;
}

#page3 {
    background-image: url('https://images.pexels.com/photos/1731660/pexels-photo-1731660.jpeg');
    background-repeat: none;
    background-position: top center;
    background-size: cover;
}

.contact {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 4em;
    padding-right: 10em;
    padding-left: 10em;
}

.contact h1 {
    margin-top: 2em;
    align-self: start;
    font-size: 4rem;
    color: white;
}

form {
    margin-top: 2em;
    width: 30%;
    height: 80%;
    color: #111111;
    background-color: white;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    padding: 2em;
}

form input {
    color: gray;
    width: 100%;
    height: 40px;
    border-radius: 10px;
    border: none;
    box-shadow: 2px 2px 4px 0px rgb(211, 210, 210);
    padding-left: 1em;
    padding-right: 1em;
    margin-bottom: 1em;
}

form button {
    width: 100%;
    height: 40px;
    background-color: #111111;
    border-radius: 10px;
    color: white;
}

form label {
    margin-bottom: 1em;
}

form textarea {
    color: gray;
    width: 100%;
    height: 280px;
    border-radius: 10px;
    border: none;
    box-shadow: 2px 2px 4px 0px rgb(211, 210, 210);
    padding: 1em;
    margin-bottom: 1em;
}

@media (min-width: 100px) and (max-width: 1240px) {

.nav-bar {
    width: 100vw;
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid gray;
    background-color: white;
    padding: 1em;
    z-index: 444;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
}

.nav {
    display: none;
}

.search-bar {
    height: 40px;
    width: 60%;
    background-color: white;
    display: flex;
    gap: 1em;
    flex-direction: row;
    align-items: center;
    justify-content: end;
}

.introduction {
    width: 80%;
    height: 40%;
    position: absolute;
    top: 50%;
    left:10%; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
}

.introduction h1 {
    font-size: 3rem;
    display: inline-flex;
    line-height: 3rem;
}

#page2 {
    display: flex;
    flex-direction: column;
    justify-content: space-center;
    align-items: center;
}

.about {
    width: 100%;
    height: 40%;
    padding: 0;
}

.about-text {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    justify-self: start;
}

.about-img {
    display: none;
}

.about-text h1 {
    font-size: 2rem;
}

.team {
    width: 100%;
    height: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    color: #111111;
}

.team h1 {
    display: block;
    font-size: 2rem;
    width: 80%;
    text-align: end;
}

.team-cards {
    width: 100%;
    height: 280px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.team-card {
    width: 30%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card p {
    font-size: 0.8rem;
}

.profile-john {
    width: 100px;
    height: 100px;
}

.profile-carolline {
    width: 100px;
    height: 100px;
}

.profile-alexa {
    width: 100px;
    height: 100px;
}

.name {
    margin-top: 1em;
    font-weight: 700;
}

.position {
    text-align: center;
}

.contact {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    padding: 1em;
}

.contact h1 {
    width: 90vw;
    margin-top: 2em;
    align-self: start;
    font-size: 2rem;
    color: white;
}

form {
    width: 90vw;
    height: 80%;
    color: #111111;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    padding: 2em;
}

.search-result {
    position: fixed;
    z-index: 333;
    top: 8%;
    left: 0%;
    right: 0%;
    width: auto;
    height: auto;
    background-color: white;
    padding: 2em;
    display: none;
    flex-direction: row;
    gap: 1em;
    animation: none;
    transform-origin: top;
    overflow-x: auto;    
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

}

@keyframes wipe-out {
  from {
    transform: scaleY(1);
    opacity: 1;
  }
  to {
    transform: scaleY(0);
    opacity: 0;
  }
}

@keyframes wipe-in {
  from {
    transform: scaleY(0);
    opacity: 0;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}