/* ==================== RESET ==================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: var(--text-color, #fff);
  font-family: 'inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* ==================== VARIÁVEIS ==================== */
:root {
  --bg-color: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(121, 9, 98, 1) 35%, rgba(0, 212, 255, 1) 100%);
  --text-color: #fff;
  --link-bg: hsl(0, 0%, 20%);
  --link-hover-bg: rgba(2, 0, 36, 1);
  --highlight-color: rgb(197, 248, 42);
  --switch-bg-url: url(./assets/svg/sunny.svg);
  /* ícone para o modo claro */
}

.light {
  --bg-color: linear-gradient(90deg, rgb(194, 173, 212) 0%, #a655e7 35%, #7aa3ce 100%);
  --text-color: #000000;
  --link-bg: #9752f1;
  --link-hover-bg: #ccc;
  --highlight-color: #fafafa;
  --switch-bg-url: url(./assets/svg/moon.svg);
  /* ícone para o modo escuro */
}

/* ==================== SWITCH ==================== */
#switch {
  cursor: pointer;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
  margin-top: -1rem;
}

#switch:hover {
  transform: scale(1.3);
}

#switch button {
  all: unset;
  width: 32px;
  height: 32px;
  background-image: var(--switch-bg-url);
  background-size: cover;
  background-repeat: no-repeat;
  cursor: pointer;
  display: block;
  margin: 1.5rem auto;
}

span {
  font-size: 0.6rem;

}

.light #switch {
  background-image: var(--switch-bg-url);
}

/* ==================== LAYOUT ==================== */
body {
  background: var(--bg-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  justify-content: center;
}

div.container {
  border-radius: 1rem;
  margin: auto 2rem;
  max-width: 100%;
  width: 17rem;
  padding: 1rem;
  height: 32rem;
  text-align: center;
  flex-direction: column;
}

img {
  border-radius: 50%;
  width: 6rem;
  text-align: center;
}

/* ==================== TIPOGRAFIA ==================== */
h1 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.light h1 {
  color: #ccc;
}

h5 {
  font-size: 1rem;
  margin: 0.2rem;
  color: rgb(197, 248, 42);
}

.light h5 {
  color: #333;
}

p {
  font-size: 0.90rem;
  margin: 0,4rem 0;
}

/* ==================== LINKS ==================== */
section.links {
  margin: 1.18rem 0 0.4rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

section.links a {
  font-weight: 500;
  padding: 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  background-color: var(--link-bg);
  width: 100%;
  max-width: 17rem;
  color: var(--text-color);
  margin: 0.3rem;
}

.links a:hover {
  color: var(--highlight-color);
  transition-duration: .3s;
  width: 100%;
  scale: 1.05;
}

/* ==================== LOGO ==================== */
.logo_link {
  display: flex;
  justify-content: center;
  /* padding: 2rem;
  margin-bottom: 3rem; */
  font-size: 1.3rem;
}

.logo_link a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.7rem;
  color: var(--text-color);
}

.logo_link a:hover {
  transform: scale(1.7);
}

/* ==================== FOOTER ==================== */
footer {
  color: var(--text-color);
  text-align: center;
 
  margin: 1rem; 
  font-size: 0.8rem;
}

/* ==================== RESPONSIVE ==================== */
/* Responsivo para tablets e desktops */
@media (max-width: 360px) {
  div.container {
    /* width: 22rem; */
    height: auto;
  }

  section.links a {
    width: 100%;
    padding: 1rem 0;
    font-size: 1rem;
  }
}

@media (min-width: 700px) {
  div.container {
    width: 25rem;
  }

  section.links a {
    font-size: 1rem;
  }

  section.logo_link {
    margin-top: 2.5rem;
  }

  footer {
    margin-top: 2rem;
  }
}
