html { 
  background: url('../img/retro-bg.gif') no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;  /* Ensure the body takes the full height of the screen */
    margin: 0;
    padding: 0;
    font-family: "Tektur", sans-serif;
    font-weight: 400;
    font-size: 1.25em;
    color: #FFFFFF;
}


.bg {
  /* The image used */
  background-image: url('/Links/img/retro-bg.gif');

  /* Full height */
  height: 100%; 

  /* Center and scale the image nicely */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#MainContainer {width: 50%; margin: 0 auto;}

	h2 {font-size: 1.5em; color: #ff25c1 }

	h3 {font-size: 1.3em; color: #ff25c1 }

	a:link, a:visited {color:#d891ef; text-decoration: none}
	a:hover, a:visited:hover {color:#d891ef}

	
	.social-links
	{
		flex-wrap: wrap;
		width: 60%;
		margin: 0 auto;
		text-align: center;
	}

	.social-links a {
		display: inline-block;
		/*margin: 10px 15px;  Slightly adjusted margins for smaller screens */
		color: white;
		text-decoration: none;
		border-radius: 10px;
		border:1px solid #047399;
		padding: 10px;
		font-size: 0.65em;
		background-color: rgba(34,148,250, 0.5);
		margin: 10px 5px 10px 5px;
	}

	.social-links a:hover {
		color: #ccccff; /* Change color on hover */
		background-color: rgba(255,28,171,0.5);
		border:1px solid #ff0068;
	}


	.latest-video, .latest-article, .spotify-track {
		margin-top: 20px;
		text-align: center;
	}

.video-container {
  /* Ensure the container is responsive and maintains aspect ratio */
  position: relative;
  width: 560px;
  height: 315px;
  margin: 0 auto;
  display: block;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#NoodleLogo {width: 100px; margin: 30px auto 0 auto;}

/** ANIMATE LOGO **/

@keyframes spinZoom {
    0% {
        transform: scale(0.5) rotate(0deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

#NoodleLogo img {
    animation: spinZoom 1s ease-out;
}


#BackToTop {display: block;
			color: #FFFFFF;
			background-color: rgb(50,23,77);
			float: right;
			height: 30px;
			width: 100px;
			font-size: 0.65em;
			display: flex;
			justify-content: center; /* Horizontal alignment */
			align-items: center;     /* Vertical alignment */
			padding: 5px;
			border-radius: 10px;
			border:1px solid #414a4c;
			padding: 10px;
			background-color: rgba(50,23,77, 0.5);
			margin: 0 0 20px 0;
}

#PaddingArea {height: 50px; display: block;}

/** Description Space Invaders **/
@keyframes shipMove {
    0% { left: 0; }
    100% { left: 100%; }
}

@keyframes shootUp {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-50px); opacity: 0; }
}

.description {
    font-size: 1.2em;
    line-height: 1.5;
    text-align: center;
    max-width: 80%;
    margin: 0 auto;
    position: relative;
    display: block;
    padding-bottom: 50px; 
}

.description span {
    display: inline-block;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    white-space: pre;
}

#spaceShip {
    width: 50px;
    height: 30px;
    background: url('../img/spaceship.png') no-repeat center center;
    background-size: contain;
}

.laser {
    position: absolute;
    width: 2px;
    height: 20px;
    background-color: #ffff21;
    z-index: 999;
}

#gameOverMessage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1em;
    color: #ffff21;
    font-weight: bold;
    z-index: 1000;  /* Ensure the message is on top */
	animation: blink 1s linear infinite;  /* Apply blink animation */
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


@media (min-width: 1200px) {
  /* Styles for large desktops and wide screens */
  #MainContainer {width: 50%; margin: 0 auto;}
  
}

@media (min-width: 600px) and (max-width: 899px) {
  /* Styles for tablets and small desktops */
	
	#MainContainer {width: 95%; margin: 0 auto}

    .social-links a {
        margin: 10px;
        font-size: 1em; /* Smaller text for mobile */
    }
	.video-container {width: 100%; height: 100%}
}

@media (max-width: 599px) {
  /* Styles for small screens */
  #MainContainer {width: 75%; margin: 0 auto}
  .video-container {width: 100%; height: 300px; display: block}
  .description {font-size: 0.75em}
}

@media (max-width: 480px) {	
	#MainContainer {width: 95%; margin: 0 auto;}
	.video-container {height: 250px; width: 100%; display: block;}
	.description {font-size: 0.75em}

}

/** Background fix **/

/* Mobile specific styles */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;  /* Remove fixed attachment on mobile */
    }
}
