* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --primary: #009fc7;
  --blue1: #015368;
  --blue2: #19a8cc;
  --blue3: #61c3dc;
  --blue4: #d2f4ff;
  --blue5: #f0fbff;
  --blue6: #f7faff;
  --grey1: #181e28;
  --grey2: #424b5a;
  --grey3: #859ca8;
  --grey4: #c2d1d9;
  --grey5: #e2eaf0;
  --grey6: #f2f5f7;
  --grey7: #fafafa;
  --white: #ffffff;
}

@font-face {
    font-family: 'Raleway';
    src: url('../resources/typography/Raleway-VariableFont_wght.ttf') format('ttf');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Raleway';
    src: url('../resources/typography/Raleway-Italic-VariableFont_wght.ttf') format('ttf');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
  font-family: Raleway, sans-serif;
  font-weight: 200;
  background-color: var(--grey6);
  color: var(--primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* Main Titles */
h1 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-wrap: balance;
}

h1 + p {
  text-wrap: balance;
  margin-bottom: 2rem;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  height: 64px;
  align-items: center;
  background: var(--grey1);
}

header a {
  text-decoration: none;
  color: var(--white);
  transition: color 0.2s;
  font-weight: 550;
  padding-left: 10px;
  padding-right: 10px;

  &:hover,
  &:focus {
    color: var(--primary);
    outline: none;
  }
}

.log-in {
  background-color: var(--blue3);
  border-radius: 5px;
  padding: 5px 15px 5px 15px;
}

.header {
  display: flex;
}

.alt_header {
  text-align: center;
}

@media (max-width: 800px) {
  .tool_bar {
    display: none;
  }
  header {
    justify-content: center;
  }
  .header-left {
    margin-left: 0;
  }
}

/* Title */
main > section:nth-child(1) {
  height: 200px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  h1 {
    padding-top: 36px;
  }

  h4 {
    color: var(--grey3);
  }
}

/* Grid for products */
.cards_main {
  display: flex;
  justify-content: center;
  gap: 18px;
  background-color: var(--background);
  text-align: center;
  padding: 16px;
}

@media (max-width: 800px) {
  .cards_main {
    display: grid;
    gap: 18px;
    justify-content: center;
  }
}

/* Footer */
footer {
  background-color: var(--background);
  text-align: center;
  padding: 16px;
  margin-bottom: 25px;

  small {
    color: var(--text-muted);
    font-size: 0.875rem;
    display: block;
  }
}

article {
  background-color: var(--card-bg);
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0px -5px 0px 0px var(--primary);
  align-content: center;
}

.article_shadow {
  box-shadow: rgba(0, 0, 0, 0.15) 0px 1px 10px;
  border-radius: 0px 0px 15px 15px;
}

.article_main {
  color: var(--grey1);
  border-radius: 5px;
  font-size: 18px;

  h4 {
    color: var(--blue1);
  }

  a {
    border-radius: 10px;
    font-size: 15px;
    font-weight: 1000;
    padding: 5px 40px;
    color: var(--primary);
    background-color: var(--grey5);
    border: none;
    transition: color 0.2s;

    &:hover,
    &:focus {
      background-color: var(--blue1);
      cursor: pointer;
    }
  }
}

.logo_base {
  width: 150px;
  margin-left: 20px;
}

.logo_small {
  display: none;
}

@media (max-width: 430px) {
  .logo_base {
    display: none;
    justify-content: center;
  }
  .logo_small {
    display: inline;
    width: 40px;
    justify-content: center;
  }
}

.card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  justify-content: center;
}

.card > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-2 {
  grid-template-columns: repeat(1, 0fr);
  width: 210px;
}

@media (max-width: 1450px) {
  .card {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-2 {
    grid-template-columns: repeat(1, 0fr);
  }
  .card-seges {
    grid-template-columns: repeat(1, 0fr);
  }
}

.card h4 {
  margin-top: 10px;
}

.card a {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  width: 100px;
  height: 26px;
  background-color: var(--blue3);
  color: var(--white);
  text-decoration: none;
  border-radius: 10px;
}

.card_title {
  display: flex;
  gap: 30px;
  padding: 0px 0px 20px 0px;

  h3 {
    color: var(--grey1);
    align-content: center;
    font-size: 25px;
  }

  svg {
    color: var(--primary);
    background: var(--grey5);
    width: 64px;
    height: 64px;
    border-radius: 20%;
    padding: 16px;
  }
}

.separator {
  display: flex;
  justify-content: center;
  margin-top: 2%;
  margin-bottom: 2%;
}

.line {
  border-top: 1px solid var(--grey5);
  width: 100%;
  margin-top: 10px;
}

.arrow {
  padding-right: 50px;
  padding-left: 50px;
}

.link-offline {
  color: var(--grey1);
  margin-top: 40px;
  font-size: 20px;
  font-weight: 550;
}

.link-offline-short {
  color: var(--grey1);
  margin-top: 20px;
  font-size: 20px;
  font-weight: 550;
}

/* SEGES Section */

#seges {
  color: #cc4d04;
}

.cards-main-seges {
  display: flex;
  justify-content: center;
  gap: 18px;
  background-color: var(--background);
  text-align: center;
  padding: 16px;
}

@media (max-width: 800px) {
  .cards-main-seges {
    display: grid;
    gap: 18px;
    justify-content: center;
  }
}

.article-shadow-seges {
  box-shadow: rgba(0, 0, 0, 0.15) 0px 1px 10px;
  border-radius: 0px 0px 15px 15px;
}

.article-main-seges {
  color: var(--grey1);
  border-radius: 5px;
  font-size: 18px;
  box-shadow: 0px -5px 0px 0px #cc4d04;

  h4 {
    color: #cc4d04;
  }

  a {
    border-radius: 10px;
    font-size: 15px;
    font-weight: 1000;
    padding: 5px 40px;
    color: #cc4d04;
    background-color: var(--grey5);
    border: none;
    transition: color 0.2s;

    &:hover,
    &:focus {
      background-color: #8f3500;
      cursor: pointer;
    }
  }
}

.card-seges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  justify-content: center;
}

.card-seges-reduced {
  grid-template-columns: repeat(1, 0fr);
  width: 210px;
}

@media (max-width: 1450px) {
  .card-seges {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-seges-reduced {
  grid-template-columns: repeat(1, 0fr);
}
}

.card-seges a {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  width: 100px;
  height: 26px;
  background-color: #cc4d04;
  color: var(--white);
  text-decoration: none;
  border-radius: 10px;
}

.card-title-seges {
  display: flex;
  gap: 30px;
  padding: 0px 0px 20px 0px;

  h3 {
    color: var(--grey1);
    align-content: center;
    font-size: 25px;
  }

  svg {
    color: #cc4d04;
    background: var(--grey5);
    width: 64px;
    height: 64px;
    border-radius: 20%;
    padding: 16px;
  }
}