@font-face {
  font-family: 'Forte';
  src: url('Fonts/Forte/Forte.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('Fonts/Poppins/Poppins-Medium.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('Fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Cinzel';
  src: url('Fonts/Cinzel_Decorative/CinzelDecorative-Bold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html {
  scroll-padding-top: 70px; /* Adjust this value to match your header's height */
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0d0d0d;
  color: #f0f0f0;
}

h1, h2 {
  color: #ffffff;
  font-family: 'Forte', sans-serif; /* Fonte Regular for headings */
  font-weight: 400; /* Regular weight */
}

h1 {
  font-size: 4rem;
  margin-top: -5px;
}

h2 {
  font-family: 'Forte', sans-serif; /* Keep the existing font */
  font-weight: 400; /* Keep the existing weight */
  color: #ffffff; /* Default color (white) */
  font-size: 2.5rem;
}

h3, h4, h5, h6 {
  color: #00ffcc; /* Keep the existing color */
  font-family: 'Poppins', sans-serif; 
}

/* Paragraphs (Fantasy-style font) */
p {
  font-family: 'Poppins', sans-serif; 
  font-weight: 400; /* Regular weight */
  color: #f0f0f0; /* Keep the existing color */
}

header {
  background-color: black; /* Transparent background at the top */
  height: 70px;
  padding-top: 0.5rem;
  padding-left: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: sticky;
  top: 0;
  z-index: 1000; /* Ensure the header is above other elements */
}

/* Header Styling */
.main-page header {
  background-color: transparent; /* Transparent background at the top */
  height: 70px;
  padding-top: 0.5rem;
  padding-left: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: sticky;
  top: 0;
  z-index: 1000; /* Ensure the header is above other elements */
  transition: background-color 1s ease; /* Smooth fade effect */
}

/* Header style when scrolling */
.main-page header.scrolled {
  background-color: #000; /* Black background when scrolling */
}

header img {
  height: 50px;
  margin-right: 2rem; /* Add some space between the logo and the navigation */
}

nav {
  display: flex;
  gap: 2rem; /* Add spacing between navigation links */
}

nav a {
  text-decoration: none;
  color: #f0f0f0;
  position: relative;
  transition: color 0.3s;
  font-family: 'Poppins', sans-serif; 
  font-size: 100%;
}

nav a::after {
  content: ''; /* Creates the underline */
  position: absolute;
  left: 0;
  bottom: -5px; /* Position the underline slightly below the text */
  width: 0; /* Start with no width */
  height: 2px; /* Thickness of the underline */
  background-color: #00ffcc; /* Color of the underline */
  border-radius: 2px; /* Rounds the corners */
  transition: width 0.3s ease; /* Smooth animation for the underline */
}

nav a:hover {
  color: #00ffcc; /* Change text color on hover */
}

nav a:hover::after {
  width: 100%; /* Expand the underline to full width */
}

section {
  padding: 1rem 2rem;
  max-width: 87%;
  margin: auto;
}

#start {
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.game-card {
  background: #1a1a1a;
  padding: 1rem;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px #00ffcc44;
}

.game-card img {
  width: 100%;
  border-radius: 6px;
}

/* Remove underline and default link color from game cards */
.games-grid a,
.games-grid a:visited,
.games-grid a:active,
.games-grid a:focus {
  text-decoration: none !important;
  color: inherit !important;
  outline: none;
  box-shadow: none;
}

.game-card p {
  margin-top: -10px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea, button {
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
}

button {
  background: #00ffcc;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #00ccaa;
}

footer {
  text-align: center;
  padding: 2rem;
  margin-top: -20px;

  color: #777;
}

.fade-in {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#games {
  margin-top: -50px;
}

/* ------------------------------------------------------------------------*/
/* First Image */
.floating-title {
  position: relative;
  height: 92.5vh;
  width: 100vw;
  overflow: hidden;
  z-index: 0; /* Bakom headern */
  top: -125px; 
  animation: floatTitle 3.5s ease-in-out infinite alternate;
}

/* Image Container */
.floating-title .image-container {
  position: relative;
  width: 100%; /* Full width of the section */
  height: 100%; /* Adjust to fill the reduced height of the parent */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Ensures no overflow */
}

.image-container {
  position: relative;
  width: 100vw;
  height: 92.5vh;
  overflow: hidden;
  z-index: 0;
  margin: 0 auto;
  margin-bottom: 40px;
}

/* Background Image */
.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('Bilder/Mythbreak/Mythbreak_Background.png'); /* Replace with your actual image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0; /* Ensure it's behind everything */
}

/* Title Image */
.title-image {
  position: absolute;
  z-index: 3; /* Above the background */
  animation: float 7s ease-in-out infinite; /* Floating animation */
  max-width: 100%; /* Scale proportionally */
  height: auto; /* Maintain aspect ratio */
}

/* Third Image */
.third-image {
  position: absolute;
  z-index: 2; /* Above the title image */
  max-width: 100%; /* Scale proportionally */
  height: auto; /* Maintain aspect ratio */
  transform: translateY(0); /* Initial position */
  will-change: transform; /* Optimize for performance */
  top: 50px;
  right: 30px;
}

/* Floating Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px); /* Adjust for how much "float" you want */
  }
}

@keyframes float2 {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px); /* Adjust for how much "float" you want */
  }
}

