/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Silkscreen&family=Segoe+UI:wght@400;700&display=swap');

:root {
  --primary-color: #00aaff; /* Aqua/Blue */
  --secondary-color: #ffffff; /* White */
  --bg-color: #0c0c0c; /* Very Dark Grey/Black */
  --text-color: #ffffff;
  --accent-color: #0055ff; /* Deep Blue */
  --minecraft-font: 'Press Start 2P', cursive;
  --pixel-font-readable: 'Silkscreen', cursive;
  --main-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --panel-bg: rgba(20, 20, 20, 0.9);
  --border-pixel: 4px solid var(--primary-color);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--main-font);
  background-color: var(--bg-color);
  color: var(--text-color);
  scroll-behavior: smooth;
  image-rendering: pixelated;
}

h1, h2, h3, .logo span {
  font-family: 'Press Start 2P', cursive;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: rgba(0, 0, 0, 0.95);
  position: fixed;
  width: 100%;
  left: 0;
  z-index: 1000;
  border-bottom: var(--border-pixel);
  box-shadow: 0 4px 0 rgba(0, 170, 255, 0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--secondary-color);
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.logo {
  font-size: 1.2rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-logo {
  height: 45px;
  width: auto;
  filter: drop-shadow(0 0 5px var(--primary-color));
}

.nav-links a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: 0.3s;
  font-size: 0.75rem;
  font-family: 'Press Start 2P', cursive;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--primary-color);
  text-shadow: 2px 2px 0 #000;
}

.btn-login, .btn-register, .filter-buttons button, .social-link, .contact-form button {
  padding: 0.8rem 1.5rem;
  border-radius: 0;
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.7rem;
  border: 4px solid #000;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  position: relative;
  box-shadow: inset -4px -4px 0px 0px rgba(0,0,0,0.5), 4px 4px 0px 0px rgba(0,0,0,0.5);
}

.btn-login, .filter-buttons button, .social-link {
  color: var(--secondary-color);
  background: #333;
}

.btn-register, .contact-form button, .filter-buttons button.active {
  background-color: var(--primary-color);
  color: #000;
  box-shadow: inset -4px -4px 0px 0px rgba(0,0,0,0.3), 4px 4px 0px 0px rgba(0,0,0,0.5);
}

.btn-login:hover, .social-link:hover, .filter-buttons button:hover {
  background: #444;
  transform: translate(-2px, -2px);
  box-shadow: inset -4px -4px 0px 0px rgba(0,0,0,0.5), 6px 6px 0px 0px var(--primary-color);
}

.btn-register:hover, .contact-form button:hover, .filter-buttons button.active:hover {
  background-color: var(--secondary-color);
  transform: translate(-2px, -2px);
  box-shadow: inset -4px -4px 0px 0px rgba(0,0,0,0.2), 6px 6px 0px 0px var(--primary-color);
}

.btn-login:active, .btn-register:active, .filter-buttons button:active, .social-link:active, .contact-form button:active {
  transform: translate(2px, 2px);
  box-shadow: inset 4px 4px 0px 0px rgba(0,0,0,0.5), 0px 0px 0px 0px rgba(0,0,0,0.5);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-align: center;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  background: rgba(0, 0, 0, 0.7);
  padding: 3rem;
  border: var(--border-pixel);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5);
  max-width: 80%;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-shadow: 4px 4px 0 #000;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--secondary-color);
}

/* Missions & Containers */
.container h2 {
  font-size: 2rem;
  margin-bottom: 3rem;
  text-shadow: 3px 3px 0 #000;
}

#mission {
  background: var(--panel-bg);
  border: var(--border-pixel);
  margin: 2rem 10%;
  padding: 3rem;
  text-align: center;
}

/* Projects Grid */
.project-card {
  background: #1a1a1a;
  border: 4px solid #333;
  transition: 0.3s;
  border-radius: 0;
}

.project-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 170, 255, 0.2);
}

.project-info h3 {
  font-size: 1rem;
  color: var(--primary-color);
}


.contact-form, .modal-content {
  background: var(--panel-bg);
  border: var(--border-pixel);
  padding: 2.5rem;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.5);
  border-radius: 0;
}

.contact-form input, .contact-form textarea, .contact-form button {
  border-radius: 0;
}

.contact-form input, .contact-form textarea {
  padding: 1rem;
  background: #111;
  border: 4px solid #333;
  color: white;
  border-radius: 0;
  font-family: var(--main-font);
  transition: 0.2s;
}

.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  background: #1a1a1a;
  box-shadow: 0 0 10px rgba(0, 170, 255, 0.2);
}


/* Lang flags */
.lang-flag {
  cursor: pointer;
  transition: 0.3s;
  border: 2px solid transparent;
  padding: 2px;
}

.lang-flag.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
}

.lang-flag:hover {
  transform: scale(1.1);
}


.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  padding: 2rem 0;
}

