/* Styling :) */

/* Home Page and general */

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/img/background.jpg);
  background-color: #170123;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  z-index: -1;
}

summary {
  user-select: none;
  cursor: pointer;
  width: fit-content;
  font-size: 25px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 25px;
}

dfn {
  cursor: help;
}

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

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


li:not(.interests-note){
  display: inline;
  white-space: nowrap;
}

li:not(.interests-note):before {
  content: ">";
  margin: 0 10px;
}

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

.personal-info {
  margin: 12px;
}

.personal-info * {
  margin: 0;
}

.personal-info div {
  margin: 10px;
}

.personal-info p {
  font-size: larger;
  font-weight: bold;
}

.container {
  border: rgb(0, 0, 0) 4px solid;
  margin: 10px;
  border-radius: 6px;
}

.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;
}

.introduction {
  display: flex;
}

.table-left {
  width: 65%;
}

.table-right {
  width: 100%;
}

.interests-box {
  display: flex;
  align-items: center;
  border-top: rgb(0, 0, 0) 4px solid;
  padding: 10px;
}

.interests-box h3 {
  width: 15%;
}

.interests-box ul {
  width: 100%;
}

.interests-note {
  margin-top: 6px;
  list-style-type: none;
}

.general {
  border: none;
}

.category-title {
  margin: 0;
  background-color: #271133d3;
  text-align: center;
  border-bottom: rgb(0, 0, 0) 4px solid;
}

.about-text {
  padding: 10px;
}

.introduction {
  border: none;
}

.graphics {
  margin: 24px 0;
}

.portal-divider {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
}

.portal-divider img {
  position: relative;
  z-index: 2;
}

.divider {
  margin-left: -10px;
  width: calc(100% + 20px);
}

.blinkies-container {
  text-align: center;
}

.blinkies {
  width: 45%;
}

.blinkies:last-child {
  width: calc(90% + 6px);
}

.stamps {
  width: 25%;
}

.stamps-container {
  text-align: center;
}

.links-box {
  display: flex;
  justify-content: center;
}

.link-text {
  margin: 6px;
}

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

.image-container {
  width: 100%;
  text-align: center;
}

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

.latest-project.container {
  overflow: hidden;
  box-sizing: border-box;
}

.latest-project-item {
  display: flex;
  flex-direction: row;
  max-width: 700px;
  width: 100%;
  margin: 15px auto;
  border-top: 4px solid #000000;
  border-bottom: 4px solid #000000;
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
  transition: transform 0.6s ease-in-out;
}

.latest-project-picture {
  max-height: 280px;
  max-width: 200px;
  width: 100%;
  border-right: 4px solid #000;
  object-fit: cover;
  box-sizing: border-box;
}

.latest-project-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 15px 0;
  box-sizing: border-box;
}

.latest-project-title {
  text-align: center;
  font-size: 32px;
}

.latest-project-description {
  font-size: 16px;
  margin: 10px;
  text-align: justify;
  padding: 0 10px;
  box-sizing: border-box;
}

.latest-project-languages,
.latest-project-resources {
  text-align: center;
  font-size: 14px;
}

.latest-project-resources a,
.latest-project-resources a:visited {
  color: white;
}

.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-top: 4px solid #000000;
  border-bottom: 4px solid #000000;
  max-width: 700px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  transition: transform 0.6s ease-in-out, border 0.6s ease-in-out;
  box-sizing: border-box;
}

.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;
}

#portal-text {
  position: absolute;
  width: 98%;
  left: 0;
  z-index: 1;
}

#picture {
  height: 192px;
  border: rgb(0, 0, 0) 4px solid;
  border-radius: 6px;
  border-style: solid;
  border-width: 10px;
  border-image: url("https://dl.dropbox.com/scl/fi/6wo0voidugxmgg0a81v20/lace-border-png-37013.png?rlkey=3hn4k762e8y0v6d2v6mwrtcbr&st=5o8bpex4") 60 fill round;
}

/* 
  G
  a
  l
  l
  e
  r
  y
  
  and

  P
  r
  o
  j
  e
  c
  t
  s
*/

.gallery-controls {
  width: 100%;
  display: flex;
  justify-content: center;
}

.gallery-controls * {
  margin: 5px;
  padding: 10px;
}

