* {
  box-sizing: border-box;
}

@font-face {
  font-family: Inter;
  src: url('./assets/Inter-VariableFont.ttf');
}

html, body {
  padding: 0;
  margin: 0;
}

body {
  background-color: black;
  color: white;
  font-family: Inter;
  padding: 0;
  background-image: url('./assets/background.png');
  background-position: center top;
  background-size: 844px 360px;
  background-repeat: no-repeat;
}

header {
  height: 88px;
  background-color: black;
  background-image: url('./assets/cisco-logo-white.png');
  background-size: auto 32px;
  background-position: 32px center;
  background-repeat: no-repeat;
}

h1 {
  font-weight: 400;
  font-size: 40px;
  line-height: 1.2em;
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.download {
  width: 100%;
  border-radius: 60px;
  color: white;
  font-size: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.40);
  backdrop-filter: blur(24px);
  text-align: center;
  padding: 16px;
  margin: 20px 0;
  text-decoration: none;
}

.download:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

main {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.intro, .intro-laptop {
  opacity: 0.7;
  line-height: 1.4em;
}

.intro-laptop {
  display: none; /* hide on mobile */
}

a {
  font: inherit;
  color: inherit;
}

.wallpapers {
  position: relative;
  overflow-x: auto;
  display: flex;
  gap: 20px;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
}

.wallpapers img {
  scroll-snap-align: start;
  scroll-margin: 20px;
  position: relative;
  width: min(70vw, 400px);
  height: 500px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 20px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

img.fullscreen {
  position: fixed;
  top: -2px;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10;
  margin: 0;
  border-radius: 0;
}

.poster {
  max-height: 300px;
  object-fit: contain;
}


/** Overrides for non-mobile platform */

@media screen and (min-width: 600px) {

  .poster {
    display: none;
  }

  .intro-laptop {
    display: block;
  }

  .intro {
    display: none;
  }

  .wallpapers {
    overflow: initial;
    flex-wrap: wrap;
  }

  .wallpapers img {
    width: 130px;
    height: auto;
    pointer-events: none;
    cursor: default;
  }
}
