@font-face {
  font-family: "Birthstone";
  src: url("../fonts/Birthstone/Birthstone-Regular.ttf");
}

@font-face {
  font-family: "Playball";
  src: url("../fonts/Playball/Playball-Regular.ttf");
}

:root {
  --gradient-start: #f04faf;
  --gradient-end: #8031c9;
  --main: #8031c9;
  --menu-text: #2b2b2b;
  --black: #000000;
  --white: #ffffff;
  --placeholder: #cecece;
  --white-opacity-20: rgba(255, 255, 255, 0.2);
  --white-opacity-30: rgba(255, 255, 255, 0.3);
  --shadow: rgba(0, 0, 0, 0.4);

  --btn-gradient-start: #9d4fe3;
  --btn-gradient-end: #8031c9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
  transition: all 0.3s ease-in-out;
  -webkit-tap-highlight-color: transparent;
}

html {
  width: 100%;
  height: 100%;
}

body {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
}

/* ---------------LOGIN--------------- */

.login-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-container {
  width: 900px;
  height: 600px;
  border-radius: 20px;
  background: var(--white-opacity-20);
  box-shadow: 0 0 10px var(--shadow);
  display: flex;
}

.login-container-left {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
}

h1#login-appname {
  font-size: 70px;
  font-family: "Playball";
  color: var(--white);
  text-shadow: 0 0 10px var(--shadow);
  margin-bottom: 30px;
}

form#form-login {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.login-input-group {
  width: 70%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.login-input-group img {
  height: 30px;
  filter: drop-shadow(0 0 5px var(--shadow));
}

.login-form-control {
  width: 100%;
  background: none;
  border: none;
  font-size: 16px;
  outline: none;
  border-bottom: 2px solid var(--white);
  padding: 5px;
  color: var(--white);
}

.login-form-control::placeholder {
  color: var(--placeholder);
  font-size: 16px;
}

.login-form-control:focus {
  border-bottom: 2px solid var(--main);
}

p#login-message {
  font-size: 14px;
  font-weight: bold;
  color: rgb(214, 0, 0);
  margin-top: 20px;
  min-height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--white-opacity-20);
  width: 70%;
  border-radius: 10px;
  box-shadow: 0 0 5px var(--shadow);
  border: 2px solid rgb(214, 0, 0);
  padding: 10px;
  opacity: 0;
}

button#login-btn {
  margin-top: 20px;
  width: 60%;
  font-size: 16px;
  padding: 15px 40px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(
    to bottom,
    var(--btn-gradient-start),
    var(--btn-gradient-end)
  );
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -3px 6px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.4);
  outline: none;
}

button#login-btn:hover {
  transform: translateY(-3px);
}

button#login-btn:active {
  background: linear-gradient(
    to top,
    var(--btn-gradient-start),
    var(--btn-gradient-end)
  );
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -3px 6px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.4);
}

.login-container-right {
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  background: var(--white-opacity-20);
  border-radius: 20px;
  box-shadow: 0 0 10px var(--shadow);
}

.login-container-right img {
  width: 70%;
}

.login-theme-btn {
  position: absolute;
  width: 50px;
  height: 50px;
  top: 10px;
  right: 10px;
  border-radius: 50%;
  border: none;
  background: var(--white-opacity-20);
  box-shadow: 0 0 10px var(--shadow);
  padding: 10px;
  cursor: pointer;
}

.login-theme-btn:hover {
  background: var(--white-opacity-30);
}

.login-theme-btn img {
  width: 100%;
}

/* ---------------LAYOUT--------------- */

.layout-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  padding: 10px;
}

nav {
  width: 300px;
  height: 100%;
  background: var(--white-opacity-20);
  border-radius: 20px;
  box-shadow: 0 0 10px var(--shadow);
  display: flex;
  flex-direction: column;
}

main {
  width: calc(100% - 300px - 10px);
  height: 100%;
  margin-left: 10px;
}

header {
  width: 100%;
  height: 70px;
  background: var(--white-opacity-20);
  border-radius: 20px;
  box-shadow: 0 0 10px var(--shadow);
  display: flex;
}

