/* Global */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300;400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  font-family: 'Roboto Slab', sans-serif;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: #f1f1f1;
}

a {
  text-decoration: none;
  color: #ffffff;
  font-size: 1.4rem;
}

h1 {
  font-size: 2rem;
  padding: 1rem;
}

h3 {
  font-size: 1.4rem;
  padding: 0.5rem;
}

/* Utilites */

.flex-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

/* Sections */

nav {
  height: 4rem;
  background-color: rgb(0, 0, 0);
  gap: 1.5rem;
}

nav input[type="submit"] {
  border-radius: 1rem;
  background-color: transparent;
  border: none;
  padding: 0.2rem 0.5rem;
  font-size: 1.4rem;
  color: #f1f1f1;
}

nav input[type="submit"]:hover {
  cursor: pointer;
  color: #2697c0;
}

nav a {
  padding: 0.2rem 0.5rem;
  border-radius: 1rem;
  width: 100px;
  text-align: center;   
}

nav a:hover {
  color: #2697c0;
}

main {
  display: grid;
  place-items: center;
  height: calc(100vh - 4rem);
  background: linear-gradient(-45deg, #47b2d3, #134d7c, #2697c0, #268f5a);
	background-size: 500% 500%;
	animation: gradient 25s ease-in-out infinite;
}

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

.content {
  padding: 3rem 6rem 1.5rem;
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0.4rem 0.4rem 0.1rem 0.1rem rgba(0, 0, 0, 0.555);
  border-radius: 3rem;
}

.content h4 {
  margin-bottom: 1rem;
}

.links {
  gap: 1rem;
  padding: 1rem;
}

.codewars {
  width: 60px;
  transition: transform 0.2s ease-in-out;
}

.codewars img{
  width: 100%;
}

.codewars a {
  padding: 0.25rem;
}

.codewars:hover {
  transform: scale(1.1);
}

.github {
  width: 60px;
  transition: transform 0.2s ease-in-out;
}

.github:hover {
  transform: scale(1.1);
}

.linkedin {
  width: 60px;
  transition: transform 0.2s ease-in-out;
}

.linkedin:hover {
  transform: scale(1.1);
}

@media screen and (max-width: 1000px) {
  .content {
    padding: 1rem 3rem;
    text-align: center;
  }
}

@media screen and (max-width: 500px) {
  nav a, nav input[type="submit"]{
    font-size: 1.2rem;
  }
}
