:root {
    --color1: #0d0d0d;
    --color2: #CC3500;
    --color3: #1a1a1a;
}

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

* {
    scroll-behavior: smooth;
    padding: 0%;
    margin: 0;
    box-sizing: border-box;
    color: #fff;
}

body {
    font-family: 'Raleway-Regular', sans-serif;
    line-height: 1.6;
    background-color: var(--color1);
    background-image: 
        url('images/plus-svgrepo-com.svg'),
        url('images/plus-svgrepo-com.svg');
    background-repeat: repeat-y, repeat-y;
    background-size: 35px 220px, 35px 220px;
    background-position: 10% top, 90% top;
}

header {
    position: sticky;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    padding: 20px 40px;
    background-color: rgba(0, 0, 0, 0.815);
    top: 0;
    z-index: 1000;
}

header img {
    display: flex;
    width: 50vh;
}

nav ul{
    display: flex;
    flex-direction: row;
    gap: 34px;
    list-style: none;
}

nav ul li a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    transition: transform 0.3s, color 0.5s;
}

nav ul li a:hover{
    transition: transform 0.3s, color 0.5s;
    transform: scale(1.2);
    color: var(--color2);
    font-weight: bolder;
}

.hero {
    background: url('images/hero.webp') no-repeat center/cover;
    height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

/* Intro overlay for cinematic effect */
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: black;
    z-index: 5;
    animation: fadeOutOverlay 2s ease forwards;
    pointer-events: none;
}

/* Hero content fade in */
.hero * {
    opacity: 0;
    animation: fadeInContent 2s ease forwards;
    animation-delay: 1.2s; /* wait until overlay starts fading */
}

@keyframes fadeOutOverlay {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes fadeInContent {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.hero img {
    display: flex;
    width: 80vh;
    max-width: 100%; /* responsive */
    align-self: center;
}

.btn {
    display: inline-block;
    background-color: #1a1a1a;
    text-decoration: none;
    padding: 12px 80px;
}
.btn:hover{
    background-color: var(--color2);
}

.heroDiv{
    padding: 22px 30px;
    display: flex;
    flex-direction: column;
    align-self: center;
    justify-content: space-evenly;
    height: 200px;
}

.divA{
    display: flex;
    padding: 52px 30px;
    justify-content: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
#divA1 {
    background:url(images/Promise_red.gif) center;
}
#divA2 {
    background:url(images/fatalerror.gif) center;
}
#divA3 {
    background: url(images/classicsurvivalhorror.gif) center;
}
#divA4 {
    background: url(images/dream.gif) center;
}
#divA5 {
    background: url(images/cold.gif) center;
}


section {
  padding: 60px 20px;
  height: 100vh;
  margin: auto;
  display: flex;
  justify-content: center;
}

.about{
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about2{
    flex-direction: column;
    align-items:start;
    text-align: left;
}
.about3{
    flex-direction: column;
    align-items:end;
    text-align: right;
}

.aInfo{
    margin: 12px;
}
#info {
    padding: 10%;
}

#a1 {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url(images/6.png) no-repeat center/cover;
}
#a2 {
    background: url(images/ani1.webp) no-repeat center/cover;
    overflow: hidden;
}
#a3 {
    background: 
    
        url(images/hero3.jpg) no-repeat left/cover;
    overflow: hidden;
}


.trailer {
    flex-direction: column;
    text-align: center;
    justify-content: center;
}

.features {
    display: flex;
    flex-direction: column;
    text-align: center;
    height:fit-content;
    justify-items: center;
}
.feature {
  background: #1a1a1a;
  padding: 20px;
  border-left: 5px solid #ff003c;
}
.features-grid {
  display: grid;
  align-self: center;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin: 10px;
  width: 80%;
}

.video-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.download {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: url(images/endhero.jpg) center;
}

.platforms {
  display: flex;
  justify-content: center;
  align-content: center;
  gap: 80px;
  margin: 24px 0;
}

.platforms img {
  width: 70px;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.platforms a {
    align-self: center;
}

.platforms img:hover {
  filter: grayscale(0%);
}

footer {
  background: #111;
  text-align: center;
  padding: 20px;
  color: #999;
  font-size: 0.9rem;
}

.thumbnail {
    width: 100%; /* responsive */
    max-width: 450px;
    height: 250px;
    border: 1px solid #cc3500;
    border-radius: 4px;
    transition: 0.3s;
}

.featureCard {
    margin: 10px;
    padding: 22px;
    width: 60%;
    align-self: center;
}

.creators img{
    width: 100px;
    filter: grayscale(50%);
    transition: filter 0.3s;
    margin: 12px;
}

.creators img:hover{
    filter: grayscale(0%);
}

/** LIGHTBOX MARKUP **/
.lightbox {
	/** Default lightbox to hidden */
	display: none;

	/** Position and style */
	position: fixed;
	z-index: 999;
	width: 100%;
	height: 100%;
	text-align: center;
	top: 0;
	left: 0;
	background: rgba(0,0,0,0.8);
}

.lightbox img {
	/** Pad the lightbox image */
	max-width: 90%;
	max-height: 80%;
	margin-top: 6%;
}

.lightbox:target {
	/** Remove default browser outline */
	outline: none;

	/** Unhide lightbox **/
	display: block;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 15px;
    }

    .platforms {
        flex-wrap: wrap;
        gap: 30px;
    }

    iframe {
        width: 100%;
        height: auto;
    }
}
