/*html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
*/




header {
    text-align: center;
    padding: 0px;
    color: #ff0000;
}

h1:hover {
    text-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000, 0 0 60px #ff0000;
    transition: text-shadow 0.3s ease-in-out;
}

nav {
    width: 50%;
    margin: 0 auto;
    text-align: center;
    word-spacing: 70px;
    padding: 10px;
    background-color: #370000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

nav:hover {
    box-shadow: 0 0 10px 5px rgba(255, 0, 0, 0.8);
}

nav a {
    color: #ff0000;
    text-decoration: none;
    font-size: larger;
}

.side {
    text-align: left;
    color: #ff0000;
}

.profile {
    text-align: center;
    color: #ff0000;
}

.profile img {
    width: 60%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 0px solid #680000;
}

body {
    background-color: #2a0000;
    background-image: url('redwater.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/*div, iframe {
    margin: 455;
} */

button {
    border: none;
    color: rgb(0, 0, 0);
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
}

p {
    color: #ff0000;
}

.button1 {
    position: relative;
    top: 20px;
    left: 0px;
}

#aP {
    color: aqua;
}

a:hover {
    text-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000, 0 0 60px #ff0000;
    transition: text-shadow 0.3s ease-in-out;
}

.buttoncaves {
    position: relative;
    top: 20px;
    left: 40%;
}

.float-left {
    float: left;
    margin: 0 20px 20px 0;
    width: 300px;
    border: 10px solid #680000;
}

.float-right {
    float: right;
    margin: 0 0 20px 20px;
    width: 300px;
    border: 10px solid #680000;
}

.invisible {
    width: 40%;
    height: 70vh;
    padding: 1%;
    margin: 5vh auto;
    text-align: center;
    overflow: hidden;
    object-fit: contain;
}

.rectangle {
    position: relative;
    flex: 0 0 60%;
    height: 70vh;
    background-color: #000000;
    background-image: none;
    background-size: cover;
    background-position: center;
    border: 2px solid #680000;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255,0,0,0.5);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.layout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 5vh auto;
}

.sidebox {
    flex: 0 0 15%;
    height: 70vh;
    background-color: #2a0000;
    border: 2px solid #680000;
    box-shadow: 0 0 15px rgba(255,0,0,0.5);
    transition: box-shadow 0.3s ease;
}

.sidebox:hover {
    box-shadow: 0 0 10px 5px rgba(255, 0, 0, 0.8);
}

.rectangley, .rectangleyy {
    background-color: #2a0000;
    border: 2px solid #680000;
    padding: 1%;
    margin: 0vh auto;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255,0,0,0.5);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    object-fit: contain;
}

.rectangley {
    width: 35%;
    height: 40%;
}

.rectangleyy {
    width: 60%;
    height: 40%;
}

.rectangley img, .rectangleyy img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

.rectangley:hover, .rectangleyy:hover, .rectangle:hover {
    box-shadow: 0 0 10px 5px rgba(255, 0, 0, 0.8);
}

.rectangle img {
    max-width: 100%;
    max-height: 70%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.moon-row {
    margin:10px;
    display: flex;
    align-content: center;
    gap: 20px;
}

.right-content {
    color: white;
    font-size: 0.9em;
    text-align: left;
}

.right-content p {
    margin: 2px 0;
    text-align: left;
}

.moon-widget {
    margin-left: 430px;
}

.sidebox.right-box {
    background-image:url("rednoise1.png");
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.sidebox.left-box {
    background-image:url("rednoise1.png");
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.gif-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #ff0000;
    cursor: pointer;
    font-size: 18px;
    font-family: inherit;
    transition: text-shadow 0.3s ease-in-out;
}

.gif-button:hover {
    text-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000, 0 0 60px #ff0000;
}

.gif-button img {
    width: 30px;
    height: 30px;
}

.sidebox.right-box .gif-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("redwater.gif");
    color: #ff0000;
    border: 0px solid #ff0000;
    box-shadow: 4px 4px 0 #000000;
    padding: 10px 20px;
    border-radius: 0px;
    font-size: 1rem;
    cursor: pointer;
}

.sidebox.right-box .gif-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000000;
}

.iivari-content {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #ff0000;
    text-align: left;
    display: none;
    z-index: 10;
}

.iivari-title {
    font-size: 2em;
    margin-left: 3%;
    color:#ff0000;
    text-align: left;
}

.iivari-text {
    font-size: 1em;
    margin-left: 3%;
    margin-right: 3%;
    color: #ff0000;
    max-width: 100%;
    text-align: left;
}

.tv-container {
    position: relative;
    text-align: center;
    width: 100%;
    height: 100%;
}

.tv-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
}

.tv-screen {
    position: absolute;
    top: 15%;
    left: 20%;
    width: 60%;
    height: 50%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

#protectedContent {
  display: none;
}

#text-box {
      width: 50%;
      height: 20%;
      background-color: #370000;
      color: red;
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 50px auto;
      border-radius: 10px;
      font-size: 20px;
      text-align: center;
}

.video-loader {
  position: absolute;
  top: 15%;
  left: 15%;
  width: 60%;
  height: 50%;
  background-image: url('redno.gif');
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.loader-text {
  color: #ff0000;
  font-size: 2em;
  font-family: Courier New;
  text-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000;
  animation: flicker 1s infinite alternate;
}

@keyframes flicker {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

.video-loader.fade-out {
  animation: fadeOut 1.5s ease forwards;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}

.tv-caption {
  text-align: center;
  color: #c0b9b9;
  font-family: "Courier New", monospace;
  font-size: 14px;
  margin-top: 10px;
  opacity: 0.8;
  animation: flicker 2s infinite;
}

/* ✅ Prevent content overflow inside .rectangle */
.rectangle {
  overflow: hidden;
  position: relative;
}

.rectangle > * {
  max-height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
}

.rectangle > *::-webkit-scrollbar {
  width: 6px;
}

.rectangle > *::-webkit-scrollbar-thumb {
  background-color: rgba(255, 0, 0, 0.4);
  border-radius: 3px;
}

#twin{
   color: #ff0000;
  text-decoration: none;
}


   body#recent-page {
  background-image: url("timemachine.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
