:root {
  --dark-blue: #003a5d;
  --light-blue: #06a7e2;
  --grey: #9b9b9b;
  --dark-gradient: linear-gradient(0deg, #00578c 0%, #003a5d 100%);
  --dark-gradient-sharp: linear-gradient(180deg, #00578c 50%, #003a5d 50.1%);
  --light-gradient: linear-gradient(180deg, #39c2f4 0%, #06a7e2 100%);
  --light-gradient-inverse: linear-gradient(0deg, #39c2f4 0%, #06a7e2 100%);
  --cardPadding: 32px;
}

body {
  height: 100%;
  font-family: "Nunito", sans-serif;
  font-weight: normal;
  column-gap: 32px;
  max-width: 1440px;
  margin: auto;
  background-image: var(--dark-gradient);
  background-repeat: no-repeat;
  background-size: cover;
}

p {
  margin: 0 0 16px 0;
}

a {
  text-decoration: underline;
}

body:before {
  content: "";
  clip-path: polygon(0px 0px, 100% 0%, 100% 70%, 0% 100%);
  height: 380px;
  background: #fff;
  position: absolute;
  z-index: -1;
  width: 100%;
  top: 0;
  left: 0;
}

@media (max-width: 950px) {
  body:before {
    clip-path: polygon(0px 0px, 100% 0%, 100% 90%, 0% 100%);
    height: 450px;
  }
}

@media (max-width: 570px) {
  body:before {
    clip-path: polygon(0px 0px, 100% 0%, 100% 90%, 0% 100%);
    height: 500px;
  }
}

.header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 32px 32px 0px 32px;
}

.logo {
  display: inline-block;
  width: 250px;
  float: left;
}

@media (max-width: 570px) {
  .logo {
    width: 50vw;
    padding-right: 16px;
  }
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 32px;
  align-items: center;
  padding-left: 32px;
  padding-right: 32px;
}

.hero > * {
  width: 100%;
}

@media (max-width: 950px) {
  .hero {
    display: block;
    padding-left: 32px;
    padding-right: 32px;
  }
}

.hero__title {
  font-family: "Kanit", sans-serif;
  position: relative;
  font-weight: 800;
  line-height: 100.5%;
  font-size: 64px;
  color: white;
  min-width: 400px;
  white-space: nowrap;
}

@media (max-width: 950px) {
  .hero__title {
    font-size: 56px;
  }
}

@media (max-width: 450px) {
  .hero__title {
    font-size: calc(2em + 2vw);
  }
}

/* add a single stroke */
.hero__title:before {
  content: "DroneBlocks \00000a Simulator V2.0";
  white-space: pre;
  position: absolute;
  -webkit-text-stroke: 0.2em var(--dark-blue);
  left: 0;
  z-index: -1;
}

.cards__title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Kanit", sans-serif;
  font-weight: 500;
  font-size: 28px;
  color: white;
  margin: 64px 0 16px 0;
}

.cards__wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 32px;
  padding: 0 32px 32px;
}

@media (max-width: 950px) {
  .cards__wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .cards__wrapper {
    grid-template-columns: repeat(1, 1fr);
  }
}

.card {
  border: none;
  position: relative;
  border-radius: 5px 5px 5px 5px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.card__tag {
  display: block;
  position: absolute;
  font-family: "Kanit", sans-serif;
  font-weight: 700;
  line-height: 137.5%;
  border: none;
  overflow: visible;
  color: white;
  font-size: 32px;
  background: var(--dark-gradient-sharp);
  clip-path: polygon(0px 0px, 100% 0%, 80% 100%, 0% 100%);
  top: 16px;
  left: 0;
  padding: 8px 32px;
  padding-right: 50px;
}

.card__content {
  display: flex;
  padding: 32px;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.card__paragraph {
  margin: 0px 0px 24px 0px;
}

.card__image {
  object-fit: cover;
  aspect-ratio: 2 / 1;
  width: 100%;
}

.card__button {
  background: var(--light-gradient);
  font-family: "Nunito", sans-serif;
  border: none;
  position: static;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: white;
  border-radius: 50px;
  padding: 16px 32px;
  font-size: 18px;
  filter: drop-shadow(0px 4px 4px rgba(0, 58, 93, 0.2));
  transition: all 0.03s linear;
  text-decoration: none;
}

.card__button:hover {
  filter: drop-shadow(0px 2px 2px rgba(0, 58, 93, 0.2));
  transform: translateY(4px);
  background: var(--light-gradient-inverse);
}

.card__button-inactive {
  background: var(--grey);
  font-family: "Nunito", sans-serif;
  border: none;
  position: static;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: white;
  border-radius: 50px;
  padding: 16px 32px;
  font-size: 18px;
  transition: all 0.03s ease-out;
  text-decoration: none;
  margin: 0;
}

/* TODO: procitaj CSS specificity da bi razumeo kako se nasledjuju stilovi */

.button__icon {
  margin-left: 16px;
  background-image: url(../images/button__icon_play.svg);
  background-repeat: no-repeat;
  width: 14px;
  height: 16px;
  display: block;
}

.card__button:active {
  filter: drop-shadow(0px 2px 2px rgba(0, 58, 93, 0.2));
  transform: translateY(4px);
  background: var(--light-gradient-inverse);
}

.button-inverse-small {
  background: white;
  margin: 0;
  border: solid var(--dark-blue);
  border-width: 2px;
  border-radius: 30px;
  color: var(--dark-blue);
  text-align: center;
  text-decoration: none;
  display: block;
  align-self: center;
  white-space: nowrap;
  font-size: 14px;
  float: right;
  /* min-width: 137px; */
  padding: 14px 32px;
}

.button-inverse-small:active {
  color: white;
  background: var(--dark-gradient);
}
