@font-face {
    font-family: teletextFont;
    src: url(MODE7GX4.TTF);
  }
 
 :root {
    --content-font-size: 16px;
    --title-font-size: 42px;
    --square-size: 13px;
    --pink: #ff43c5;
    --black: #040404;
    --purple: #9645ff;
    --dark-purple: #1b0843;
    --content-width: 705px;
    --header-width: 709px;
}
 
  
html {
    color: var(--pink); 
    background-color: black;
    font-family: teletextFont;
}
h1 {
    background: var(--black);
    color: var(--pink); 
    font-size: 40px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.header, .footer {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: var(--header-width);
    background: var(--dark-purple);
    height: 30px;
    font-size: 13px;
    margin: 5px 0 5px 0;
}

.date {
    background: var(--dark-purple);
    color: var(--purple);
    padding: 4px 8px;
}

.title {
    display: flex;
    margin-top: 6px;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 2px;
    width: var(--content-width);
    background: var(--dark-purple);
    height: 70px;
    border: 2px solid var(--pink);

}

.teletext-title {
    background: var(--dark-purple);
}

.title h1 {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 13px;
    width: var(--content-width);
}

.index {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    width: var(--content-width);
    font-size: var(--content-font-size);
}

.index-title {
    width: var(--content-width);
    margin: 12px 0 4px;
    font-size: var(--content-font-size);
    font-size: 13px;
    color: var(--purple);
}

.index-content {
    flex: 1;
    width: 30px
}

.index-content a {
    color: var(--pink);
    text-decoration: none;
}

.index-content a:hover,
.index-content a:focus-visible {
    color: var(--black);
    background: var(--pink);
}

.chess-bard-left,
.chess-bard-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    margin-left: calc(var(--square-size) * -.7);
}

.ascii-square-top, .ascii-square-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    gap: var(--square-size);
    height: var(--square-size);
    line-height: var(--square-size);
    color: var(--pink);
    background: var(--dark-purple);
}

.ascii-square-top .ascii-square-block {
    width: var(--square-size);
    height: var(--square-size);
    background: var(--pink);
}

.ascii-square-bottom {
    margin-left: calc(var(--square-size) * 2);
}

.image {
    width: 330px;
    margin: 10px 0 10px 0;
    white-space: pre;
    font-size: 14px;
    line-height: 14px;
}

.text {
    flex: 1;
    position: relative;
    margin: 10px;
    padding: 5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.text p {
    line-height: 1.4;
}

.text::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 100px;
    border: 8px solid transparent;
    border-right-color: var(--pink);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.text:hover {
    transform: translateX(-6px);
    background: var(--dark-purple);
    box-shadow: 0 0 2px 2px var(--pink);
}

.text:hover::before {
    opacity: 1;
}

.ascii-square-bottom .ascii-square-block {
    width: var(--square-size);
    height: var(--square-size);
    background: var(--pink);
}

.ascii-square-block-last {
   margin-left: 0; 
}

.footer p {
    position: relative;
    white-space: nowrap;

}

.footer a {
    color: var(--purple);
    text-decoration: none;
}



.footer a:hover,
.footer a:focus-visible {
   text-decoration: underline;
}
.marquee-window-title {
    width: 77px;
}

.marquee-window {
    overflow: hidden;
    width: 30%;
    max-width: 220px;
}

.marquee-text {
    display: inline-block;
    min-width: max-content;
    animation: marquee 12s linear infinite;
    color: var(--purple);
}

.page-content {
    width: var(--content-width);
    font-size: 20px;
    line-height: 24px;
}

@keyframes marquee {
    from {
      transform: translateX(100%);
    }
  
    to {
      transform: translateX(-100%);
    }
  
  }