.gallery,
.projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-details {
  background: linear-gradient(135deg, #00000094 0%, #000000c8 100%);
  border-top: 4px solid #000000;
}

.projects-item,
.gallery-item {
  margin: 15px;
  border: 4px solid #000000;
  width: 400px;
  border-radius: 12px;
  overflow: hidden;
  content-visibility: auto;
}

.gallery-item a {
  padding: 0;
  margin: 0;
  background-color: #000000;
}

.gallery-item:hover,
.projects-item:hover {
  border: 4px solid #640995;
  .gallery-details {
    background: linear-gradient(135deg, #64099546 0%, #640995b7 100%);
    border-top: 4px solid #640995;
  }

  .projects-picture {
    border-right: 4px solid #640995;
  }
}

.gallery-description,
.projects-description {
  padding: 15px;
  text-align: center;
}

.gallery-tags {
  margin-left: 15px;
}

.gallery-picture {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.link-gallery,
.projects-links {
  margin-left: 20px;
  font-size: 25px;
}

.gallery-links,
.projects-links {
  width: 100%;
  text-align: center;
}

#gallery-search,
#gallery-sort {
  border-radius: 20px;
}

/* 
  P
  r
  o
  j
  e
  c
  t
  s
*/

.projects-container {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

.projects-item {
  display: flex;
  flex-direction: row;
  max-width: 700px;
  width: 100%;
  margin: 15px auto;

  transition: transform 0.6s ease-in-out;
}

.projects-item:hover {
  transform: scale(105%);
}


.projects-picture {
  max-height: 350px;
  max-width: 250px;
  border-right: 4px solid #000;
  object-fit: cover;
}

.projects-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 30px 0;
}

.projects-title {
  text-align: center;
  font-size: 45px;
}

.projects-description {
  text-align: left;
  font-size: 23px;
  margin: 10px;
  text-align: justify;
}

.projects-languages {
  text-align: center;
}

.projects-resources a {
  color: white;
}

.projects-resources a:visited {
  color: white;
}

/* 
  R
  e
  s
  p
  o
  n
  s
  i
  v
  e
  
  D
  e
  s
  i
  g
  n 
*/

@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;
  }

  .interests-box h3 {
    width: 25%;
  }
}

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

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

  .interests-box {
    display: flex;
    align-items: center;
    font-size: smaller;
  }

  .table-left {
    width: 100%;
  }

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

  .blinkies-container {
    text-align: center;
  } 
  
  .stamps-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .divider {
    margin-top: 35px;
  }

  .blinkies {
    margin: 6px;
    width: 50%;
  }

  .blinkies:last-child {
    width: 50%;
  }

  .stamps {
    width: 25%;
  }

  .image-mask {
    max-width: 325px;
    max-height: 250px;
  }

}

@media (max-width: 1000px) {

  body {
    font-size: large;
  }

  .interests-box {
    display: flex;
    align-items: flex-start; 
    font-size: 11px;
  }

  .interests-box h3 {
    width: 25%;
    flex-shrink: 0;
  }

  .interests-box ul {
    display: flex;
    flex-wrap: wrap;
    width: 75%;
    padding-left: 10px;
    margin: 0;
  }
  
  .interests-box li:not(.interests-note) {
    display: inline-flex;
    white-space: normal;
  }

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

  .interests-box {
    display: flex;
    align-items: center;
    font-size: large;
  }

  .table-left {
    width: 100%;
  }

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

  .blinkies-container {
    text-align: center;
  } 
  
  .stamps-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .divider {
    margin-top: 35px;
  }

  .blinkies {
    margin: 6px;
    width: 100%;
  }

  .blinkies:last-child {
    width: 100%;
  }

  .stamps {
    width: 100%;
  }

  .gallery-controls {
    flex-direction: column;
    justify-content: center;
    width: 100%;
  }

  .gallery-controls * {
    margin-left: auto;
    margin-right: auto;
  }

  .projects-item {
    flex-direction: column;
  }

  .projects-picture {
    width: 100%;
    max-width: 100%;
    height: 250px;
    border-right: none;
    border-bottom: 4px solid #000;
  }

  .projects-item:hover {
    border-right: none;
    border-bottom: 4px solid #000;
  }

  .projects-title {
    font-size: 32px;
  }

  .projects-description {
    font-size: 16px;
  }
  
  .latest-project-item {
    flex-direction: column;
    width: 92%;
    margin: 10px auto;
  }

  .latest-project-picture {
    max-width: 100%;
    height: 200px;
    border-right: none;
    border-bottom: 4px solid #000;
  }

  .latest-project-item:hover {
    border: 4px solid #640995;
  }

  .latest-project-item:hover .latest-project-picture {
    border-right: none;
    border-bottom: 4px solid #640995;
  }

  .latest-project-title {
    font-size: 24px;
  }

  .latest-project-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;
  }

  .interests-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .interests-box h3 {
    width: 100%;
    margin-bottom: 5px;
  }


  .gallery-item {
    width: 100%;
    margin: 8px;
  }

  .gallery-picture {
    height: 250px;
  }

  .gallery-title {
    font-size: 32px;
  }

  .projects-item {
    margin: 8px auto;
  }

  .projects-details {
    margin: 15px 0;
  }

  .latest-project.container {
    width: 95%;
  }

  .latest-project-item {
    width: 95%;
    margin: 8px auto;
  }

  .latest-project-details {
    margin: 10px 0;
  }

}

/* 
  I
  m
  p
  o
  r
  t
  e
  d
  
  d
  e
  s
  i
  g
  n 
*/

@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;
}

#portal-text,
.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;
}

.image-mask {
  -webkit-mask-image: url(https://i.ibb.co/JjDXBPr/ED5929-CE-1-D66-4-EC4-8-F8-A-14792-D8-F2384.png);
  -webkit-mask-size: 100%;
  -webkit-mask-repeat: no-repeat;
  border-radius: 15px;
  -webkit-mask-position: center;
  width: 100%;
  height: 300px;
  object-fit: cover;
}
