@view-transition {
  navigation: auto;
}

:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light;
  color: #213547;
  background-color: #ffffff;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #747bff;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  font-size: 2em;
  line-height: 1.1;
  cursor: pointer;

  a {
    all: inherit;
    margin: 0;

    &:hover {
      color: inherit;
    }
  }
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #f9f9f9;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

.card {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 10px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, .25);
  display: grid;
  place-items: center;
  font-size: 3em;
}

.cards-list {
  display: grid;
  width: 100vw;
  max-height: 80vh;
  padding: 5vh 5vw;
  box-sizing: border-box;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4em;
}

.feature-wrapper {
  box-sizing: border-box;
  width: 100vw;
  padding: 5vh 5vw;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 5em;
}

.feature {
  grid-column: 1/3;
  grid-row: 1/3;
  height: 100%;
  border-radius: 50px;
}

header {
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 2em;
  box-sizing: border-box;
  box-shadow: 0 5px 5px -5px black;

  span {
    view-transition-name: emoji;
  }
}

#root {
  height: 100vh;
  width: 100vw;
}

html::view-transition-old(emoji) {
  animation: 100ms cubic-bezier(0.4, 0, 1, 1) both fade-out,
  200ms cubic-bezier(0.4, 0, 0.2, 1) both rotation;
}

html::view-transition-new(emoji) {
  animation: 100ms cubic-bezier(0.4, 0, 1, 1) both fade-in,
  200ms cubic-bezier(0.4, 0, 0.2, 1) both rotation;
}

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes fade-out {
  to { opacity: 0; }
}

@keyframes rotation {
  from {
    rotate: 0deg;
  }

  to {
    rotate: 360deg;
  }
}

.address {
  height: 34px;
  border-bottom: 1px solid lightgray;
  padding-block: 10px;
  view-transition-name: disabled;

  > div {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-inline: 20px;
  }
}

.address-bar {
  border-radius: 100px;
  height: 30px;
  background: #ececec;
  padding-inline: 1em;
  padding-top: 4px;
  flex: 1;
}

::view-transition-group(disabled),
::view-transition-old(disabled),
::view-transition-new(disabled) {
  animation-duration: 0s !important;
}
