:root {
  --primary: #1297ff;
  --primary-dark: #0076d0;
  --secondary: #29ffdb;
  --grey: #e9e9e9;
  --light: #fff;
  --dark: #000;
  --dark-grey: #555;
}

body {
  background-color: var(--primary);
  background: linear-gradient(
    to bottom right,
    var(--primary),
    var(--secondary)
  );
  height: 100vh;
  margin: 0;
  font-family: "Roboto", serif;
}

* {
  box-sizing: border-box;
  user-select: none;
}

.hide-mobile,
.f-hide-mobile {
  display: none !important;
}

.show-mobile {
  display: block !important;
}

.swal2-confirm {
  background-color: var(--primary) !important;
  border: none !important;
  box-shadow: none !important;
}

h1 {
  font-family: "Fredoka", serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--light);
}

h1 > span {
  color: var(--dark);
}

h2 {
  font-size: 1.8rem;
  word-wrap: break-word;
}

button,
a.aw-btn {
  font-family: "Roboto", serif;
  font-size: 1rem;
  border-radius: 12px;
  border: none;
  padding: 0.4rem 1rem;
}

button:hover {
  cursor: pointer;
}

a.aw-btn {
  text-decoration: none;
}

.aw-btn {
  text-shadow: 1px 1px 2px var(--dark);
  color: var(--light);
  background-color: var(--secondary);
  background: linear-gradient(
    to bottom right,
    var(--secondary),
    var(--primary)
  );
}

.aw-btn:hover {
  background-color: var(--secondary);
  background: linear-gradient(
    to bottom right,
    var(--primary),
    var(--secondary)
  );
  transition: 2s ease;
}

.gradient-txt {
  background-color: var(--secondary);
  background: linear-gradient(
    to bottom right,
    var(--secondary),
    var(--primary)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header,
nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

header {
  justify-content: left;
}

.nav {
  margin: 1rem;
}

.nav-icon {
  width: 2.6rem;
  height: 2.6em;
}

header > #brand {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 0.4rem;
  margin-left: 1rem;
}

header > #brand > img {
  display: block;
  width: 25px;
}

nav {
  margin: 1rem;
  justify-content: space-between;
}

.window {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.window > div {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: #ffc42f;
}

.window > div:first-child {
  background-color: #5ad462;
}

.window > div:last-child {
  background-color: #ed5151;
}

nav > #nav-btns {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 0.4rem;
}

nav > #nav-btns > button {
  background-color: var(--light);
}

nav > #nav-btns > button:hover {
  background-color: var(--light);
  color: var(--primary-dark);
}

main {
  background-color: var(--light);
  box-shadow: 0 2px 4px #4444448f;
  position: absolute;
  top: 6%;
  left: 2%;
  border-radius: 8px;
  width: 94%;
  height: 90%;
  overflow-y: auto;
}

section {
  margin: 0.4rem 0.8rem;
}

section#home {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.container-home-desc,
.container-formation {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

section#home > .container-home-img {
  display: flex;
  justify-content: center;
  align-items: center;
}

section#home > .container-home-img > .home-img {
  width: 80%;
  display: block;
}

section#focus {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

section#focus > .container-focus-desc {
  display: flex;
  flex-direction: column;
}

section#focus .card {
  display: flex;
  padding: 1rem;
  border: 1px solid var(--primary);
}

.swiper2 {
  width: 90%;
  max-width: 500px;
  max-height: 200px;
  margin: 20px auto;
}

.swiper2 .swiper-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 2rem 2rem 3rem 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.swiper2 .swiper-slide h3 {
  margin: 0 0 10px;
  font-size: 18px;
  text-align: center;
}

.swiper2 .swiper-slide img {
  width: 100%;
  max-width: 50px;
  border-radius: 5px;
}

section#formation {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
}

section#formation > .container-search-bar {
  display: flex;
  align-items: center;
  justify-content: center;
}

section#formation > .container-search-bar > .search-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--light);
  border-radius: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  padding: 10px 15px;
}

section#formation > .container-search-bar > .search-bar > .search-icon {
  width: 24px;
  height: 24px;
  margin: 0 10px;
  fill: var(--dark-grey);
}

section#formation > .container-search-bar > .search-bar > .search-input {
  width: 200px;
  border: none;
  outline: none;
  font-size: 16px;
  font-size: 1.2rem;
  letter-spacing: 2px;
  flex: 1;
  background: transparent;
  color: var(--dark-grey);
}

@media screen and (min-width: 720px) {
  main {
    box-shadow: 0 2px 20px #444;
    position: absolute;
    top: 10%;
    left: 5%;
    border-radius: 12px;
    width: 90%;
    height: 85%;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 2.4rem;
  }

  .window {
    margin-left: 1rem;
  }

  header > #brand > img {
    width: 45px;
  }

  section {
    margin: 2rem 4rem;
  }

  section#home,
  section#focus,
  section#formation {
    flex-direction: row;
  }

  section#home > .container-home-img > .home-img {
    width: 100%;
    display: block;
  }

  section#formation {
    gap: 2rem;
  }

  .show-mobile {
    display: none !important;
  }

  .hide-mobile {
    display: block !important;
  }

  .f-hide-mobile {
    display: flex !important;
  }
}
