@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --dark-blue: #261132;
  --other-dark-blue: #3e2f5b;
  --white: #ffffff;
  --orange: #f89121;
  --whitesmoke: whitesmoke;
  --light-grey: rgb(236, 240, 244);
  --light-grey-1: #e5e5e5;
  --light-grey-1-hover: #e0e0e0;
  --grey: #f5f5f5;
  --dark-grey: #a8a8a8;
  --black: #212121;
  --blue: #017cf9;
  --light-blue: #6bb1f7;
  --red: #ec1848;
  --border-radius: 0.3rem;
  --box-shadow: 0 0 10px -6px #0000004d;
  --radius-s: 0.3rem;
  --font-1: "Outfit", sans-serif;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

::-webkit-scrollbar {
  width: 0.5rem;
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--other-dark-blue);
  border-radius: 50rem;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--white);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-1);
  font-weight: 800;
}

p,
label,
span,
input,
select,
textarea,
b,
a {
  font-family: var(--font-1);
  font-weight: 400;
}

button {
  padding: 0.8em 1em;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-1);
  font-weight: 600;
  font-size: 2ch;
  background-color: var(--blue);
  color: var(--white);
  cursor: pointer;
}

a button {
  padding-block: 0.5em;
  font-size: 1.8ch;
}

.input {
  display: grid;
  gap: 0.8rem;
}

input,
select,
textarea {
  padding: 1em;
  border: none;
  background-color: var(--other-dark-blue);
  border-radius: var(--border-radius);
  min-width: 100%;
  color: var(--white);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
}

::placeholder {
  color: var(--dark-grey);
}

.top-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#google_translate_element select {
  background-color: var(--dark-grey);
  padding: 0;
}

header {
  position: sticky;
  top: 0;
  display: flex;
  gap: 6rem;
  padding: 0.8rem 4rem;
  align-items: center;
  z-index: 20;
  background-color: var(--white);
  /* box-shadow: var(--box-shadow); */
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#logo {
  height: 4.5rem;
}

.logo h4 {
  color: var(--blue);
  font-size: 1.5rem;
}

.links {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-grow: 1;
}

a {
  text-decoration: none;
}

#link {
  font-size: 2ch;
  color: var(--dark-blue);
  text-transform: capitalize;
  cursor: pointer;
}

#link:hover {
  color: var(--other-dark-blue);
}

.dropdown-content-box {
  position: absolute;
  top: 3rem;
  z-index: 1;
  padding-top: 1rem;
  visibility: hidden;
}

.dropdown-content {
  background-color: var(--grey);
  box-shadow: var(--box-shadow);
  padding: 0.8rem;
  border-radius: var(--radius-s);
  display: grid;
  gap: 1rem;
}

.dropdown:hover .dropdown-content-box {
  visibility: visible;
}

.user {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.user a button {
  background-color: transparent;
  color: var(--other-dark-blue);
  font-weight: 400;
  padding: 0;
}

.login {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.login p::selection,
.login p > b::selection {
  background-color: transparent;
}

.login p b {
  color: var(--blue);
}

.burger {
  gap: 0.2rem;
  cursor: pointer;
  display: none;
}

.burger div {
  height: 0.18rem;
  width: 1.6rem;
  background-color: var(--blue);
  border-radius: var(--radius-s);
}

.profile {
  position: absolute;
  background-color: var(--grey);
  inset: 2rem 0 auto 0;
  display: grid;
  border-radius: 0.3rem;
  overflow: hidden;
  visibility: hidden;
  box-shadow: var(--box-shadow);
}

.profile p {
  color: var(--black);
  padding: 0.5rem;
  font-size: 1.5ch;
}

#logout p {
  color: var(--white);
  background-color: var(--red);
}

.show-profile {
  visibility: visible;
}

.mobile-navigation {
  position: fixed;
  inset: 0;
  background-color: var(--white);
  z-index: 100;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transform: translateX(-100%);
  transition: 250ms;
}

.show-mobile-navigation {
  transform: translateX(0);
}

.mobile-navigation .header-box {
  text-align: right;
}

.header-box i {
  color: var(--blue);
  font-size: 2rem;
}

.user-info p {
  font-size: 1.5rem;
}

.user-info a button {
  width: 100%;
  font-size: 1.8rem;
  justify-content: center;
  background-color: var(--blue);
}

.navigation-info {
  display: grid;
  gap: 1.5rem;
}

.navigation-info a {
  font-size: 2rem;
  color: var(--dark);
}

#logout {
  color: red;
}

/* Footer */
footer {
  background-color: var(--black);
  color: var(--white);
  padding: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-about h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.75rem;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.social-links a:hover {
  background-color: var(--blue);
  transform: translateY(-3px);
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.legal-links {
  display: flex;
  gap: 20px;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: var(--transition);
}

.legal-links a:hover {
  color: var(--white);
}

.btn {
  margin-top: 1rem;
  position: relative;
  border-radius: var(--radius-s);
  grid-column: 1/-1;
}

.button--text {
  transition: all 0.2s;
}

.btn--loading .button--text {
  visibility: hidden;
  opacity: 0;
}

.btn--loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 20px;
  inset: 0;
  margin: auto;
  border: 3px solid transparent;
  border-top-color: var(--white);
  border-radius: 50%;
  animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
  from {
    transform: rotate(0turn);
  }
  to {
    transform: rotate(1turn);
  }
}

.tops {
  position: sticky;
  top: 4.3rem;
  z-index: 10;
  display: grid;
  gap: 0.2rem;
  animation: fade-away 1s 10s forwards;
}

@keyframes fade-away {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    display: none;
  }
}

.alert {
  position: relative;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
  padding: 0.3rem 0.5rem;
}

#message {
  font-size: 1.6ch;
}

.alert-success {
  color: #3c763d;
  background-color: #dff0d8;
  border-color: #d6e9c6;
}

.alert-info {
  color: #31708f;
  background-color: #d9edf7;
  border-color: #bce8f1;
}

.alert-warning {
  color: #8a6d3b;
  background-color: #fcf8e3;
  border-color: #faebcc;
}

.alert-danger {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
}

@media screen and (max-width: 1100px) {
  .links {
    display: none;
  }

  .nav > a {
    flex-grow: 1;
  }

  .burger {
    display: grid;
  }

  .side-nav .links {
    display: flex;
  }
}

@media screen and (max-width: 900px) {
  header,
  footer {
    padding-inline: 1rem;
  }
}

@media screen and (max-width: 700px) {
  .login,
  .user {
    display: none;
  }

  .side-nav .login,
  .side-nav .user {
    display: flex;
  }

  #logo {
    height: 3rem;
  }
}
