/* Flip Effect (used in CD logo) */
.flip-container {
    background: transparent;
    display: flex;
	justify-content: center;
    align-items: center;
}

.flip-this {
    position: relative;
    width: 100%;
    height: 100%;
	display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-container:hover .flip-this {
    transition: 0.9s;
    transform: rotateY(360deg);
}

/* Name this Effect */ 
body.image-page {
	background: black;
    image-rendering: pixelated;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.resize-container {
	width: 90%;
	max-width: 700px;
	margin: 0 auto;
	top: 0px;
}

#img {
    /* Centering the TV on the screen */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
	width: auto;
    height: auto;
    max-width: 100%;
}

#img1, #img2 {
	cursor: var(--cursor-main);
}

#over {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
}

#imgtip {
	position: absolute;
	bottom: -20px;
	left: 50%;
	transform: translateX(-50%);
	background-color: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 5px 10px;
	border-radius: 5px;
}

/* ------------ SIGNAL INTRUSION STYLES ------------ */
body.eas-page {
	background-color: rgb(0, 38, 153);
	box-shadow: inset 0 0 490px rgb(81, 28, 28);
	font-family: "EASy Text";
	color: #ffffff;
	text-shadow: -2px 3px 5px #ea94ff, 2px 1px 5px rgba(104, 71, 122,0.9);
	animation-duration: 0.01s;
	animation-name: textflicker;
	animation-iteration-count: infinite;
	animation-direction: alternate;
	image-rendering: pixelated;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	margin: 0;
}

.eas-title {
	font-family: 'EASy Text', sans-serif;
	text-align: center; 
	font-size:50px;
}

.eas-marqueeText {
	font-family: 'EASy Text', sans-serif;
	text-align: center; 
	font-size: 20px;
}

.crt::after {
	content: " ";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background: rgba(18, 16, 16, 0.1);
	opacity: 0;
	z-index: 2;
	pointer-events: none;
	animation: flicker 0.15s infinite;
}

.crt::before {
	content: " ";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
	z-index: 2;
	background-size: 100% 2px, 3px 100%;
	pointer-events: none;
}

/* Overlays */
.static {
	top: 0px;
	left: 0px;
	position: fixed;
	height:100%;
	width:100%;
	background-image: url("../../assets/img/overlays/static.gif");
	background-repeat: repeat;
	background-size: cover;
	pointer-events: none;
	image-rendering: pixelated;
	opacity: 0.05;
	filter: brightness(8);
	z-index: 100;
}

.static-deltarune {
	top: 0px;
	left: 0px;
	position: fixed;
	height: 100%;
	width: 100%;
	background-image: url("../../assets/img/overlays/static_deltarune.gif");
	background-repeat: repeat;
	background-size: cover;
	pointer-events: none;
	image-rendering: pixelated;
	opacity: 0.5;
	filter: brightness(30%);
	z-index: 100;
}

.static-vhs {
	top: 0px;
	left: 0px;
	position: fixed;
	height: 100%;
	width: 100%;
	background-image: url("../../assets/img/overlays/vhs.gif");
	background-repeat: repeat;
	background-size: cover;
	pointer-events: none;
	image-rendering: pixelated;
	opacity: 0.05;
	filter: brightness(8);
	z-index: 100;
}

/* Text Flicker Animation */
@keyframes textflicker {
	from {
	  text-shadow: 3px 0 0 #ea36af, -2px 0 0 #75fa69;
	}
	to {
	  text-shadow: 2px 0.5px 2px #ea36af, -1px -0.5px 2px #75fa69;
	}
}

/* Shaky Animation */

/* Example Usage */
/* animation: shaky 0.25s steps(1) infinite; */
@keyframes shaky {
	0% { transform: translate(1px, 1px)}
	10% { transform: translate(-1px, -2px)}
	20% { transform: translate(-2px, 0px)}
	30% { transform: translate(2px, 1px)}
	40% { transform: translate(1px, -1px)}
	50% { transform: translate(-1px, 2px)}
	60% { transform: translate(-2px, 1px)}
	70% { transform: translate(2px, 1px)}
	80% { transform: translate(-1px, -1px)}
	90% { transform: translate(2px, 2px)}
	100% { transform: translate(1px, -2px)}
}