@import url('https://fonts.googleapis.com/css2?family=Catamaran:wght@900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Droid+Serif:ital@1&display=swap');

:root {
  --primary-color: #dd357c;
  --secondary-color: #517ca9;
  --background-color: #121212;
  --surface-color: #1e1e1e;
  --text-color: #e0e0e0;
  --accent-color: #f2af29;
  --success-color: #409231;
  --error-color: #ca2d43;
  --font-family-sans-serif: 'Catamaran', sans-serif;
  --font-family-serif: 'Droid Serif', serif;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background-image: url('images/background-sh-remake.webp');
  background-position: top left;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  margin: 0;
  padding-top: 50px;
  font-family: var(--font-family-sans-serif);
  color: var(--text-color);
  background-color: var(--background-color);
}

main {
  width: 100%;
}

#top-panel {
  background-color: transparent;
  padding: 5px 20px 0px 20px;
}

audio {
  max-height: 40px;
  float: right;
}

@media (max-width: 780px) {
  audio {
    float: left;
  }
}

.no-decoration {
  list-style: none;
}

#song-name {
  color: var(--primary-color);
  float: right;
  margin-right: 3%;
  margin-top: 10px;
}

h1 {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 2.5rem;
  font-weight: bold;
  letter-spacing: -1px;
  line-height: 1.2;
  text-align: center;
  color: var(--accent-color);
}

h2 {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--secondary-color);
}

.img {
  max-width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
}

.text-box {
  color: var(--text-color);
  background-color: rgba(30, 30, 30, 0.8);
  padding: 5% 10%;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.horizontal-cut-text {
  margin-left: 10px;
  font-size: 30px;
  font-weight: 800;
  font-family: var(--font-family-sans-serif);
  text-transform: uppercase;
  background: -webkit-linear-gradient(270deg, red, 40%, transparent 60%),
    -webkit-repeating-linear-gradient(90deg, transparent, transparent 2%, red 2%, red 4%);
  background-clip: text;
  color: transparent;
  text-shadow: 6px 6px rgba(0, 0, 0, 0.2);
  max-width: 100px;
  animation: glitch 5s infinite;
}

@keyframes glitch {
  0% {
    text-shadow: 6px 6px rgba(0, 0, 0, 0.2);
    transform: skewX(0);
  }
  10% {
    text-shadow: -6px -6px rgba(255, 0, 0, 0.5), 6px 6px rgba(0, 255, 255, 0.5);
    transform: skewX(5deg);
  }
  20% {
    text-shadow: 6px 6px rgba(0, 0, 0, 0.2);
    transform: skewX(0);
  }
  30% {
    text-shadow: 6px 6px rgba(255, 0, 0, 0.5), -6px -6px rgba(0, 255, 255, 0.5);
    transform: skewX(-5deg);
  }
  40% {
    text-shadow: 6px 6px rgba(0, 0, 0, 0.2);
    transform: skewX(0);
  }
  100% {
    text-shadow: 6px 6px rgba(0, 0, 0, 0.2);
    transform: skewX(0);
  }
}

.mirror {
  display: inline-block;
  transform: matrix(-1, 0, 0, 1, 0, 0);
}

.clearfix {
  float: none;
  clear: both;
}

a {
  position: relative;
  display: inline-block;
  transition: 0.3s;
  text-decoration: none;
  color: var(--text-color);
}

a:hover {
  color: var(--primary-color);
}

.loader {
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--secondary-color);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#title {
  margin-top: 20px;
  margin-bottom: 10px;
}

.fa::before {
  font-size: 30px;
  margin-right: 20px;
}

.fa {
  font-size: 14px;
}

.wrapper {
  margin: auto;
  max-width: 75rem;
  justify-content: center;
}

.center {
  display: flex;
  justify-content: center;
}

.left-align {
  text-align: left;
  margin-left: 20px;
}

hr.rounded {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(255, 255, 255, 0.75), rgba(0, 0, 0, 0));
  margin-top: 15px;
  margin-bottom: 15px;
}

footer {
  color: var(--text-color);
  margin-bottom: 20px;
  text-align: center;
}

.float-left {
  float: left;
}

.float-right {
  float: right;
}

#logout {
  float: right;
  color: var(--text-color);
}

.mr-10 {
  margin-right: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.pl-30 {
  padding-left: 30px;
}

.animate-character {
  background-image: linear-gradient(
    -225deg,
    #4f6b96 0%,
    #517ca9 29%,
    #b13786 67%,
    #9848b7 100%
  );
  background-size: auto auto;
  background-clip: border-box;
  background-size: 200% auto;
  color: #fff;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textclip 2s linear infinite;
  display: inline-block;
}

@keyframes textclip {
  to {
    background-position: 200% center;
  }
}

.text-align-center {
  text-align: center;
}

.hidden {
  visibility: hidden;
}

.title {
  margin-bottom: 2em;
}

/* Navbar styles */
#menu {
  background-color: rgba(30, 30, 30, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
}

#menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

#menu li {
  margin: 0;
}