@keyframes floatTitle {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.logo-button {
  display: inline-block; /* Ensures the link behaves like a block for the image */
  text-decoration: none; /* Remove underline from the link */
}

.logo-button img {
  height: 80px; /* Keep the logo size consistent */
  padding-bottom: 5px;
  cursor: pointer; /* Show a pointer cursor to indicate it's clickable */
}

/*------------------------------------------------------------------------------------------------*/
/* News Section */

#news a {
  color: #00ffcc; /* Turquoise color for the link */
  text-decoration: none; /* Remove underline */
  font-weight: bold; /* Optional: Make the text bold */
  transition: color 0.3s ease; /* Smooth transition for hover effect */
}

#news a:hover {
  color: #00ccaa; /* Slightly darker turquoise on hover */
  text-decoration: underline; /* Optional: Add underline on hover */
}

#news article p {
  margin-top: -1rem; /* Remove extra space above the paragraph */
  margin-bottom: 1.5rem;
}

.view-more {
  display: inline-block;
  margin-top: 0rem;
  margin-bottom: 3rem;
  color: #00ffcc;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #00ffcc;
  font-family: sans-serif;
  padding: 0.5rem 0.8rem;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
}

.view-more:hover {
  background-color: #00ffcc; /* Turquoise background */
  color: #000; /* Black text */
}

/*------------------------------------------------------------------------------------------------*/
/* Team Section */

#aboutus {
  margin-bottom: -50px; /* eller ännu mindre, typ 10px */
}

#aboutus a{
  margin-top: -20px; /* eller ännu mindre, typ 10px */
}

#team {
  padding: 1rem;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 5rem;
  margin-top: 2rem;
}

.team-member {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-member .image-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 1rem;
}

.team-member .team-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 0;
  transition: opacity 0s;
}

.team-member .team-img.normal {
  opacity: 1;
  z-index: 1;
}

.team-member .team-img.hover {
  opacity: 0;
  z-index: 2;
}

.team-member:hover .team-img.normal {
  opacity: 0;
}

.team-member:hover .team-img.hover {
  opacity: 1;
}

/* Ensure text is always below the images */
.team-member h3,
.team-member p,
.team-member .social-links {
  position: relative;
  z-index: 3;
}

.team-member img {
  width: 200px; /* Set the width of the image */
  height: 200px; /* Set the height of the image to match the width */
  object-fit: cover; /* Ensures the image fills the square without stretching */
  border-radius: 50%; /* Keeps the circular shape */
  margin-bottom: 1rem;
}

.social-links {
  margin-top: 0.5rem;
}

.social-links a {
  margin: 0 0.5rem;
  display: inline-block;
}

