/* Import the font from google api */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,100..900;1,100..900&display=swap');

/* Config for all the page to no margin nor padding and configurating the box sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Some neutral colors var declarations */
:root {
  --color-neutral-0: #0e0c0c;
  --color-neutral-10: #171717;
  --color-neutral-30: #a8a29e;
  --color-neutral-40: #f5f5f5;
}

/* The body main config, setting up the transition, the bg_color and the font */
body {
  font-family: 'Inter', sans-serif;
  background-color: #f5f7fa;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 16px;
}

/* Navbar and its "children" configuration */
.navbar {
  background-color: #ffffff;
  color: #222;
  padding: 15px 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.navbar ul li a,
.navbar ul li button {
  color: #222;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 30px;
  background: none;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
}

.navbar ul li a:hover,
.navbar ul li button:hover {
  background-color: #0077cc;
  color: white;
  transform: translateY(-2px);
}

/* Config of the footer's style and its "children" config also */

.footer-title {
  text-align: center;
  margin-bottom: 1rem;
}

.footer-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color, #0077cc);
  margin: 0;
}

.footer-title h3 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-color, #555);
  margin: 0.2rem 0 1rem;
  font-style: italic;
}

footer {
  width: 100%;
  color: var(--color-neutral-40);
}

#footer_inside {
  background-color: var(--color-neutral-10);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding: 3rem 3.5rem;
  font-family: "Inter", sans-serif;
  gap: 2rem;
}

#footer_inside h1 {
  margin-bottom: 0.75rem;
  color: var(--color-neutral-40);
}


#github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 24px;
  color: white; 
  background-color: var(--color-neutral-10);  
  text-decoration: none;
  border-radius: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#github:hover {
  background-color: white; 
  color: var(--color-neutral-10); 
  transform: scale(1.1); 
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); 
}
#blok {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-family: "Inter", sans-serif;
  list-style: none;
  text-decoration: none;
}

#blok a {
  color: var(--color-neutral-30);
  text-decoration: none;
}

#blok a:hover {
  color: #7f37c9;
}

#COPY {
  display: flex;
  justify-content: center;
  background-color: var(--color-neutral-0);
  font-size: 0.9rem;
  padding: 1.5rem;
  font-weight: 100;
  font-family: "Inter", sans-serif;
}

/* Configuration of the slide transition */

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* The global container's configuration */

.container {
  max-width: 900px;
  width: 100%;
  background: rgba(255, 255, 255, 0.185);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  line-height: 1.8;
  transition: transform 0.3s ease;
}

.container:hover {
  transform: scale(1.05);
}

.container h1 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.container p {
  font-size: 20px;
  margin-bottom: 20px;
}

.container a {
  display: inline-block;
  background-color: #0066cc;
  text-decoration: none;
  color: white;
  padding: 12px 24px;
  border-radius: 5px;
  font-size: 18px;
  transition: 0.3s ease;
}

.container a:hover {
  background-color: #004b99;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}

/* About container configuration */

.about {
  background-color: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  margin: 40px auto;
  max-width: 900px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.about .text {
  flex: 1;
}

.about .text h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #0077cc;
}

.about .text p {
  font-size: 16px;
  color: #333;
}

.about .photo {
  flex: 1;
  text-align: center;
}

.about .photo img {
  max-width: 100%;
  height: auto;
  border-radius: 100%;
}


/* The home container configuration */

#home {
  font-family: "Teko", sans-serif;
  background: url('../img/img.jpg') no-repeat center center fixed;
  background-size: cover;
  text-align: center;
  height: 100vh;

}


.parent {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 8px;
  height: 100vh;
  width: 100vw;
}

.div2 {
  grid-column: 2 / span 5;
  grid-row: 2 / span 4;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}


/* Tips container configuration */

.tips-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.tips-title {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 40px;
  font-family: 'Teko', sans-serif;
  color: #0077cc;
}

.tip {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: #eef6fc;
  border-left: 6px solid #0077cc;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  transition: transform 0.3s;
}

.tip:hover {
  transform: scale(1.02);
}

.tip-icon {
  font-size: 32px;
  line-height: 1;
}

.tip-title {
  font-size: 22px;
  color: #005fa3;
  margin-bottom: 10px;
  font-weight: bold;
}

/* DARK MODE CONFIG */

body.dark-mode .footer-title h2 {
  color: #f1f1df;
}

body.dark-mode .footer-title h3 {
  color: #ccc;
}

