@import url('fonts/author.css');
@import url('fonts/familjen-grotesk.css');
@import url('fonts/rajdhani.css');
@import url('fonts/roundo.css');
@import url('fonts/minecraft.css');

html {
  scroll-behavior: smooth;
}

main.content {
    flex: 1; 
    text-align: center;
    background: linear-gradient( #202020 0%, #0c0c0c 100%);
    color: #f0f0f0;
}

#project {
  scroll-margin-top: 1px;
}

body {
  letter-spacing: 1px;
  overflow-y: auto;
  margin: 0;
  font-family: 'Author-Medium', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: white;
}

.background {
  position: fixed; 
  inset: -18%;
  background-image: url("/images/background/project_background.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  transition: 1s;
  padding-top: 1px;
  padding-bottom: 30px;
  z-index: -1;
  transition: background-position 0s linear;
  will-change: transform;
}

.intro {
  background: linear-gradient( #1e251fd2 25%, #050805c4 75%);
  padding-top: 179px;
  padding-bottom: 80px;
  display: flex;        
  align-items: center;   
  justify-content: center; 
  gap: 40px;     
  box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.7);
}

.intro h2 { 
  font-family: 'Author-Bold', sans-serif;
  position: absolute;
  top: 112px;
  max-width: 600px;
  transform: translateX(-45%);
  font-size: 65px;
  color: white;
  text-shadow: 4px 4px 4px rgba(0,0,0,0.15);
}

.intro p {
  font-size: 32px;
  max-width: 600px;
  position: flex;
  justify-self: center;
  text-shadow: 4px 4px 4px rgba(0,0,0,0.15);
}

.intro img {
  width: 500px;
  height: 500px;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(7px 7px 10px rgba(0,0,0,0.3));
}

hr.split-project {
  display: flex;
  margin-top: 0px;
  margin-bottom: 0px;
  width: auto;
  opacity: 0.5;
}

.container-projects {
  display: flex;
  justify-content: center;
  align-items: center;
}

h2.projects {
  font: 10px/1 'Minecraft', sans-serif;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 6px 6px 2px rgba(0,0,0,0.2);
  margin-top: 90px;
  margin-bottom: 50px;
  font-size: 65px;
  text-align: center;
}

.embed {
  width: 890px;
  aspect-ratio: 4 / 1.3;
  background-color: #1313138c;
  border: 2.5px solid #4c515a80;
  border-radius: 10px;
  font-family: Arial, sans-serif;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  margin: 30px;
}

.head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
}

.head h3 {
  font-family: 'Minecraft';
  font-weight: 100;
  grid-column: 2;
  font-size: 30px;
  margin: 0;
  text-align: center;
  text-shadow: 0px 0px 10px rgba(0,0,0,0.2);
}

p.date {
  font-family: 'Montserrat-r', sans-serif;
  grid-column: 1;
  font-style: italic;
  font-size: 12px;
  margin: 0;
  opacity: 0.7;
  text-align: left;
  align-self: center;
}

.status-container {
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  justify-content: flex-end; 
  gap: 5px;   
  align-self: center;
}

.status-container .status {
  font-size: 18px;
  margin: 0;
  opacity: 0.8;
}

.circle {
  width: 19px;
  height: 19px;
  background-color: #fff;
  opacity: 0.7;
  border-radius: 50%;
}

.embed-image {
  width: 408px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.slider {
  border-radius: 10px;
  width: 408px;
  position: relative;
  overflow: hidden;
  margin: 0px;
}

.slides {
  display: flex;
  width: 410px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  transition: transform 0.5s ease-in-out;
}

.slides img {
  object-fit: cover;
  flex-shrink: 0;
}

.slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  transition: 0.1s;
}

.slider button:hover {
  color: rgb(201, 201, 201);
  transition: 0.1s;
}

.slider .previous {
  left: 10px;
}

.slider .next {
  right: 10px;
}

.embed-body {
  display: flex;
  gap: 27px;
  align-items: flex-start;
}

.embed-media a {
  font-weight: bold;
  text-decoration: none;
  color: white;
  background-color: #cc181eda;
  border-radius: 15px;
  padding: 7px;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 140px;
  text-align: center;
  margin-top: 9px;
}

.embed-media a:hover {
  background-color: #d82127;
  transition: 0.3s;
}

.embed-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 700x;
}

.embed-text {
  font-family: 'Author-Light', sans-serif;
  letter-spacing: 1px;
  text-align: left;
  font-size: 17px;
  margin: 0 0 0;
  opacity: 0.9;
  line-height: 23px;
}