.social-links img {
  width: 34px;
  height: 34px;
  transition: transform 0.3s ease;
}

.social-links a:hover img {
  transform: scale(1.2);
}

/* General styling for all team member names */
.team-name {
  font-size: 1.5rem;
  margin: 0.3rem 0;
  color: white;
}

/* Colors based on roles */
.team-name.programmer {
  color: #ffd2b7; /* Example: Green for Programmers */
}

.team-name.animator {
  color: #ffeeb7; /* Example: Red for Animators */
}

.team-name.vfx {
  color: #ffc5f5; /* Example: Yellow for VFX Artists */
}

.team-name.audio {
  color: #b7eeff; /* Example: Blue for Audio & Music */
}

.team-name.artist {
  color: #ffbab7; /* Example: Teal for Artists */
}

.team-name.marketing {
  color: #e7b7ff; /* Example: Teal for Artists */
}

/*------------------------------------------------------------------------------------------------*/
/* Mythbreak*/

@keyframes wishlist-pulse {
  0% {
    text-shadow: 2px 2px 10px rgba(255,255,255,0.2);
  }
  50% {
    text-shadow: 2px 2px 20px #fffcee, 0 0 10px #D3A425;
  }
  100% {
    text-shadow: 2px 2px 10px rgba(255,255,255,0.2);
  }
}

#mythbreak_vidoebackground {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  top: -80px;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
  max-width: 100vw;
  padding: 0;
}

.mythbreak_video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

#mythbreak_video {
  object-fit: cover;
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: -1;
}

.mythbreak_image-title {
  position: absolute;
  width: 90%;
  height: 80%;
  left: 16%;
  top: -65px;
  transform: translate(-50%, -100%);
  color: #ffffff; /* White text */
  font-family: 'Forte', sans-serif; /* Match your font style */
  font-size: 4rem; /* Adjust size as needed */
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7); /* Add a shadow for better readability */
  z-index: 1; /* Ensure it appears above the video */
  text-align: center;
  pointer-events: none;
  user-select: none; /* Prevent text selection */
}

#mythbreak_wishlist {
  position: absolute;
  top: 60%;
  left: 50%;
  color: #fffcee;
  transform: translate(-50%, -60%);
  font-size: 2.5rem; /* Adjust size as needed */
  font-family: 'Cinzel', 'Poppins'; /* Match your font style */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Add a shadow for better readability */
  z-index: 10; /* Ensure it appears above the video */
  text-align: center;
  padding: 0.5rem 1rem;
  padding-top: 0.8rem;
  border: 5px solid #F1E7BA;
  border-radius: 20px; /* Makes the corners of the border rounded */
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7); /* Skugga på border */
  background-color: #D3A425;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.2s ease, border 0.3s ease, box-shadow 0.3s ease;
  animation: wishlist-pulse 2s infinite;
}

#mythbreak_wishlist:hover {
  animation: none;
  color: #ffffff;
  text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.7);
}

/* Adding the new bottom border */
#mythbreak_wishlist:hover::before {
  height: 3px; /* Thickness of the border */
  background-color: #ffffff; /* Color of the border */
  border-radius: 2px; /* Makes the corners of the border rounded */
  transition: width 1s ease; /* Smooth transition effect for the border */
}

.mythbreak-section h2,
.mythbreak-section h2.gradient-right {
  font-family: 'Cinzel','Poppins';
  background-size: 200% 100%;
  background-position: 0% 0%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  transition: background-position 1s cubic-bezier(.4,0,.2,1);
}

