@import url('https://fonts.googleapis.com/css2?family=Expletus+Sans&family=Hind&family=Inter&family=Newsreader:ital@0;1&display=swap');

:root {
  --black: #1c1c1c;
  --white: #f2f2f2;
  --dkblue: #0d314b;
  --plum: #4b0d49;
  --hotmag: #ff17e4;
  --magenta: #e310cb;
  --aqua: #86fbfb;
  --white: #f7f8fa;
  --font-size: 1rem;

  --content-width: 640px;
  --mobile-content-width: 500px;
  --header: "Inter",-apple-system,"BlinkMacSystemFont","Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
  --text: "Inter",-apple-system,"BlinkMacSystemFont","Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
  --gradient-start: rgb(148, 208, 255);
  --gradient-end: rgb(255, 106, 213);
  --fg: #f2f2f2;
  --font-display: "Inter",-apple-system,"BlinkMacSystemFont","Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
  --font-fallback: -apple-system,"BlinkMacSystemFont","Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
  --font-mono: "Menlo",monospace;
  --font-sans: "Sohne",-apple-system,"BlinkMacSystemFont","Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
  --font-serif: "Newsreader","Signifier","Times",serif;
}

html {
    box-sizing: border-box;
}
*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
  padding: 0;
  margin: 0;
  font-family: var(--text);
  background-color: var(--black);
  color: var(--white);
  font-size: var(--font-size);
}

footer, section {
  margin: 0 auto;
  padding: 2.5rem;
  width: var(--content-width);
}

h1,h2,h3 {
  margin: 0;
  font-family: var(--header);
}


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

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

#header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 4rem;
  gap: 5px;
  max-width: 1200px;
  margin: 0 auto;
}


#flashing-cursor {
  background-color: var(--white);
  height: 1rem;
  width: 10px;
  border-radius: 1px;
  -webkit-animation: flashing-cursor 1s infinite;
  animation:flashing-cursor 1s infinite
}

/* adding keyframes */
@-webkit-keyframes flashing-cursor {
  0% {
      opacity:0
  }

  50% {
      opacity:1
  }

  to {
      opacity:0
  }
}


@keyframes flashing-cursor {
  0% {
      opacity:0
  }

  50% {
      opacity:1
  }

  to {
      opacity:0
  }
}


#header .name {
  font-family: var(--text);
}

.name span {
  font-family: var(--header);
  font-size: 4rem;
  display: block;
}

#header h2 {
  font-size: 4rem;
  font-weight: normal;
}

#intro {
  font-family: var(--font-display);
  font-size: 1rem;
}

#hello-container {
  display: flex;
  align-items: center;
  gap: 5px;
}

#hello-container span {
  font-size: 2rem;
}

#fancy-hello {
  font-style: italic;
  font-size: 2rem;
  font-family: var(--font-serif);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: -webkit-linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
}

#fancy-name {
  font-style: italic;
  font-family: var(--font-serif);
}

section h2 {
  font-size: 2rem;
  font-style: italic;
  font-family: var(--font-serif);
}

nav {
  font-size: 80%;
  padding: 3rem 1rem;
  color: var(--white);
}

nav h1 a {
  font-family: var(--header);
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

nav a {
  color: var(--white);
  text-decoration: none;
  display: block;
}

nav a:hover,
nav [class*='fa-']:hover {
  color: var(--magenta);
}

nav li:first-child {
  flex-basis: 100%;
  text-align: center;
}

/* attribute selector */
nav [class*="fa-"] {
  font-size: 150%;
  color: var(--aqua);
}

nav h1 [class*='fa-'] {
  font-size: 100%;
}


/* time for button */
.button {
  padding: 0.25rem 0.5rem;
  background-color: var(--magenta);
  border-radius: 5px;
}

.button:hover {
  color: var(--white);
  background-color: var(--hotmag);
}

footer {
  text-align: center;
}


@media (max-width: 900px) {
  nav {
    margin: 0 auto;
    width: var(--mobile-content-width);
  }

  section {
    margin: 0 auto;
    width: var(--mobile-content-width);
  }

  nav li:first-child {
    flex-basis: auto;
    text-align: left;
    margin-right: auto;
  }
}