.header-left {
  width: 30%;
  height: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 20px;
  gap: 5px;
}

button#btn-menu {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 10px;
  background: var(--white-opacity-20);
  border: none;
  box-shadow: 0 0 10px var(--shadow);
  cursor: pointer;
  display: none;
}

img#btn-menu-img {
  width: 100%;
}

.header-left h2 {
  font-size: 28px;
  text-shadow: 0 0 5px var(--shadow);
  color: var(--white);
}

.header-right {
  width: 70%;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 15px;
  gap: 5px;
}

button.btn-header {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 10px;
  background: var(--white-opacity-20);
  border: none;
  box-shadow: 0 0 10px var(--shadow);
  cursor: pointer;
}

button.btn-header:hover {
  background: var(--white-opacity-30);
}

button.btn-header img {
  width: 100%;
}

.user-menu {
  position: absolute;
  top: calc(70px + 10px + 10px);
  right: 10px;
  border-radius: 20px;
  box-shadow: 0 0 10px var(--shadow);
  min-width: 150px;
  background: var(--white-opacity-30);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  font-size: 16px;

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1000;
}

.user-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.user-menu-link {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  padding: 10px 15px;
  gap: 5px;
  cursor: pointer;
  text-shadow: 0 0 5px var(--shadow);
}

.user-menu-link:first-child {
  border-radius: 20px 20px 0 0;
  background: var(--white-opacity-20);
  box-shadow: 0 0 10px var(--shadow);
}

.user-menu-link:last-child {
  border-radius: 0 0 20px 20px;
}

.user-menu-link:hover {
  background: var(--white-opacity-20);
  box-shadow: 0 0 10px var(--shadow);
}

.user-menu-link img {
  height: 22px;
}

.content {
  width: 100%;
  height: calc(100% - 70px - 10px);
  margin-top: 10px;
  background: var(--white-opacity-20);
  border-radius: 20px;
  box-shadow: 0 0 10px var(--shadow);
}

/* ---------------NAV--------------- */

a.logo {
  width: 100%;
  height: 100px;
  background: var(--white-opacity-20);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 0 10px var(--shadow);
  font-size: 60px;
  font-family: "Playball";
  color: var(--white);
  text-shadow: 0 0 10px var(--shadow);
  margin-bottom: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

a.nav-link {
  text-decoration: none;
  color: var(--white);
  font-size: 20px;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 12px 10px;
  gap: 10px;
  cursor: pointer;
}

a.nav-link:hover {
  background: var(--white-opacity-20);
  box-shadow: 0 0 10px var(--shadow);
}

a.nav-link img {
  height: 24px;
}

img#nav-places-arrow-img {
  height: 16px;
  margin-left: auto;
}

.submenu {
  width: calc(100% - 20px);
  margin: 10px 10px 0 10px;
  border-radius: 20px;
  box-shadow: 0 0 10px var(--shadow);
  background: var(--white-opacity-20);
  display: none;
}

.submenu.open {
  display: block;
}

a.nav-link-submenu {
  text-decoration: none;
  color: var(--white);
  font-size: 18px;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  gap: 10px;
}

a.nav-link-submenu:first-child {
  border-radius: 20px 20px 0 0;
}

a.nav-link-submenu:last-child {
  border-radius: 0 0 20px 20px;
}

a.nav-link-submenu:hover {
  background: var(--white-opacity-20);
}

a.nav-link-submenu img {
  height: 20px;
}

a.nav-active {
  background: var(--white-opacity-20);
  color: var(--white);
  text-shadow: 0 0 10px var(--shadow);
  box-shadow: 0 0 10px var(--shadow);
}

a#nav-help {
  margin-top: auto;
}

footer {
  width: 100%;
  height: 50px;
  background: var(--white-opacity-20);
  color: var(--white);
  text-shadow: 0 0 5px var(--shadow);
  box-shadow: 0 0 10px var(--shadow);
  margin-top: 20px;
  border-radius: 0 0 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

p#version {
  font-size: 18px;
}

p#author {
  font-size: 12px;
}

/* ---------------HOME--------------- */