.mythbreak-section h2 {
  background-image: linear-gradient(90deg, #D3A425 0%, #fffcee 100%);
}

.mythbreak-section h2.gradient-right {
  background-image: linear-gradient(270deg, #D3A425 0%, #fffcee 100%);
  background-size: 200% 100%;
  background-position: 100% 0%; /* Start "empty" (gradient off the text) */
}

.mythbreak-image {
  width: 50%;
  border-radius: 10px;
  object-fit: cover;
}


.mythbreak-skiss {
  width: 20%;
  border-radius: 10px;
  object-fit: cover;
  margin-top: -70px;
}

.media-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.media-row.reverse {
  flex-direction: row-reverse;
  align-items: right;
}

.media-text {
  flex: 1;
  font-size: 1rem;
}

.media-text h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.media-row.reverse .media-text {
  text-align: right;
}


/*------------------------------------------------------------------------------------------------*/
/* Rivet*/
.rivet-section {
  position: relative;
  z-index: 1; /* Ensure content is above the video */
  padding: 2rem;
}

.rivet-image-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
  margin: 0 auto;
  margin-bottom: -50px;
  top: -90px;
}

/* Background Image */
.rivet-background-image {
  position: absolute;
  top: 0px;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('Bilder/Rivet/Rivet.png'); /* Replace with your actual image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0; /* Ensure it's behind everything */
}

.rivet-section h1 {
  margin-bottom: 0.5rem;
}

.intro {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.rivet-image {
  width: 50%;
  border-radius: 10px;
  object-fit: cover;
}

.iframe-wrapper {
  padding: 1rem;
  background-color: #1a1a1a;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 2rem;
}

.iframe-wrapper iframe {
  width: 100%;
  height: 315px;
  border: none;
  border-radius: 10px;
}

.view-more:hover {
  background-color: #00ccaa;
}



/*------------------------------------------------------------------------------------------------*/
/* Video Background Section */
.video-background {
  position: relative;
  height: 100vh; /* Full viewport height */
  width: 100%;
  overflow: hidden;
  z-index: -1; /* Place it behind other content */
}

.video-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh; /* Maintain 16:9 aspect ratio */
  height: 100vh;
  transform: translate(-50%, -50%);
  pointer-events: none; /* Prevent interaction with the video */
}

/*------------------------------------------------------------------------------------------------*/
/* Site Contact Section as Footer */
.site-contact {
  width: 100%;
  height: 50px;
  background: #181818;
  color: #fff;
  box-shadow: 0 -2px 16px #000a;
  padding: 1.5rem 0; /* Remove horizontal padding here */
  border-radius: 22px;
}

.site-contact-inner {
  min-height: 100px; /* eller vad som känns bra för layouten */
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px; /* or your previous value */
  margin: 0 auto;
  gap: 2rem;
  padding: 0 2rem;
}

.footer-img {
  height: 100%;
  max-height: 80px; /* Justera efter vad som ser bra ut */
  width: auto;       /* Behåll proportioner */
  flex-shrink: 0;
  align-self: stretch; /* Viktigt: låt den fylla höjden av flexcontainern */
}


.left-img {
  margin-right: 1.5rem;
  margin-left: 4rem;
  margin-top: -15px;
}

.right-img {
  margin-left: 1.5rem;
  margin-right: 4rem;
  height: 60px;
  width: auto;
}

/* Responsive: stack on small screens */
@media (max-width: 900px) {
  .site-contact-inner {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .footer-img {
    margin: 1rem 0;
  }
}

.contact-left,
.contact-right {
  min-width: unset;
  flex: unset;
  text-align: left;
}

.contact-right {
  text-align: right;
}

.site-contact h2 {
  margin-top: -40px;
  margin-bottom: 0.5rem;
  font-family: 'Forte', sans-serif;
  font-size: 1.5rem;
  color: white;
}

.contact-right h2 {
  margin-top: -50px;
}

.contact-left p {
  margin-top: -0px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}

.contact-left a {
  color: #00ffcc;
  text-decoration: none;
}

.contact-left a:hover {
  text-decoration: underline;
}

.site-contact .social-links {
  margin-top: -1px;
  margin-right: 25px;
}

.site-contact .social-links a {
  margin: 0 0.5rem;
  display: inline-block;
  vertical-align: middle;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.site-contact .social-links img {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  transition: transform 0.2s;
}

.site-contact .social-links a:hover img {
  transform: scale(1.15);
}

