:root {
    --blue: hsl(209 100% 31%);
    --dark-blue: hsl(209 100% 15%);
    --black: hsl(209 100% 10%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100vh;
    overflow: auto;
}

body {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: white;
    background-color: var(--blue);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='hexagons' fill='hsl(209 100% 31% / 50%)' fill-opacity='0.25' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"), linear-gradient(to right top, hsl(209 100% 31%), var(--black));
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3em;
    color: hsl(0 0% 100% / 95%);
}

h2 {
    font-size: 1.7rem;
    margin-bottom: .5em;
    color: hsl(0 0% 100% / 95%);
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: hsl(0 0% 100% / 95%);
}

p {
    line-height: 1.5rem;
    color: hsl(0 0% 100% / 80%);
}

.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1000px;
}

.hidden,
.animate {
    transition: opacity 500ms ease-out, transform 500ms ease-out;
    transition-delay: 200ms;
    opacity: 0;
    transform: translateY(6rem);
}

.animate {
    transform: translateY(0px);
    opacity: 1;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1rem;
}

header img {
    width: 10rem;
}

header a {
    color: #fff;
    text-decoration: none;
    padding: .5rem 1rem;
    border-radius: 2rem;
    background: var(--blue);
}

.hero {
    padding-block: 4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.hero p {
    margin-bottom: 1rem;
}

.hero_text {
    max-width: 500px;
}

.hero_chat {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.hero_chat img {
    width: 1.2rem;
}

.hero_chat a {
    text-decoration: none;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem;
    border-radius: 5px;
    font-weight: 400;
}

.hero_chat a:first-of-type {
    background: hsl(129, 56%, 47%);
}

.hero_chat a:nth-of-type(2) {
    background: hsl(332, 60%, 51%);
}

.hero_chat a:last-of-type {
    background: hsl(197, 100%, 46%);
}

.hero_cards {
    position: relative;
    height: 18rem;
}

.float-item {
    width: 40%;
    aspect-ratio: 1/1.7;
    max-width: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .5rem;
    position: absolute;
    top: 0;
    animation: move 2s ease-in-out infinite;
}

.amazon {
    background-image: linear-gradient(to top right, hsl(340, 10%, 6%), hsl(340, 10%, 16%));
    animation-duration: 2s;
    left: 20%;
    rotate: -20deg;
}

.apple {
    background-image: linear-gradient(to top right, hsl(190, 79%, 48%), hsl(243, 49%, 41%));
    animation-duration: 2.5s;
    top: 2rem;
    left: 50%;
    translate: -50% 0;
}

.steam {
    background-image: linear-gradient(to top right, hsl(239, 34%, 25%), hsl(239, 34%, 35%));
    animation-duration: 3s;
    rotate: 20deg;
    top: 5rem;
    right: 20%;
}

.float-item img {
    width: 40%;
}

@keyframes move {
    50% {
        transform: translate(5px, 10px);
    }
}

.services {
    background: linear-gradient(to left bottom, var(--blue), var(--dark-blue));
    padding-block: 4rem;
    text-align: center;
    margin-top: 4rem;
}

.services article {
    max-width: 500px;
}

.services-items {
    margin-top: 2rem;
    margin-inline: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    justify-items: center;
}

.reviews {
    padding-block: 4rem;
    background: linear-gradient(to left bottom, var(--blue), var(--dark-blue));
    margin-bottom: 8rem;
}

.review-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
    margin-inline: 1rem;
}

@media (min-width: 700px) {
    .review-list {
        grid-template-columns: 1fr 1fr;
    }
}

.review {
  padding: 1.5rem;
    border-radius: 8px;
    background: hsl(0 0% 100% / 7%);
}

.review h3 {
  font-size: .8rem;
  margin-bottom: .5rem;
}

.review p {
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 4;
}

.review-list div a {
  display: inline-block;
  padding: .8rem 2rem;
  border-radius: 6px;
  background: var(--blue);
  text-decoration: none;
  font-weight: 500;
  color: white;
}

.btc-exchange {
    width: 50%;
    max-width: 20rem;
    aspect-ratio: 1;
    margin: 0 auto;
    background-image: url(assets/btc-exchange.svg);
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.card-exchange {
    height: 14rem;
    display: grid;
    align-items: center;
    justify-items: center;
}

.card-exchange * {
    grid-row: 1;
    grid-column: 1;
}

.exchange {
    width: 50%;
    max-width: 10rem;
    aspect-ratio: 1.7 / 1;
    background: green;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(to top right, hsl(190, 79%, 48%), hsl(243, 49%, 41%));
}

.exchange img {
    width: 25%;
}

.exchange-amazon {
    margin-left: -5rem;
    margin-top: -4rem;
    background-image: linear-gradient(to top right, hsl(340, 10%, 6%), hsl(340, 10%, 16%));
}

.exchange-steam {
    margin-right: -5rem;
    background-image: linear-gradient(to top right, hsl(239, 34%, 25%), hsl(239, 34%, 35%));
    margin-bottom: -4rem;
}

.reasons {
    padding: 6rem 1rem;
    text-align: center;
}

.reason-list {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.reason-icon {
    width: 3rem;
    height: 3rem;
    background: hsl(0 0% 100% / 80%);
    border-radius: 50%;
    margin: 0 auto;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reason-icon img {
    width: 2rem;
}

.cryptos {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4rem;
}

.cryptos img {
    width: 90%;
    max-width: 500px;
    animation: float 3s ease-in-out infinite;
    transform: translateY(-20px);
}

.reason {
    width: 100%;
    max-width: 25rem;
    padding: 2rem;
    border-radius: 8px;
    background: hsl(209 100% 21%);
    text-align: center;
    box-shadow: -5px 5px 10px hsl(209 100% 31% / 10%);
}

.star {
  height: 1rem;
  background-image: url(assets/star.svg);
  background-size: 1rem;
  margin-top: .5rem;
  background-repeat: space;
  width: 5.9rem;
}

.reason p {
    color: hsl(0 0% 100% / 70%);
}

.reason h3 {
    color: hsl(0 0% 100% / 80%);
}

@keyframes float {
    50% {
        transform: translateY(20px);
    }
}

.gift-cards {
    padding-bottom: 4rem;
    margin-bottom: 4rem;
}

.gift-cards>div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-auto-rows: 1fr;
    gap: 1rem;
}

.gift-cards-item {
    --shadow: hsl(0 0% 0% / 50%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: hsl(209 100% 31%);
    border-radius: .5rem;
}

.ether {
    display: flex;
    padding-top: 4rem;
    align-items: center;
    justify-content: center;
    animation: ether-float 2s ease-in-out infinite;
}

@keyframes ether-float {
    50% {
        transform: translateY(2rem);
    }
}

.ether img {
    width: 80%;
    max-width: 400px;
}

.gift-cards-item>img {
    width: 3rem;
}

.amazon-item {
    background-image: linear-gradient(to top right, hsl(340, 10%, 6%), hsl(340, 10%, 16%));
}

.apple-item {
    background-image: linear-gradient(to top right, hsl(217, 90%, 57%), hsl(191, 92%, 65%));
    transition: 600ms;
}

.ebay-item {
    background: hsl(230, 78%, 48%);
    transition: 300ms;
}

.play-item {
    background-image: linear-gradient(to top right, hsl(218, 91%, 63%), hsl(218, 91%, 73%));
}

.spotify-item {
    background: hsl(156, 99%, 35%);
    transition: 500ms;
}

.nike-item {
    background: hsl(13, 97%, 55%);
}

.xbox-item {
    background: hsl(119, 70%, 30%);
}

.steam-item {
    background-image: linear-gradient(to bottom left, hsl(0, 0%, 0%), hsl(201, 46%, 14%));
    transition: 400ms;
}

.visa-item {
    background-image: linear-gradient(to top right, hsl(213, 77%, 21%), hsl(201, 78%, 49%));
}

.gift-cards-item a {
    background: none;
    height: 2rem;
    border: 0;
    outline: 0;
    width: 100%;
    padding: .5rem;
    border-radius: 1rem;
    box-shadow: inset 2px 2px 5px var(--shadow);
    background-image: url(assets/arrow.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 70%;
    animation: shake 2s ease-in-out infinite;
}

@keyframes shake {

    100%,
    0% {
        background-position-x: 45%;
    }

    50% {
        background-position-x: 55%;
    }
}

footer {
    padding-block: 4rem;
    background: hsl(209 100% 11%);
}

footer .container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

footer img[alt=logo] {
    width: 10rem;
    display: inline-block;
}

.footer-links img {
    width: 1.5rem;
    display: inline-block;
    margin-left: .3rem;
}

.footer-links {
    min-width: 7.5rem;
}

footer p {
    max-width: 600px;
    color: hsl(0 0% 100% / 70%);
    font-weight: 400;
}

@media (min-width: 900px) {
    footer .container {
        flex-direction: row;
        align-items: flex-start;
    }

    .services-items {
        grid-template-columns: 1fr 1fr;
    }

    .hero {
        grid-template-columns: 1fr .7fr;
        align-items: center;
    }

    .hero_cards {
        flex-basis: 100%;
    }
}
