body {
	margin: 0;
	background-color: #1e1e17;
	color: white;
	overflow: hidden;
}

#text_overlay {
	position: absolute;
	top: 5px;
	width: 100%;
	text-align: left;
	padding: 0 5px;
	z-index: 1000;
	font-size: 1rem;
	font-family: 'Nunito Sans', sans-serif;
}

@media (max-width: 1000px)
{
	#text_overlay {
		font-size: 0.7rem;
	}
}

.bottom-left {
	position: absolute;
	bottom: 20px;
	left: 20px;
	z-index: 1000;
	display: flex;
	gap: 10px;
}

.mode-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
}

.btn-blue {
	color: #fff;
	background-color: #00aaff;
}

.btn-white {
	color: #00aaff;
	background-color: #fff;
}

#copyright_overlay {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.7);
	z-index: 1000;
	text-align: center;
	font-family: 'Nunito Sans', sans-serif;
}
#copyright_overlay > a{
	color: rgba(255, 255, 255, 0.7);
}

.bottom-right {
	position: absolute;
	bottom: 20px;
	right: 20px;
	z-index: 1000;
}

.bottom-right img {
	width: 40px;
	height: auto;
}

#layer_earth {
	position: absolute;
	z-index: 1;
	width: 100vw;
	height: 100vh;
	left: 0;
	top: 0;
}

/* Custom modal content styling */
.modal-content {
	background-color: rgba(0, 0, 0, 0.7);
	color: #fff;
	border: none;
	border-radius: 0.5rem;
}

.modal-header,
.modal-body,
.modal-footer {
	border: none;
}

.modal .btn i {
	margin-right: 6px;
}

.modal .close-btn {
	background: none;
	border: none;
	color: #fff;
	font-size: 1.25rem;
}

.modal .form-control {
	background-color: #222;
	color: white;
	border: 1px solid #555;
}

.modal .form-control::placeholder {
	color: #aaa;
}

.vintage-tv {
    filter: grayscale(1) blur(2px) contrast(1.2) brightness(0.8);
}

/* Scanlines overlay */
.scanlines {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.1) 2px,
    transparent 2px,
    transparent 6px
  );
  z-index: 100;
  mix-blend-mode: overlay;
  animation: flicker 0.15s infinite;
}

/* Snow effect */
.snow {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://lanocheciclica.com/tv_static.gif');
  background-size: cover;
  opacity: 0.1;
  z-index: 101;
  animation: snow-flicker 0.2s infinite alternate;
}

/* Optional flicker animation */
@keyframes flicker {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.4; }
}

@keyframes snow-flicker {
  from { opacity: 0.05; }
  to { opacity: 0.1; }
}