/* --------------------------------------------------------
   version: 1.0
   last modified: 2026-01
   author: Ruben Alcaraz
   email: ralcaraz@ub.edu
   website: https://www.rubenalcaraz.es
---------------------------------------------------------- */

/* ========================================================
   Base / Document
======================================================== */
html {
  scroll-behavior: smooth;
}

html,
body {
  scrollbar-width: auto;
  scrollbar-color: #000435 #f1f1f1;
  overflow-x: hidden;
}

/* Scrollbar (WebKit) */
::-webkit-scrollbar {
  width: 20px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 0;
}

/* Text selection */
::-moz-selection {
  color: #fff;
  background: #000435;
}

::selection {
  color: #fff;
  background: #000435;
}


/* ========================================================
   Accessibility / Skip link
======================================================== */
#saltarcontenido a {
  padding: 6px;
  position: absolute;
  top: -40px;
  left: 0px;
  color: white;
  border-right: 1px solid #001133;
  border-bottom: 1px solid #001133;
  border-bottom-right-radius: 0px;
  background-image: linear-gradient(180deg, #000435 0%, #000435 100%) !important;
  -webkit-transition: top 1s ease-out, background 1s linear;
  transition: top 1s ease-out, background 1s linear;
  z-index: 100;
}

#saltarcontenido a:focus {
  position: absolute;
  left: 0px;
  top: 0px;
  background-image: linear-gradient(180deg, #000435 0%, #000435 100%);
  outline: 0;
  -webkit-transition: top 0.1s ease-in, background 0.5s linear;
  transition: top 0.1s ease-in, background 0.5s linear;
}


/* ========================================================
   Typography
======================================================== */
body {
  font-family: 'Jost', Helvetica, sans-serif;
}

h1,
h2,
h3 {
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: 2rem;
}

p {
  font-weight: 400;
  font-size: 2rem;
}


/* ========================================================
   Utility font-size classes
======================================================== */
.fs16 {
  font-size: 16px;
}

.fs18 {
  font-size: 1.125rem;
}

.fs24 {
  font-size: 1.5rem;
}

.fs24i {
  font-size: 1.5rem;
  font-style: italic;
}

.fs32 {
  font-size: 2rem;
}

/* ========================================================
   Titles / Home text
======================================================== */
.title-home {
  font-size: 10vw;
}

.title-radar {
  font-size: 8vw;
}

.title-page {
  font-size: clamp(2.5rem, 6vw, 6rem);
}

.title-post {
  font-size: clamp(2.5rem, 3vw, 3rem) !important;
}

.sub-home {
  font-size: clamp(1.35rem, 5vw, 5vw);
  font-weight: 600;
}

.radar-home {
  font-size: 3.5rem;
}

.abstract {
  line-height: 40px;
}

.intro {
  margin-left: 6px;
}


/* ========================================================
   Components
======================================================== */
.boton-menu {
  font-size: 1.5rem;
}

/* Cursor animation */
.prompt::after {
  content: "_";
  display: inline-block;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Radar icon sizing */
.radar {
  width: 30px;
  height: 30px;
}

/* Featured border */
.featured {
  border: 2px solid #0a24ff;
  padding: 2px;
}


/* ========================================================
   Links
======================================================== */
a {
  color: #000435;
  overflow-wrap: anywhere;
  word-break: break-word;
}

a:hover {
  text-decoration: none;
  color: #0a24ff;
}

.home {
  text-decoration: none;
}


/* ========================================================
   Horizontal rules
======================================================== */
hr {
  opacity: 1 !important;
}

hr.custom-hr {
  border: 0 !important;
  height: 0 !important;
  border-top: 2px solid #000435 !important;
  opacity: 1 !important;
  margin: 1rem 0;
}

hr.custom-hr-radar {
  border: 0;
  border-top: 2px dashed #000435;
  margin: 1rem 0;
  opacity: 1;
}


/* ========================================================
   Lists
======================================================== */
.custom-list {
  list-style-type: none;
  padding-left: 1em;
}

.custom-list li::before {
  content: "–";
  position: relative;
  left: -0.5em;
}


/* ========================================================
   Person card / Social icons
======================================================== */
.person-card .social-icons {
  bottom: -1rem;
  right: 0.75rem;
  background-color: #000435;
  z-index: 2;
}

.person-card .social-icons a {
  font-size: 1.2rem;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.3s;
}

.person-card .social-icons a:hover {
  opacity: 0.8;
}

.person-card .card-body {
  padding-left: 0;
  padding-right: 0;
}

.social-icons svg {
  vertical-align: middle;
}

.orcid-icon svg {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: -3px;
}


/* ========================================================
   Footer
======================================================== */
footer {
  margin: 150px 0 50px;
}


/* ========================================================
   Bootstrap rewrite & new classes
======================================================== */
.btn-custom-menu {
  background-color: #fff;
  color: #000;
}

.btn-custom-menu:hover,
.btn-custom-menu:focus,
.btn-custom-menu:active {
  border: 2px solid #000;
}

.bg-custom {
  background-color: #000435;
}

.nav-link {
  color: #000435;
}

.nav-link:hover {
  color: #0a24ff;
}

.link-dark:hover {
  color: #0a24ff !important;
}

.form-control:focus,
.form-select:focus {
  border-color: #000;
  box-shadow: 0 0 0 0.25rem rgba(102, 102, 102, 1);
}


/* ========================================================
   Responsive
======================================================== */

/* >= 577px */
@media (min-width: 577px) {
  .boton-menu {
    font-size: 2rem;
  }

  .title-post {
    font-size: 6vw;
  }
}

/* >= 769px */
@media (min-width: 769px) {
  .radar {
    width: 40px;
    height: 40px;
  }

  .title-post {
    font-size: 5vw;
  }
}

/* >= 993px */
@media (min-width: 993px) {
  .radar {
    width: 70px;
    height: 70px;
  }

  .title-post {
    font-size: 4vw;
  }
}

/* <= 576px */
@media (max-width: 576px) {
  .intro {
    font-size: 1.125em;
  }

  .mfs24 {
    font-size: 1.5rem;
  }
  
  .fs24, .fs24i {
    font-size: 1.3rem;
  }
    
  main p.fs24 {
    line-height: 1.4;
  }

  .abstract {
    line-height: 32px;
    font-weight: 600;
  }

  .radar-home {
    font-size: 2rem;
  }
}