:root {
  --bg-color: white;
  --text-color: #fff;
  --header-color: #fff;
  --header-color-2: #ffd700;
  --bg-image: url("../images/tekirdag.jpg");
  --logo-image: url("../images/logo.png");
  --headline-bgcolor: #cb3737;
  --headline-color: whitesmoke;
  --headbox-bgcolor: #262626;
  --headbox-color: whitesmoke;
  --color-gold: #ffd700;
  --tiltbutton-color: whitesmoke;
  --tiltbutton-bgcolor: #dbbf21;

  --font-heading: "Inter", sans-serif;
  --font-body: "Open Sans", sans-serif;

  --em-1: 0.9em;
  --em-2: 0.9em;
  --em-3: 1.4em;
}

@media only screen and (min-width: 768px) {
  :root {
    --em-1: 1em;
    --em-2: 1.3em;
    --em-3: 2em;
  }
}

@media only screen and (min-width: 1200px) {
  :root {
    --em-1: 1em;
    --em-2: 1.8em;
    --em-3: 2.5em;
  }
}

@media only screen and (min-width: 1600px) {
  :root {
    --em-1: 1em;
    --em-2: 2em;
    --em-3: 3em;
  }
}

* {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.6;

  &::after {
    content: "";
    position: fixed;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
      url("../images/tekirdag.webp");
    background-size: cover;
    background-position: center;
    opacity: 0.9;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: -1;
  }
}

section {
  margin-top: 50px;
  padding-top: 100px;
}

.section-header {
  text-align: center;
  font-weight: 900;
  color: var(--header-color);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  span {
    color: var(--header-color-2);
  }
}

.banner {
  width: 100%;
  padding: 0;
  margin-inline: auto;
  font-family: var(--font-heading);

  span {
    font-weight: 900;
  }

  .logo {
    background-image: var(--logo-image);
    width: 100%;
    aspect-ratio: 16/5;
    background-size: cover;
  }

  .header {
    display: flex;
    justify-content: center;
    font-size: var(--em-3);
    flex-wrap: wrap;
    text-align: center;
  }

  .body {
    display: flex;
    justify-content: center;
    font-size: var(--em-2);
    flex-wrap: wrap;
    text-align: center;
  }

  .highlight-1 {
    position: relative;
    background: url("../images/textures/texture-9.svg");
  }

  .highlight-2 {
    position: relative;
    background: url("../images/textures/texture-3.svg");
  }
}

.headline {
  background-color: var(--headline-bgcolor);
  color: var(--headline-color);
  margin-inline: auto;
  padding-block: 10px;
  justify-content: center;
  align-items: center;
  border-radius: 3px;
  box-shadow: 0 3px 3px 0 rgb(0 0 0 / 0.6), 0 3px 3px -1px rgb(0 0 0 / 0.6);
  text-shadow: black 1px 1px 3px;
  h1,
  h2 {
    font-size: var(--em-2);
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 800;
  }
}

.headbox {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  color: #f8f8f8;
  border-radius: 8px;
  height: 100%;
  span {
    color: #ffd700;
  }
}

@media (max-width: 768px) {
  .headbox {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
}

.tilt-button {
  display: flex;
  margin-inline: auto;
  padding: 10px;
  width: fit-content;
  min-width: 50%;
  background: var(--tiltbutton-bgcolor);
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  box-shadow: black 1px 2px 5px;
  animation: tilt-shaking ease-out 1s infinite;
  a {
    font-size: var(--em-2);
    color: var(--tiltbutton-color);
    text-shadow: black 1px 1px 3px;
  }
}

@keyframes vibrate {
  0% {
    left: -3px;
    right: -3px;
  }
  12.5% {
    left: 3px;
    right: 0px;
  }
  25.0% {
    left: -3px;
    right: 3px;
  }
  37.5% {
    left: 0px;
    right: -3px;
  }
  50.0% {
    left: 0px;
    right: 3px;
  }
  62.5% {
    left: 3px;
    right: -3px;
  }
  75.0% {
    left: -3px;
    right: 0;
  }
  87.5% {
    left: 3px;
    right: 3px;
  }
  100% {
    left: 0px;
    right: 3px;
  }
}

@keyframes tilt-shaking {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(2deg);
  }
  50% {
    transform: rotate(0eg);
  }
  75% {
    transform: rotate(-2deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

footer {
  background-color: #2b3032;
  color: whitesmoke;
  padding: 40px 0;
  margin-top: 50px;
}

footer .text-muted {
  color: #ccc !important;
}
