@import 'variables.css';

/* General */

@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito.woff2") format("woff2");
}

* {
  font-family: "Nunito";
  font-synthesis: none;
}

body {
  background-color: var(--gray);
  font-size: var(--normal-text);
  color: var(--white);
  width: 100%;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  padding-top: 92px;
  flex: 1;
  padding-bottom: 32px;
  text-align: center;
}

center {
  padding-top: 100px;
  flex: 1;
}

.tile {
  background-color: var(--black);
  border-radius: var(--large-br);
  width: 100%;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  text-align: center;
  height: auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  justify-items: center;
}

#tile h1 {
  margin-top: 0;
}

#tile h2 {
  margin-top: 0;
}

/* Images */

img {
  border-radius: var(--small-br);
}

.preview {
  height: 130px;
  width: auto;
  margin-bottom: 30px;
}

.banner {
  width: 85%;
  height: auto;
}

/* Header */

.header {
  background-color: var(--black);
  border-bottom: solid var(--gray) 1px;
  width: 100%;
  height: 60px;
  position: fixed;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 14;
}

.logo {
  align-self: flex-start;
  vertical-align: middle;
  height: 60px;
  width: auto;
  cursor: pointer;
  border-radius: 0;
}

.desktopNav {
  gap: 24px;
  display: flex;
}

.mobile-menu {
  display: none;
}

.header nav a {
  font-size: var(--text-size-normal);
  font-family: var(--ui-font);
  display: inline-block;
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
}

.header nav a:hover {
  color: var(--ui-color-hover);
}

.burger {
  display: none;
  cursor: pointer;
  height: 30px;
  width: auto;
  border-radius: 0;
}

footer {
  background-color: var(--black);
  font-size: var(--normal-text);
  color: var(--white);
  padding: 15px 0;
  text-align: center;
  width: 100%;
  bottom: 0;
  border-top: solid var(--gray) 1px;
}

/* Text */

h1 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 15px;
}

h2 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 16px;
}

p {
  font-size: var(--normal-text);
  margin-top: 0;
  margin-bottom: 0px;
}

.text {
  text-align: justify;
  width: 80%;
  transition: all 0.3s;
}

.last {
  margin-bottom: 0;
}

/* Link */

a:link {
  color: var(--white);
  text-decoration: none;
}

a:visited {
  color: var(--white);
  text-decoration: none;
}

a:hover {
  color: var(--light-green);
  text-decoration: none;
}

/* Button */

.light-button {
  position: relative;
  background-color: transparent;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 100px;
  background-clip: padding-box, border-box;
  background-origin: border-box;
  border: 2px solid transparent;
  background-image:
    linear-gradient(var(--gray), var(--gray)),
    linear-gradient(45deg, #008400, #6fff15);
}

.dark-button {
  position: relative;
  background-color: transparent;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 100px;
  background-clip: padding-box, border-box;
  background-origin: border-box;
  border: 2px solid transparent;
  background-image:
    linear-gradient(var(--black), var(--black)),
    linear-gradient(45deg, #008400, #6fff15);
}

.light-button:hover, .dark-button:hover {
  border: 2px solid rgb(142, 142, 147);
}

.header nav a:hover {
  color: var(--ui-color-hover);
}

.socialMediaTile .logo {
    width: 30%;
    height: auto;
    border-radius: 8px;
}

.socialMediaTile {
    box-sizing: border-box;
    display: flex;
    gap: 24px;
    background-color: var(--black);
    border-radius: 32px;
    padding: 24px;
    text-align: left;
}

.title {
  text-align: left;
}

.socialMediaTile:hover {
  box-shadow: var(--ui-color-hover) 0 0 0 2px inset;
}

.socialMediaTile .name {
    margin-bottom: 4px;
}

.horizontal-layout {
  display: flex;
  gap: 32px;
  width: 100%;
  flex-wrap: wrap;
}

@media (max-width: 1025px) {
    .socialMediaTile {
        width: 100%;
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .socialMediaTile {
        width: calc((100% / 2) - 16px);
    }
}

@media (min-width: 1441px) {
    .socialMediaTile {
        width: calc(100%/3 - 64px/3);
    }
}


@media (max-width: 950px) {
  header {
    padding: 0 21px;
  }

  header nav {
    display: none;
  }

  .burger {
    display: block;
  }

  header nav {
    display: none;
    float: left;
  }

  .preview {
    height: 125px;
    width: auto;
  }
}

@media (max-width: 950px) {
  .image-button {
    width: 250px;
  }

  .image-button img {
    scale: 80%;
  }

  h1 {
    width: 90%;
  }

  .preview {
    height: 125px;
    width: auto;
  }
}

@media (max-width: 1025px) {
  header, main, .mobile-menu {
    padding-inline: 5%;
  }
}

@media (min-width: 1025px) and (max-width: 1440px) {
  header, main {
    padding-inline: 10%;
  }
}

@media (min-width: 1441px) {
  header, main {
    padding-inline: calc((100% - 1200px)/2);
  }
}

@media (max-width: 768px) {
  .desktopNav {
    display: none;
  }

  .burger {
    display: block;
    height: 40%;
    width: auto;
  }

  .mobile-menu {
    position: absolute;
    top: 59px;
    left: 0;
    width: 100%;
    background-color: var(--black);
    display: none;
    flex-direction: column;
    align-items: end;
    gap: 16px;
    padding-block: 16px;
    z-index: 15;
    box-sizing: border-box;
    border-bottom: solid var(--gray) 1px;
  }

  .mobile-menu.active {
    display: flex;
  }
}