.project-card {
  background: #1a1a1a;
  border: 4px solid #333;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 10px 10px 0 rgba(0, 170, 255, 0.2);
}

.project-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
  border-bottom: 4px solid #333;
}

.project-card:hover .project-image-wrapper {
  border-bottom-color: var(--primary-color);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-category-badge {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.55rem;
  color: var(--primary-color);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  background: rgba(0, 170, 255, 0.1);
  padding: 4px 8px;
  width: fit-content;
  border: 1px solid var(--primary-color);
}

.project-info h3 {
  font-size: 1rem;
  margin: 0.5rem 0;
  color: var(--secondary-color);
}

.project-description {
  font-size: 0.85rem;
  color: #aaa;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tag {
  font-size: 0.7rem;
  background: #333;
  color: #eee;
  padding: 2px 8px;
  border: 1px solid #444;
}

@media (max-width: 768px) {
  .project-category-badge, .project-info h3, .project-tag {
    font-family: var(--main-font) !important;
  }
  .project-description {
    color: #fff !important;
  }
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


.contact-form button {
  width: 100%;
  margin-top: 1rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #111;
  margin: auto;
  padding: 2rem;
  border: var(--border-pixel);
  width: 90%;
  max-width: 500px;
  border-radius: 0;
  box-shadow: 15px 15px 0 rgba(0, 0, 0, 0.7);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
}

.profile-bio-text {
  color: var(--text-color);
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}

.profile-social-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.social-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.social-item a {
  color: var(--accent-color);
  text-decoration: none;
}

.social-item a:hover {
  text-decoration: underline;
}

.close-modal {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--primary-color);
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#login-form input {
  padding: 0.8rem;
  background: #222;
  border: 1px solid #444;
  color: white;
}

.auth-buttons-nav {
  display: flex;
  gap: 1rem;
}

.lang-selector select {
  background: #111;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 0.3rem;
  border-radius: 5px;
  cursor: pointer;
}

.lang-selector {
  display: flex;
  align-items: center;
}

.lang-flags {
  display: flex;
  gap: 10px;
}

.lang-flag {
  width: 25px;
  height: auto;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: transform 0.2s, border-color 0.2s;
}

.lang-flag:hover {
  transform: scale(1.1);
}

.lang-flag.active {
  border-color: var(--primary-color);
}

/* Auth & Errors */
.error-message {
  background: rgba(255, 0, 0, 0.2);
  color: #ff4444;
  border: 2px solid #ff4444;
  padding: 1rem;
  margin-bottom: 1rem;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.6rem;
  display: none;
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.input-error {
  border-color: #ff4444 !important;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.3) !important;
}

/* Enhanced Profile Page */
.profile-card {
  background: var(--panel-bg);
  border: var(--border-pixel);
  padding: 2rem;
  box-shadow: 15px 15px 0 rgba(0, 0, 0, 0.7);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profile-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.profile-sidebar {
  flex: 0 0 150px;
  text-align: center;
}

.profile-main {
  flex: 1;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  background: #222;
  border: 4px solid var(--primary-color);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
  overflow: hidden; /* Para que la imagen no se salga */
}

#user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-tag {
  background: var(--primary-color);
  color: #000;
  padding: 0.4rem 0.8rem;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.5rem;
  display: inline-block;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.5);
}

.profile-header {
  border-bottom: 2px solid #333;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.profile-header h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.profile-joined {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.55rem;
  color: #888;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-box {
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem;
  border: 2px solid #333;
  position: relative;
}

.info-label {
  display: block;
  font-size: 0.6rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-family: 'Press Start 2P', cursive;
}

.info-value {
  font-size: 0.8rem;
  color: #fff;
  word-break: break-all;
}

.status-online {
  color: #00ff00;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.profile-section {
  margin-top: 2rem;
}

.profile-section h3 {
  font-size: 0.8rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
  border-left: 4px solid var(--primary-color);
  padding-left: 10px;
}

.activity-list {
  background: rgba(0,0,0,0.2);
  border: 2px solid #222;
  padding: 1rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: #ccc;
}

.activity-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-color);
}

.profile-actions-bar {
  display: flex;
  gap: 1rem;
  border-top: 2px solid #333;
  padding-top: 1.5rem;
}

.profile-actions-bar a, .profile-actions-bar button {
  flex: 1;
}

@media (max-width: 600px) {
  .profile-layout {
    flex-direction: column;
    align-items: center;
  }
  .profile-sidebar {
    flex: none;
    margin-bottom: 1rem;
  }
}

/* Modal for full screen image */
.modal-content-image {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 1000px;
  position: relative;
  background-color: transparent;
  padding: 0;
  border: none;
  animation-name: zoom;
  animation-duration: 0.6s;
}

#full-project-image {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  border: var(--border-pixel);
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.5);
}

