
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Courier, monospace;
    background-image: url('Images/Background.jpg');
    background-size: 100% auto;
    background-position: top center;
    background-repeat: repeat-y;
    background-attachment: fixed;
    color: #f8d0d0;
}

header {
  text-align: center;
  padding: 80px 20px;
  min-height: 250px;
  background: url('Images/Header5.gif') center/cover no-repeat;
  font-family: 'VT323', monospace;
  font-size: 48px; 
  color: #fff;
  text-shadow: 0 0 8px #B82F0F; /* лёгкий неон */
  border-bottom: 3px solid #B82F0F;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* TEXT */
p, h1, h2, h3 {
    color: #ffbbbb;
    text-shadow: none;
}

/* GIF CONTAINER */
.gif-container {
    width: 100vw;
    height: 150px;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    background-color: #1a0003;
    border-top: 2px solid #660000;
    border-bottom: 2px solid #660000;
}

.gif-container img {
    max-height: 100%;
    width: auto;
    flex-shrink: 0;
}

/* BOX */
.box {
  box-sizing: border-box;
  width: 700px;
  max-width: 100%;
  margin: 10px auto 20px;
  padding: 35px;

  color: #ffdddd;
  background: linear-gradient(to bottom, #550000, #220000); 
  border: 4px solid #ff0000;
  border-radius: 12px;


  box-shadow:
    4px 4px 0 #000000,
    -2px -2px 0 #888888 inset;

  font-family: "Courier New", monospace;
  font-size: 16px;
  line-height: 1.5;
}


.box a {
  color: #00aaff;
  text-decoration: underline;
}

.box a:hover {
  color: #ffffff;
  background: #00aaff;
}


.video-frame-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
}

.video-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    transition: height 0.3s ease;
    border: 2px solid #660000;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 0, 0, 0.88);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #220004;
    padding: 20px;
    border-radius: 0;
    border: 2px solid #bb0000;
    color: #ffd6d6;
    z-index: 1001;
}

/* BUTTONS */
.button,
.open-btn,
.clickedbutton,
.scroll-button {
    font-family: "Commodore", monospace;
    background: #330000;
    color: #ffcccc;
    border: 3px solid #770000;
    padding: 10px 20px;
    cursor: pointer;
    width: fit-content;
    text-align: center;
    box-sizing: border-box;
}

.button:hover,
.open-btn:hover,
.scroll-button:hover {
    background: #660000;
    border-color: #aa0000;
    color: #fff0f0;
}

/* Clicked style */
.clickedbutton {
    background: #440000;
    border-color: #990000;
}

/* Scroll Button Specific */
.scroll-button {
    top: 50%;
    transform: translateY(-50%);
    position: fixed;
    right: 320px;
}

/* Button Container */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

/* GALLERY */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item,
.image-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.gallery-item img,
.image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
    transition: transform 0.3s ease;
    border: 2px solid #770000;
}

.gallery-item:hover img,
.image-wrapper:hover img {
    transform: scale(1.05);
}

/* CAPTION PANEL */
.caption-panel {
    position: absolute;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background-color: rgba(25, 0, 0, 0.9);
    color: #ffdddd;
    padding: 15px;
    box-sizing: border-box;
    transition: left 0.3s ease;
    overflow-y: auto;
    font-size: 14px;
}

.image-wrapper:hover .caption-panel,
.gallery-item:hover .caption-panel {
    left: 0;
}

/* SIDEBARS */
.sidebar {
    position: fixed;
    top: 0;
    width: 420px;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 5px;
    background: rgba(15, 0, 0, 0.3);
    z-index: 10;
}

.left-sidebar {
    left: 0;
}

.right-sidebar {
    right: 0;
}

.sidebar img {
    width: 100%;
    height: auto;
    border: 2px solid #aa0000;
    box-sizing: border-box;
}

/* RESPONSIVE */
@media (max-width: 1580px) {
    .left-sidebar,
    .right-sidebar {
        display: none;
    }
}