#menu a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 20px;
  display: block;
  position: relative;
  transition: color 0.3s ease, background-color 0.3s ease;
}

#menu a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

#menu a:hover {
  color: #ffffff;
  background-color: var(--surface-color);
}

#menu a:hover::after {
  width: 50%;
}

#menu li.active a {
    color: #ffffff;
    background-color: var(--primary-color);
}

#menu li.active a::after {
    width: 50%;
}

/* Projects styles */
#repo-box h3 {
	color: var(--text-color);
	margin-top: 5px;
	font-size: 1.2rem;
	font-weight: bold;
}

#repo-box h2 {
	margin-bottom: 20px;
}

#repo-box {
	padding-bottom: 10px;
}

.repo-box-content {
	padding: 2%;
	margin-bottom: 2%;
	border-color: var(--primary-color);
	border-top-style: dashed;
}

.pill {
	font-size: 12px;
	padding: 0.5em 1em;
	margin: 0.25em;
	border-radius: 1em;
	background-color: var(--secondary-color);
	text-decoration: none;
  display: inline-block;
}

.pill:hover {
	background-color: var(--primary-color);	
	transition-duration: 0.3s;
}

.icon {
	vertical-align: bottom;
	margin-right: 1em;
}

.search-container {
  padding: 10px;
}

.search-input {
  width: 100%;
  margin-bottom: 15px;
  border-radius: 1em;
  background-color: var(--surface-color);
  color: var(--text-color);
  border: 1px solid var(--surface-color);
  height: 40px;
  max-width: 400px;
  padding: 10px;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--primary-color);
  outline: none;
}

/* Hobbies styles */
.hobbie-title {
  color: var(--accent-color);
	font-family: var(--font-family-serif);
  font-size: 1.2rem;
  font-style: italic;
}

.section-title {
  margin-bottom: 30px;
}

input[type=text],
button.submit {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  display: inline-block;
  border-radius: 5px;
  border: 1px solid var(--surface-color);
  box-sizing: border-box;
  background-color: var(--surface-color);
  color: var(--text-color);
}

button.submit {
  background: var(--primary-color);
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button.submit:hover {
  background-color: var(--secondary-color);
}

label {
  margin-top: 10px;
  display: block;
}

button.plus {
  position: relative;
  width: 50px;
  height: 50px;
  background: var(--success-color);
  cursor: pointer;
  border: 0;
  margin-right: 3px;
  float: right;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.cancel-button {
  background: var(--secondary-color);
}

.plus.small {
  width: 30px;
  height: 30px;
  display: block;
  margin-left: 90%;
}

button.plus:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 4px;
  width: 50%;
  background: white;
}

button.plus:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  height: 50%;
  width: 4px;
}

button.less:before {
  width: 0;
}

button.less:after {
  background: white;
}

button.less {
  background: var(--error-color);
}

button.plus:hover {
  background-color: #095776;
}

button.plus:disabled {
  background-color: gray;
}

#games iframe {
  width: 100%;
  border: 0;
  border-radius: 15px;
}

.hobbie-container {
  display: inline-block;
  margin-right: 10px;
}

/* Roms styles */
#roms-list ul {
  padding-top: 5px;
  padding-bottom: 5px;
  list-style: none;
}

.console {
	font-size: 1.5rem;
  color: var(--accent-color);
}

.console li {
	font-size: 1rem;
  color: var(--text-color);
  padding-left: 20px;
}

li.plus::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--success-color);
}

/* Contact styles */
.twitter-color {
  color: #1da1f2;
}

.instagram-color {
  color: #c13584;
}

.whatsapp-color {
  color: #25d366;
}

.email-color {
  color: #948888;
}

.icon {
  vertical-align: bottom;
  margin-right: 0.5em;
  transition: transform 0.3s ease;
}

.icon:hover {
  transform: scale(1.2);
}

/* Index styles */
img.scaling {
  display: block;
  padding-top: 2%;
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 50%;
}

.job-name {
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.balloon {
  max-width: 600px;
  padding: 50px;
  background: var(--surface-color);
  border-radius: 50px;
  position: relative;
  font-size: 1.5rem;
  text-align: center;
  color: var(--text-color);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.balloon .tip {
  width: 0;
  height: 0;
  position: absolute;
  right: 200px;
  bottom: -20px;
  border: solid 10px;
  border-color: var(--surface-color) transparent transparent transparent;
}

/* Music player styles */
#audio-control {
  width: 100%;
  margin-top: 20px;
  background-color: var(--surface-color);
  border-radius: 5px;
}

#audio-control::-webkit-media-controls-panel {
  background-color: var(--surface-color);
}

#audio-control::-webkit-media-controls-play-button,
#audio-control::-webkit-media-controls-pause-button {
  color: var(--text-color);
}

#audio-control::-webkit-media-controls-volume-slider {
  background-color: var(--background-color);
  border-radius: 3px;
}

#audio-control::-webkit-media-controls-current-time-display,
#audio-control::-webkit-media-controls-time-remaining-display {
  color: var(--text-color);
}

#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
}

#scrollToTopBtn:hover {
  background-color: var(--secondary-color);
}