#image-modal-caption {
  margin: 10px auto;
  display: block;
  width: 100%;
  text-align: center;
  color: #ccc;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.8rem;
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

/* Reusing modal styles for general purposes */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
}

/* Category Hub Styles */
.category-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 3rem 0;
}

.category-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--secondary-color);
  font-family: 'Press Start 2P', cursive;
  font-size: 1.2rem;
  transition: all 0.3s;
  padding: 1rem 2rem;
  border: 4px solid transparent;
  width: fit-content;
}

.category-item .bullet {
  width: 12px;
  height: 12px;
  background-color: var(--primary-color);
  display: inline-block;
  box-shadow: 2px 2px 0 #000;
}

.category-item:hover {
  color: var(--primary-color);
  transform: translateX(10px);
  border: var(--border-pixel);
  background: rgba(0, 170, 255, 0.1);
}

.category-item:hover .bullet {
  background-color: var(--secondary-color);
  transform: rotate(45deg);
}

/* Pixel Box */
.pixel-box {
  background: rgba(0, 0, 0, 0.4);
  border: var(--border-pixel);
  padding: 3rem 2rem;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.5);
  position: relative;
}

/* Services & Team */
.services-grid, .team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card, .team-member {
  background: rgba(255, 255, 255, 0.03);
  padding: 2.5rem 1.5rem;
  text-align: center;
  border: 4px solid #222;
  transition: all 0.3s;
  position: relative;
}

.service-card:hover, .team-member:hover {
  border-color: var(--primary-color);
  background: rgba(0, 170, 255, 0.05);
  transform: translateY(-5px);
  box-shadow: 10px 10px 0 rgba(0, 170, 255, 0.1);
}

.service-icon, .member-avatar {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.service-card h3, .team-member h3 {
  font-size: 0.8rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.service-card p, .team-member p {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.6;
}

.team-member .member-avatar {
  background: #111;
  width: 100px;
  height: 100px;
  line-height: 100px;
  margin: 0 auto 1.5rem;
  border: 4px solid #333;
}

.team-member:hover .member-avatar {
  border-color: var(--primary-color);
}

/* Newsletter section adjustment */
#newsletter h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

#newsletter p {
  font-size: 0.9rem;
  color: #ccc;
}

@media (max-width: 768px) {
  .service-card h3, .team-member h3, #newsletter h2 {
    font-family: var(--main-font) !important;
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid #333;
  color: #666;
}

/* Estilos adicionales para Discord Verification */
#discord-link-section {
    border: 1px dashed rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.02);
}

#discord-link-section h3 {
    margin-top: 0;
    color: #5865F2; /* Discord Color */
}

#discord-id-input, #discord-code-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.8rem;
    border-radius: 4px;
    outline: none;
}

#discord-id-input:focus, #discord-code-input:focus {
    border-color: #5865F2;
}

#send-discord-code-btn, #verify-discord-btn {
    background: #5865F2;
}

#send-discord-code-btn:hover, #verify-discord-btn:hover {
    background: #4752C4;
}

.discord-error {
    background: rgba(237, 66, 69, 0.1);
    color: #ed4245;
    border: 1px solid #ed4245;
    padding: 0.8rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.3s ease;
}

.discord-error::before {
    content: '⚠️';
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.social-item {
    margin-bottom: 0.5rem;
}

.auth-buttons-nav-mobile {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .btn-login, .btn-register, .filter-buttons button, .social-link, .contact-form button {
    font-size: 0.9rem;
    padding: 1rem 2rem;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    left: -100%;
    top: 75px;
    gap: 0;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.95);
    width: 100%;
    height: calc(100vh - 75px);
    text-align: center;
    transition: 0.3s;
    border-bottom: var(--border-pixel);
    padding: 2rem 0;
    overflow-y: auto;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 1.5rem 0;
    width: 100%;
  }

  .nav-links a {
    font-size: 1.1rem;
    letter-spacing: normal;
    display: block;
    width: 100%;
    padding: 15px 0;
  }

  .auth-buttons-nav-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 2rem;
    width: 100%;
  }

  .auth-buttons-nav {
    display: none;
  }

  h1, h2, h3, .logo span {
    font-family: var(--main-font) !important;
    font-weight: bold;
    letter-spacing: normal !important;
    text-transform: none !important;
  }

  .nav-links a,
  .btn-login,
  .btn-register,
  .rank-tag,
  .social-link,
  .filter-buttons button,
  .contact-form button {
    font-family: var(--main-font) !important;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: normal !important;
  }

  h1 {
    font-size: 1.8rem !important;
  }
  h2 {
    font-size: 1.5rem !important;
  }
  h3 {
    font-size: 1.2rem !important;
  }
  .logo span {
    font-size: 1.1rem !important;
  }

  p {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    color: #ffffff !important;
  }

  .nav-links a {
    font-size: 1.1rem !important;
    letter-spacing: normal !important;
    padding: 12px 0 !important;
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

