/* Import Font Awesome for social media icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css');

@font-face {
  font-family: 'sary_soft_semiboldregular';
  src: url('/font/sary-soft.soft-semibold-webfont.woff2') format('woff2'),
    url('/font/sary-soft.soft-semibold-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;

}

:root {
  --background-color: #202324;
  --font-color: rgb(0, 255, 0);
  --font-hover-color: green;
  --header-background-color: rgba(0, 0, 0, 0.4);
  --header-background-color-hover: #202324;
  --header-font-color: white;
  --header-font-color-hover: #ddd;
  --image-filter: none;
  --footer-background-color: #000;
  --footer-font-color: #fff;
  --projects-background-color: rgba(0, 0, 0, 0.8);
  --project-link-background-color: var(--projects-background-color);
  --project-border-color: white;
  --project-link-color: white;
  --project-link-color-hover: #666;
  --project-version-color: white;
  --project-search-background-color: rgba(0, 0, 0, 0.678);
  --project-search-input-font-color: white;
  --nav-menu-background-color: rgba(0, 0, 0, 0.8)
}

@media (prefers-color-scheme: light) {
  :root {
    --background-color: #dfdcdb;
    --font-color: green;
    --font-hover-color: rgb(0, 255, 0);
    --header-background-color: rgba(255, 255, 255, 0.5);
    --header-background-color-hover: #ddd;
    --header-font-color: black;
    --header-font-color-hover: #333;
    --image-filter: invert(0.8);
    --footer-background-color: #fff;
    --footer-font-color: #000;
    --projects-background-color: rgba(255, 255, 255, 0.4);
    --project-border-color: black;
    --project-link-color: black;
    --project-link-color-hover: #666;
    --project-version-color: black;
    --project-search-background-color: rgba(255, 255, 255, 0.5);
    --project-search-input-font-color: black;
    --nav-menu-background-color: rgba(255, 255, 255, 0.8)
  }
}


html {
  font-family: 'sary_soft_semiboldregular';
  margin: 0px;
  background-color: var(--background-color);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'sary_soft_semiboldregular';
  color: var(--font-color);
  text-align: center;
}

a {
  color: var(--font-color)
}

a:hover {
  color: var(--font-hover-color);
}

.parallax-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/ricky.png');
  filter: var(--image-filter);
  background-repeat: no-repeat;
  background-size: 90%;
  background-position: center center;
  transform: translateX(calc(-1 * (var(--mouse-x)) / 50)) translateY(calc(-1 * var(--mouse-y) / 50));
  z-index: -1;
  /* Place the background behind other content */
}

@media screen and (max-width: 768px) {
  .parallax-background {
    transform: none;
  }

}

/* Set container styles */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-right: 3%;
  padding-left: 3%;
}

.image-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
  perspective: 800px;
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  backface-visibility: hidden;
  transition: transform 0.5s;
}

/* Set links styles */
.links {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 1rem;
}

.picture {
  display: block;
  width: 100%;
  height: 100%;
}

.card-front {
  transform: rotateY(0);
}

.card-back {
  transform: rotateY(180deg);
}

.image-wrapper:hover .card-front {
  transform: rotateY(-180deg);
}

.image-wrapper:hover .card-back {
  transform: rotateY(0);
}

.home-link,
.for-the-based-link {
  font-size: 2rem;
  margin: 0 0.5rem;
  color: var(--font-color);
  text-decoration: underline;
  transition: all 0.2s ease-in-out;
  font-family: 'sary_soft_semiboldregular';
  font-style: italic;
}

.home-link:hover,
.for-the-based-link:hover {
  color: var(--font-hover-color);
  text-decoration: none;
  font-size: 2.5rem;
}

/* Set social media styles */
.social-media {
  margin-top: 1rem;
  color: white;
  margin-bottom: 30px;
}

.row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 1rem;
}

.row a {
  margin-right: 1rem;
  color: var(--font-color);
  text-decoration: none;
  font-size: 24px;
  transition: transform 0.2s ease-in-out;
}

.row a:hover {
  transform: scale(1.3);
  color: var(--font-hover-color);
}

.line {
  padding: 10px;
}

.line-content {
  color: #333;
  font-size: 0.01rem;
  z-index: -1;
  transition: transform 0.2s ease-in-out;
}

.line:hover+.line-content {
  transform: scale(100);
  color: gray;
}