@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');


/*----------------------------------------------------DESKTOP-------------------------------------------------------------------------*/

/* Variables */

:root {
  --font-familyB: "Raleway", sans-serif;
  --bg-color: #fcfcfc;
  --bg-color-2: #f7f7f7;
  --primary-color:black;
  --secondary-color:#00B8D4;
  --primary-shadow: #8b8eaf;
  --secondary-shadow: #a17a69;
  --bottom-margin: 0.5rem;
  --bottom-margin-2: 1rem;
  --bottom-margin-3: 20px;
  --bottom-margin-4: 50px;
  --bottom-margin-5: 90px;
  --line-height: 1.7rem;
  --transition: 0.3s;
}

html {
  scroll-behavior: smooth;
}

/* CSS Resets */

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

ul {
  list-style-type:none;
}


a {
  text-decoration:none;
  color: var(--primary-color);
}

a:hover {
  text-decoration: none;
  color: var(--secondary-color);
}

/*Fonts class-----------------------------------*/

@font-face{
  font-family: 'Pirate';
  src: url('../fonts/PIRATE-VIKING.otf') format('opentype');
}

.main-header {
  font-family: 'Pirate', sans-serif;
  font-size: 40px;
  color: white;
  text-shadow: 2px 2px 2px #000000, -1px -1px 2px #000000, 1px -1px 2px #000000, -1px 1px 2px #000000;
}


.raleway-section {
  font-weight: 600;
  margin-bottom: var(--bottom-margin-2);
}


.raleway-paragraph {
  font-weight: 400;
  line-height: var(--line-height);
  padding: 0.3rem 0;
  margin: 3rem;
}


.raleway-title{
  font-weight: 500;
}

/*----------------------------------------*/


body {
  font-family: "Raleway", sans-serif;
  font-style: normal;
  font-size:1.12rem;
  /* max-width: 68.75rem; */
  margin: auto;
}

h2 {
  margin-bottom:var(--bottom-margin-3);
}

/*NAV SECTION*/

header {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 9999;
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: var(--bottom-margin-5);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3.5rem;
  background-color: var(--bg-color);
}

nav a {
  color: var(--primary-color);
  transition: var(--transition);
}

nav ul {
  display: flex;
  gap: 1.9rem;
}

nav ul li {
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.burger-menu {
  color: var(--primary-color);
  font-size: 2rem;
  border: 0;
  background-color: transparent;
  cursor: pointer;
  display: none;
}


/* LANGUAGES SECTION */

.flags {

  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-color);
  transition: top 0.3s ease;
}

.flags_item {
  margin: 0.8rem;
  width: 2rem;
}

.flags_item img {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.flags_item img:hover {
  transform: scale(1.1);
}

/*HERO SECTION*/

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6rem;
  max-width: 68.75rem;
  margin: auto;
  /* margin-bottom: var(--bottom-margin-2); */
}

.hero img {
  width: 190px;
  animation: myanimation 1s linear 2s normal none;
}


@keyframes myanimation {
  0% {
    transform:rotate3d(0, 1, 0, 0deg);
  }
  25% {
    transform:rotate3d(0, 1, 0, 90deg);
  }
  50% {
    transform:rotate3d(0, 1, 0, 180deg);
  }
  75% {
    transform:rotate3d(0, 1, 0, 270deg);
  }
  100% {
    transform:rotate3d(0, 1, 0, 360deg);
  }
}

.bio {
  width: 35rem;
  padding: 0.625rem;
  border-radius: 6px;
  box-shadow: 0px 2px 15px 2px var(--primary-shadow);
  border: solid 1px black;
}

.bio .raleway-paragraph{
  margin: 1rem;
}

/*MORE ABOUT SECTION*/

.more-about {
  background-color: var(--bg-color-2);
  padding: 1rem 6rem;
  /* margin: 50px 0; */
  text-align: center;
  /* margin-bottom: var(--bottom-margin-2); - pAnulado para que no se vea separacion de colores */
}

.more-about a{
  text-decoration: underline;
  transition: var(--transition);
}

.more-about .raleway-section {
  margin-top: var(--bottom-margin-4);
}

/*SKILLS SECTION*/

.skills {
  /* max-width: 68.75rem; */
  margin: auto;
  text-align: center;
  background-color: var(--bg-color-2);
  margin-bottom: var(--bottom-margin-2);
}

.skills-wrapper {
  margin-top: 3rem;
}

.skills-wrapper img {
  padding: 1.25rem;
}

.icon {
  width: 11.875rem;
  height: 11.25rem;
}

.icon-card {
  background-color: #fff;
  border-radius: 11px;
  box-shadow: 0 3px 10px var(--secondary-shadow);
  padding: 1.25rem;
  margin: 0.75rem;
}

/*PROJECTS SECTION*/

.projects {
  background-color: var(--bg-color);
  padding: 2rem;
  margin: 0rem 4rem;
  text-align: center;
}

.projects-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-container {
  text-align: center;
  width: 21.875rem;
  padding: 1rem;
}

.project-card {
  background-color: #fff;
  border-radius: 11px;
  box-shadow: 0 3px 10px var(--primary-shadow);
  margin: 1.75rem;
  min-height: 12.5rem;
}

.project-pic {
  width: 100%;
  height: 100%;
  margin-bottom: 5px;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: var(--bottom-margin-3);
}

/* GAMES SECTION*/

.games-pic {
  width: 100%;
  height: 100%;
  margin-bottom: 5px;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: var(--bottom-margin-3);
}

.projects a {
  text-decoration: underline;
  transition: var(--transition);
}

/*SOCIAL MEDIA ICONS*/

.socials {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.socials a{
  margin: 0px 10px;
}

.socicon {
  width: 2rem;
  height: 2rem;
}

/*SCROLL UP BUTTON*/

.scroll-up {
  position: fixed;
  right: 0.5%;
  bottom: 15%;
  cursor: pointer;
}

.up-arrow {
  width: 3rem;
  height: 3rem;
}

/*FOOTER SECTION*/

footer {
  background-color: var(--bg-color);
  padding: 1.25rem;
  text-align: center;
  margin: 2rem 0 0;
}

footer img{
  margin-bottom: var(--bottom-margin-3);
}

footer p {
  font-size: 1rem;
}
