@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap');

*
{
  font-family: "Comfortaa", sans-serif;
  font-optical-sizing: auto;
  font-weight: bold;
  font-style: normal;
}

body,
h1 {
  margin: 0;
}

/* Image header at the top of the screen */

header {
  position: relative;

  height: 400px;

  overflow: hidden;
}

header .background {

  /* Set image dimensions */
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;

  background-color: black;

  object-fit: cover;
  object-position: center;
  z-index: -2;
  opacity: 0.8;
  filter: blur(2px);
}

/* Top header */

.inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav {
  /* Blue header settings */
  position: relative;
  padding: 0 clamp(20px, 10%, 500px);
  height: 60px;
}


nav::before {
  content: "";

  position: absolute;
  left: 0;

  display: block;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 32, 77, 0.8);
  box-shadow: black 0 2px 15px;

  transition: 0.15s height;

  z-index: -1;
}

nav a, nav p {
  color: white;
}

nav .end {
  display: flex;
  align-items: center;
  gap: 25px;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

section {
  padding: 0 clamp(20px, 10%, 500px);
}

/* Burger button specific to mobile devices */
.burger {
  display: none;

  width: 30px;
  height: 20px;

  flex-direction: column;
  justify-content: space-between;

  cursor: pointer;
}

.burger .line {
  width: 100%;
  height: 2px;
  background-color: gray;
}

button, input[type="submit"] {
  cursor: pointer;
  border: none;
  background-color: rgb(21, 65, 126);
  color: white;

  font-size: 1.1rem;

  padding: 0.5rem 2rem;
  border-radius: 8px;

  transition: 0.3s background-color;
}

button:hover {
  background-color: rgb(68, 91, 126);
}

input,
textarea {
  border-radius: 10px;
  border: 1px solid gray;
  padding: 0.5rem;
  outline: none;
}

/* Search bar */
.search {
  position: relative;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border: 1px solid gray;
  z-index: 1000;
}

.search-results a {
  display: block;
  padding: 0.5rem 1rem;
  color: black;
  text-decoration: none;
  border-bottom: 1px solid lightgray;
}

.search-results a:hover {
  background-color: lightgray;
  color: black;
}

.search-item p {
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: black;
}
.search-item span {
  color: rgba(0, 0, 0, 0.9);
  font-size: 0.8rem;
}

/* Phone specific */

@media (max-width: 700px) {

  /* Hide right side of the header and display the burger menu */

  nav .end {
    display: none;
  }

  nav.full .end {
    display: block;
    position: absolute;
    width: 100%;
    top: calc(100% + 10px);
  }

  nav.full::before {
    height: 300%;
  }

  nav .burger {
    display: flex;
  }
}