body.dark-mode {
  background-color: #0d0d0d;
  color: #f0f0f0;
}

body.dark-mode .navbar {
  background-color: #111;
  color: #f0f0f0;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.05);
}

body.dark-mode .navbar ul li a,
body.dark-mode .navbar ul li button {
  color: #ffffff;
}

body.dark-mode .navbar ul li a:hover,
body.dark-mode .navbar ul li button:hover {
  background-color: #333333;
}

body.dark-mode .content {
  background: linear-gradient(to bottom, #0f0f0f, #1a1a1a);
}

body.dark-mode .container {
  background-color: rgba(30, 30, 30, 0.85);
  color: #f5f5f5;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
}

body.dark-mode .tips-container {
  background-color: #1c1c1c;
  color: #e0e0e0;
}

body.dark-mode .tip {
  background-color: #2c2c2c;
  border-left-color: #00bcd4;
}

body.dark-mode .tip-title {
  color: #00bcd4;
}

body.dark-mode .tips-title,
body.dark-mode .title,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode .topic-title {
  color: #00bcd4;
}

body.dark-mode p,
body.dark-mode .topic-text {
  color: #e0e0e0;
}

body.dark-mode .container a {
  background-color: #00bcd4;
  color: #000;
}

body.dark-mode .container a:hover {
  background-color: #0097a7;
  color: #fff;
}

body.dark-mode .about {
  background-color: #1c1c1c;
  color: #f0f0f0;
}

body.dark-mode .about .text p {
  color: #ccc;
}

body.dark-mode .about .text h2 {
  color: #00bcd4;
}

/* LIGHT MODE CONFIG */

body:not(.dark-mode) footer {
  background-color: #ffffff;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  border-top: 1px solid #ddd;
  color: #222;
}

body:not(.dark-mode) #footer_inside {
  background-color: #f5f5f5;
}

body:not(.dark-mode) #COPY {
  background-color: #eaeaea;
  color: #444;
}

body:not(.dark-mode) #footer_inside h1,
body:not(.dark-mode) #footer_inside h3,
body:not(.dark-mode) #footer_inside p,
body:not(.dark-mode) #COPY {
  color: #222;
}

body:not(.dark-mode) #blok a {
  color: #666;
}
body:not(.dark-mode) #github{
  background-color: white; 
  color: var(--color-neutral-10); 
  transition: all 0.3s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); 

}
body:not(.dark-mode) #github:hover{
  
  
  color: white; 
  background-color: var(--color-neutral-10);  
  text-decoration: none;
  transform: scale(1.1); 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

}
body:not(.dark-mode) #blok a:hover {
  color: #7f37c9;
}

body:not(.dark-mode) #social-midia .g {
  color: #222;
  background-color: #e0e0e0;
  border: 1px solid #ccc;
}

/* Setting up the @media of the containers */

@media screen and (max-width: 768px) {
  .container {
    padding: 20px;
    font-size: 16px;
  }

  .container h1 {
    font-size: 36px;
  }

  .container p,
  .container a {
    font-size: 16px;
  }
}

/* Setting up the @media of the containers in general */

@media screen and (max-width: 480px) {
  html {
    font-size: 90%;
  }

  .btn {
    font-size: 0.95rem;
    padding: 10px 20px;
    width: 100%;
    text-align: center;
  }

  .container h1 {
    font-size: 32px;
  }

  .container p {
    font-size: 16px;
  }
}

/* Blok element config */

#blok ul {
  list-style: none; 
  padding-left: 0;  
}

#blok li {
  margin-bottom: 5px;
}

#blok a {
  text-decoration: none; 
  color: inherit;
}

#blok a:hover {
  text-decoration: underline; 
  
}

/* About page @media configuration */

@media (max-width: 768px) {
  .about {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .about .text,
  .about .photo {
    flex: unset;
    width: 100%;
  }

  .about .text h2 {
    font-size: 22px;
  }

  .about .text p {
    font-size: 15px;
  }

  .about .photo img {
    max-width: 80%;
    margin: 0 auto;
  }
}

/* Bounce animation */

.tip-icon {
  display: inline-block;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Corrigindo a animação emojiBounce */
@keyframes emojiBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Ajustando o .tip-icon para usar apenas uma animação */
.tip-icon {
  display: inline-block;
  font-size: 2rem;
  animation: emojiBounce 1s infinite ease-in-out;
}
