/*

body {
    background: black;
    margin: 0;
    padding: 0;
}

.teletext-container {
    margin: 20px auto;
    width: 640px;
    /* example width for a “40 columns” teletext feel
    display: flex;
    flex-direction: column;
    font-family: monospace;
    font-size: 16px;
    line-height: 20px;
    color: #0f0;
    /* retro green text
}

.teletext-row {
    display: flex;
    flex-direction: row;
}

.cell {
    width: 16px;
    text-align: center;
}
*/

/*
.reference-list {
    display: flex;
    /* Use Flexbox for side-by-side columns 
    gap: 1rem;
    /* Optional space between columns 
}

.reference-col {
    flex: 1; /* Each column expands to fill available space */
/* Alternatively: width: 50%;          /* fixed 50% width for two columns
    
}

.ref-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* Space between the colored square and text 
    margin-bottom: 1rem;
}
*/


@font-face {
    font-family: 'unscii-16';
    src: url('TELETEXT_APP/unscii-16.ttf') format('truetype');
}

@font-face {
    font-family: 'PixelCaps-LOnE';
    src: url('TELETEXT_APP/PixelCaps-LOnE.ttf') format('truetype');
}


/* Basic button styling for images and text */
.image-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-block;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    width: 14px;
    /* Adjust as necessary */
    height: 14px;
    vertical-align: middle;
}

.image-button:hover {
    opacity: 0.4;
    /* subtle hover effect */
}

.HeaderLogo-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-block;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    width: 84px;
    height: 64px;
    background: #d56c00;
    /* Teletext orange block */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: bold;
    margin: -0.5rem 1rem 0 0rem;
    vertical-align: middle;
}

.HeaderLogo-button:hover {
    opacity: 0.4;
    /* subtle hover effect */
}


.HeaderLanguage-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-block;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    width: 24px;
    height: 24px;
    background: #ff0;
    display: flex;
    align-items: top;
    justify-content: center;
    font-size: 16px;
    line-height: 20px;
    margin: -0.5rem 0 0 6rem;
}

.HeaderLanguage-button:hover {
    opacity: 0.4;
    /* subtle hover effect */
}


/* **********************Popup hidden by default************************** */

/* The overlay itself */
.overlay {
    display: none;
    /* hidden by default */
    position: absolute;
    /* fill the .phone-mockup */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* semi-transparent black */
    z-index: 500;
    /* below the popup, but above the normal content */
}

/* Show the overlay when toggled */
.overlay.show {
    display: block;
}

.popup-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0px;
    width: 200px;
    line-height: 40px;
    background-color: #303030;
    color: #fff;
    border: 2px solid #303030;
    border-radius: 0px;
    padding: 0.5rem;
    z-index: 999;
    /* on top of other elements */
}

.popup-menu1 {
    display: none;
    position: absolute;
    top: 70px;
    left: 0px;
    width: 200px;
    line-height: 40px;
    background-color: #303030;
    color: #fff;
    border: 2px solid #303030;
    border-radius: 0px;
    padding: 0.5rem;
    z-index: 999;
    /* on top of other elements */
}

.popup-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.popup-menu1 ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Show class toggles the menu on */
.popup-menu.show {
    display: block;
}

.popup-menu1.show {
    display: block;
}


/* Give each “Menu-popupitem” a bit of structure */
.menu-popupitem {
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-popupitem1 {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* The top “bar” line that’s always visible */
.menu-popupline {
    background-color: #565656;
    /* or any color you like */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    /* indicates clickable */
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.2rem;
    /* small gap between bars */
    border-radius: 4px;
}

.menu-popupline1 {
    background-color: #565656;
    /* or any color you like */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    /* indicates clickable */
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.2rem;
    /* small gap between bars */
    border-radius: 4px;
}

/* The text on the left */
.menu-popuptext {
    font-weight: bold;
    /* e.g., bold text, or whatever style you prefer */
}

/* The “+” or “−” icon on the right */
.expand-popupicon {
    margin-left: auto;
    /* push it to the far right */
    font-weight: bold;
    padding-left: 0.5rem;
    user-select: none;
    /* don’t let user select the symbol easily */
}

.expand-popupicon1 {
    margin-left: auto;
    /* push it to the far right */
    font-weight: bold;
    padding-left: 0.5rem;
    user-select: none;
    /* don’t let user select the symbol easily */
}

/* The hidden submenu container */
.popup-submenu {
    display: none;
    /* hidden by default */
    background-color: #505050;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.popup-submenu1 {
    display: none;
    /* hidden by default */
    background-color: #505050;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

/* The text on the left */
.submenu-popuptext {
    font-weight: normal;
    /* e.g., bold text, or whatever style you prefer */
}

.popup-code {
    color: rgb(0, 170, 170);
    font-weight: normal;
}

/* We’ll toggle this class in JS to make it visible */
.popup-submenu.show {
    display: block;
}

.popup-submenu1.show {
    display: block;
}


/* ******************************* Popup MENU_100 wrapper hidden by default *********************/


.popup-menu100 {
    position: absolute;
    top: 70px;
    /* adjust to your app-bar height */
    left: -1px;
    right: -1px;
    /* adjust as needed */
    width: 101%;
    max-width: 600px;

    display: none;
    /* Keep hidden until triggered */
    z-index: 8888;
    /* Make sure it’s on top */
}

/* Each “box” inside the popup */
.popup-box {
    background: color #4d4d4d;
    background: #303030;
    border-radius: 0px;
    margin-bottom: 230px;
    padding: 10px;
}

/* Each “box” inside the popup */
.popup-box1 {

    background: #303030;
    border-radius: 0px;
    margin-bottom: 0px;
    padding: 20px;
    padding-bottom: 60px;
}

/* Input row */
.popup-input-row {
    display: flex;
    border: 0px;
    color: transparent;
    text-align: center;
}

#pageNumberInput {

    border: none;
    width: 100%;
    font-size: 38px;
    background-color: #303030;
    color: #f20000;
    font-family: inherit;
    text-align: center;
    padding: 2px;
}

#pageNumberInput::placeholder {
    /* Optional color for the placeholder */
    color: #d20000;
    animation: blink 1s steps(1, start) infinite;
}

#pageNumberInput::-webkit-input-placeholder {
    animation: blink 1s steps(1, start) infinite;
}

@keyframes blink {

    0%,
    49% {
        visibility: visible;
        color: #999;
    }

    50%,
    100% {
        visibility: hidden;
        color: transparent;
    }
}


/* Keypad is a simple grid */
.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 8px;

}

.keypad button {
    font-family: inherit;
    font-size: 22px;
    color: #f5f5f5;
    padding: 8px;
    cursor: pointer;
    background: #707070;
    border: 2px solid #303030;
    border-radius: 4px;
}

.keypad button:hover {

    color: #6d6d6d;
    background: #0b0b0b;
    border: 2px solid #404040;
    border-radius: 4px;
}