@font-face {
  font-family: "valorant";
  src: url("fonts/valorantfont.ttf");
}

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

html {
  background-color: black;
  scroll-behavior: smooth;
}

body {
  background-image: url("background_images/valorantlogo_image.png");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fafafa;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "valorant", sans-serif;
  margin-top: 1rem;
  margin-bottom: 0.2rem;
}

p {
  font-family: "Open Sans", sans-serif;
  line-height: 1.5rem;
}

h1 {
  font-size: 4rem;
}

.go-top {
  font-size: 3rem;
  color: #fafafa;
  position: fixed;
  bottom: 15px;
  right: 15px;
  outline: 2px solid #ff4350;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  text-align: center;
}

/* main sections */

nav {
  display: flex;
  max-width: 1100px;
  text-align: center;
  margin: auto;
  justify-content: space-between;
  outline: 2px solid #ff4350;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.8);
  margin-top: 10px;
  position: sticky;
  top: 0;
  a {
    text-decoration: none;
    color: #fafafa;
  }
}

.logo {
  font-size: 2.5rem;
  font-family: "valorant", sans-serif;
  align-self: center;
  padding: 10px;
}

nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  align-items: center;
  a {
    padding: 10px;
    transition: all 250ms ease-in;
  }
  a:hover {
    background-color: #ff4350;
    border-radius: 5px;
  }
}
/* Header======================================================== */
header {
  max-width: 1100px;
  margin: auto;
  padding: 10px;
}

.container {
  text-align: center;
  outline: 2px solid #ff4350;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.8);
  margin-top: 10px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
}

main {
  max-width: 1100px;
  padding: 0 10px;
  margin: auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(39ch, 1fr));
  gap: 1rem;
}

.pagecards {
  margin-top: 10px;
  max-width: 1100px;
  a {
    text-decoration: none;
    color: #fafafa;
  }
  .agentbg {
    background: center / cover no-repeat
        url(background_images/jett_bgimage.webp),
      rgba(0, 0, 0, 0.8) 50%;
  }
  .mapbg {
    background: center / cover no-repeat
        url(background_images/abyss_bgimage.webp),
      rgba(0, 0, 0, 0.8) 50%;
  }
  .iconicmomentbg {
    background: center / cover no-repeat
        url(background_images/iconicmoments_bgimage.png),
      rgba(0, 0, 0, 0.8) 50%;
  }
}

.pagecards .card {
  min-height: 350px;
  outline: 2px solid #ff4350;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  transition: all 250ms ease-in;
}

.card:hover {
  scale: 1.02;
}

.agents section {
  display: flex;
  flex-direction: column;
  outline: 3px solid #ff4350;
  padding: 10px;
  border-radius: 10px;
  justify-content: start;
  flex-wrap: 1;
  background-color: rgba(0, 0, 0, 0.8);
  /*background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.9) 260px,
    rgba(150, 149, 149, 0.9) 320px,
    rgba(0, 0, 0, 0.9) 100%
  );*/
  color: #fafafa;
}

.agents section img {
  height: 250px;
  align-self: center;
  margin-bottom: 60px;
}

.maps {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.maps section {
  display: flex;
  flex-direction: column;
  outline: 3px solid #ff4350;
  padding: 10px;
  border-radius: 10px;
  justify-content: start;
  flex-wrap: 1;
  background-color: rgba(0, 0, 0, 0.9);
  color: #fafafa;
  transition: all 250ms ease-in;
}

.maps section:hover {
  background-color: rgba(56, 4, 4, 0.8);
  scale: 1.02;
}

.maps a {
  text-decoration: none;
  color: #fafafa;
}

.maps section img {
  max-width: 400px;
  align-self: center;
  margin: auto;
  margin-bottom: 60px;
}

.iconicmoments {
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  section iframe {
    width: 80%;
    height: 250px;
  }
}

/* Footer =================================================== */
footer {
  max-width: 1100px;
  margin: auto;
  padding: 10px;
  .container {
    min-height: 120px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
  }
}
