/* Stylinggg */

html, body {
  margin: 0;
  padding: 0;
}

body {
  color: white;
  font-size: large;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-image: url(assets/background.jpg);
  background-color: #170123;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  z-index: -1;
}

button {
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

button:active {
  border: none;
  transform: scale(95%);
}

h1 {
  margin: 0;
  margin-top: 10px;
  padding-left: 12px;
}

.content-table {
  background: linear-gradient(135deg, rgba(25, 9, 36, 0.4) 0%, rgba(21, 0, 52, 0.4) 100%);
  backdrop-filter: blur(10px);
  border: #000 4px solid;
  border-radius: 8px;
  display: flex;
  margin-left: 20%;
  margin-right: 20%;
  margin-top: 75px;
}

.link-text {
  margin: 6px;
}

.link-text:hover {
  transform: scale(105%);
}

.page-title {
  width: 100%;
  text-align: center;
  font-size: 50px;
}

.blog-container {
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

.blog-list {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-item {
  margin: 15px auto;
  border: 4px solid #000000;
  max-width: 700px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #00000094 0%, #000000c8 100%);
  display: flex;
  flex-direction: row;
  transition: transform 0.6s ease-in-out, border 0.6s ease-in-out;
  box-sizing: border-box;
}

.blog-item:hover {
  border: 4px solid #640995;
  background: linear-gradient(135deg, #64099546 0%, #640995b7 100%);
  transform: scale(105%);
}

.blog-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 20px 0;
  padding: 0 10px;
  box-sizing: border-box;
  align-items: center;
}

.blog-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  width: 100%;
}

.blog-date {
  width: 100%;
  text-align: center;;
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 10px;
}

.blog-description {
  font-size: 18px;
  margin: 10px 0;
  box-sizing: border-box;
  width: 100%;
  text-align: center;
}

.blog-resources {
  text-align: center;
  font-size: 18px;
  margin-top: 15px;
}

.blog-resources a,
.blog-resources a:visited {
  color: white;
  text-decoration: none;
}

.blog-links {
  margin: 0;
  font-size: 25px;
  text-align: center;
  width: 100%;
  margin-bottom: 15px;
}

#markdown-content {
  padding: 20px;
  font-size: 18px;
  line-height: 1.6;
  text-align: justify;
}

#markdown-content h1, 
#markdown-content h2, 
#markdown-content h3 {
  text-align: left;
}

#markdown-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 15px auto;
}

/* Responsive stuff */

@media (min-width: 2560px) {
  body::before {
    inset: 0;
    filter: blur(4px);
    -webkit-filter: blur(4px);
    width: 100vw;
    height: 100vh;
  }

  .content-table {
    margin-left: 35%;
    margin-right: 35%;
    margin-top: 125px;
  }
}

@media (max-width: 1350px) {
  body {
    font-size: medium;
  }

  .content-table {
    display: flex;
    flex-direction: column;
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 25px;
  }
}

@media (max-width: 1000px) {
  body {
    font-size: large;
  }

  .content-table {
    display: flex;
    flex-direction: column;
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 25px;
  }

  .blog-item {
    width: 92%;
    margin: 10px auto;
    flex-direction: column;
  }

  .blog-title {
    font-size: 28px;
  }

  .blog-description {
    font-size: 14px;
    padding: 0 5px;
  }
}

@media (max-width: 400px) {
  body {
    font-size: 14px;
  }

  .content-table {
    margin-left: 2px;
    margin-right: 2px;
    margin-top: 10px;
  }
}

/* Imported */

@keyframes glow {
  0% {
    text-shadow: 0 0 15px #640995;
  }
  50% {
    text-shadow: none;
  }
  100% {
    text-shadow: 0 0 15px #640995;
  }
}

@-webkit-keyframes glow {
  0% {
    text-shadow: 0 0 15px #640995;
  }
  50% {
    text-shadow: 0 0 0;
  }
  100% {
    text-shadow: 0 0 15px #640995;
  }
}

h1 {
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #000;
  font-weight: bold;
  -webkit-animation: glow 2.0s linear infinite;
  -moz-animation: glow 2.0s linear infinite;
  -ms-animation: glow 2.0s linear infinite;
  -o-animation: glow 2.0s linear infinite;
  animation: glow 2.0s linear infinite;
}

.link-text {
  text-shadow: -1px 0 #fff, 0 1px #000, 1px 0 #000, 0 -1px #fff, 0 0;
  color: #640995;
  padding: 0 1px 0 1px;
}