hr {
  height: 2px;
  border: none;
  background-color: white;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
  margin-bottom: 40px;
  width: 900px;
}

/* ----------------------------------------------------- */

/* Bewerbung */

hr.split {
  display: flex;
  margin-top: 100px;
  margin-bottom: 0px;
  width: auto;
  opacity: 0.5;
}

#bewerbung {
  display: flex;
  flex-direction: column; 
  align-items: center;   
  justify-content: center; 
  font-family: 'Author-Medium', sans-serif;
  justify-items: center;
  background: linear-gradient(#050708c4 25%, #122736e0 75%);
  padding-bottom: 120px;
  scroll-margin-top: 140px;
}

.bewerbung-wrapper {
  position: relative;
  display: flex;
  align-items: center; 
  justify-content: space-between;
}

.container-bewerbung {
  margin-right: 250px;
  margin-left: 0px;
  margin-top: 40px;
  margin-bottom: auto;
}

.container-bewerbung h1 {
  letter-spacing: 1px;
  font-family: 'Author-Bold', sans-serif;
  text-shadow: 7px 7px 4px rgba(0,0,0,0.15);
  font-size: 65px;
  text-align: left;
}

.container-bewerbung h2 {
  letter-spacing: 2px;
  text-shadow: 4px 4px 4px rgba(0,0,0,0.15);
  font-size: 35px;
  margin-top: -40px;
  text-align: left;
}

.container-bewerbung p {
  text-shadow: 4px 4px 4px rgba(0,0,0,0.15);
  font-size: 22px;
  margin-top: -18px;
  margin-bottom: 35px;
  inline-size: 600px;
  overflow-wrap: break-word;
  text-align: left;
}

.container-bewerbung a {
  font-family: 'Author-Regular', sans-serif;
  font-size: 16.5px;
  letter-spacing: 1.4px;
  box-shadow: 7px 7px 7px rgba(0,0,0,0.15);
  font-weight: bold;
  text-decoration: none;
  color: white;
  background-color: #5662F6;
  border-radius: 8px;
  padding: 15px;
  overflow-wrap: min-content;
  transition: 0.3s;
  max-width: 250px; 
}

.container-bewerbung a:hover {
  background-color: #546a9b;
  transition: 0.3s;
}

.container-bewerbung img {
  width: 20px;
  margin: -6px;
  margin-right: 5px;
  height: auto;
}

img.discord-click {
  transform: none;
  margin: 0 620px;
  width: 270px;
  bottom: 0px;
  height: auto;
  position: absolute;
  filter: drop-shadow(7px 7px 10px rgba(0,0,0,0.35));
  user-select: none;
  -webkit-user-drag: none;
}

/* ----------------------------------------------------- */

/* mobile */

@media (max-width: 768px) {
    hr {
    width: 90%;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  h2.projects {
    font-size: 32px;
    margin-top: 60px;
    margin-bottom: 30px;
  }

  .container-projects {
    flex-direction: column;
    gap: 20px;
  }

  .intro {
    background: linear-gradient( #1e251fd2 25%, #050805a4 75%);
    flex-direction: column;
    gap: 20px;
    padding-top: 50px;
    padding-bottom: 50px;
    text-align: center;
  }

  .intro h2 {
    position: static;
    transform: none;
    font-size: 32px;
    max-width: 90%;
    margin: 0 auto;
  }

  .intro p {
    font-size: 18px;
    max-width: 90%;
    margin: 0 auto;
  }

  .intro img {
    display: none;
  }

  .embed {
    width: 80%;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    margin: 20px auto;
  }

  .embed-body {
    flex-direction: column;
    gap: 10px;
  }

  .slider {
    width: 100%;
  }

  .slides {
    width: 100%;
  }

  .slides img {
    width: 100%;
    height: auto;
  }

  .embed-content {
    max-width: 100%;
  }

  .head h3 {
    font-size: 22px;
  }

  .status-container .status {
    font-size: 16px;
  }

  p.date {
    max-width: 80px;
    font-size: 10px;
  }
  
  .bewerbung-wrapper {
    justify-items: center;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .container-bewerbung {
    transform: none;
    margin: 0 auto;
    max-width: 90%;
  }

  .container-bewerbung h1 {
    text-align: center;
    font-size: 40px;
  }

  .container-bewerbung h2 {
    font-weight: 200;
    text-align: center;
    font-size: 24px;
    margin-top: 0;
  }

  .container-bewerbung p {
    display: none;
  }

  .container-bewerbung a {
    margin: 0 auto;
    display: block;
    margin: 0 auto;
    text-align: center;
  }

  img.discord-click {
    display: none;
  }
}
