@font-face {
        font-family: 'ComicSansMSPixel';
        src: url('fonts/Comic\ Sans\ MS\ Pixel.ttf') format('truetype');
        font-weight: normal;
        font-style: normal;
}

@font-face {
        font-family: 'MesseDusseldorf';
        src: url('fonts/Messe\ Duesseldorf.ttf') format('truetype');
        font-weight: bold;
        font-style: normal;
}


*,
::before,
::after{
    box-sizing: border-box;
}

:root {
        --header-edge-inset: 64px;
        --header-h: 136px;
        --border-thick:24px;
        --top-border-h: 12px;
        --side-border-h: 12px;
        --bottom-border-h: 12px;
        --side-fill: #900c3f;
        --top-fill: #3d1a2a;
}


html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    
}

body { 
        font-family: 'ComicSansMSPixel', sans-serif;
        font-size: 32px;
        background:#2a0f1f;
        margin:0; 
}

strong {
        font-family:'MesseDusseldorf', 'ComicSansMSPixel', sans-serif;
        font-weight: bold;
        font-size: 32px;
}



header {

        position: relative;


        color: #fc9d9d;
    background-color: #900c3f;
    background-image: url(Sprites/Header-export.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: pixelated;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: var(--header-h);

    padding-left: var(--header-edge-inset);
    padding-right: var(--header-edge-inset);
    
    
    overflow: hidden;
}

header > * {
    

    max-height: 100%;
    margin: 0;
    padding: 0;
    line-height: 1;

        
}

header h1 {
        max-height: 100%;
        font-size: 1em;
        line-height: 1;
        margin: 0;
        padding: 0;
        overflow: hidden;
}

header img, header button {
        max-height: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
}

nav {

    display: flex;
    align-items: center;
    justify-content: space-between;
    
}

.main-border{
        position: relative;
        width: 100vw;
        height: calc(100vh - var(--header-h));
        overflow: hidden;
        box-sizing: border-box;
        margin:0;
        background: transparent;
        background: #2a0f1f;
        

}

.main-border > main {
        position: absolute;
        top: var(--border-thick);
        left: var(--border-thick);
        right: var(--border-thick);
        bottom: var(--border-thick);
        background: #2a0f1f;
        overflow: hidden;
        z-index: 1;

}





.border-top {
        position: absolute;
        top: 0; left: 0; right: 0;
        height: var(--top-border-h);
        pointer-events: none;
        z-index: 2;
        image-rendering: pixelated;
        background: 
        url("SCALED/Top_Left_CapX2.png") no-repeat left top,
        url("SCALED/Top_Right_CapX2.png") no-repeat right top,
        var(--top-fill);
        background-size:
        auto 100%,
        auto 100%,
        auto;

}

.border-side {
        position: absolute;
        top: 0;
        bottom: 0;
        width: var(--border-thick);
        pointer-events: none;
        z-index: 2;
        image-rendering: pixelated;
}

.border-side.left {
        
        left: 0;
        background: 
        var(--side-fill)
        url("SCALED/Left_tileX2.png") repeat-y left top;
        background-size:
        auto,
        100% auto;
        
}

.border-side.right {
        right: 0;
        background:
        var(--side-fill)
        url("SCALED/Right_tileX2.png") repeat-y left top;
        background-size: auto, 100% auto;
}



.border-bottom {
        position: absolute;
        bottom: 0; 
        left: 0;
        right: 0;
        height: var(--border-thick);
        pointer-events: none;
        z-index: 2;
        image-rendering: pixelated;
        background: 
        url("SCALED/Bottom_Left_CapX2.png") no-repeat left top,
        url("SCALED/Bottom_Right_CapX2.png") no-repeat right top,
        var(--side-fill)
        url("SCALED/Bottom_TileX2.png") repeat-x 0 0;
        background-size:
        auto 100%, auto 100%, auto, auto 100%;
       
}

.strip-top {
        position:absolute;
        top: var(--top-border-h);
        left: var(--border-thick);
        right: var(--border-thick);
        height: 12px;
        background: #2a0f1f;
        z-index: 3;
}

.strip-bottom {
        position: absolute;
        bottom: var(--border-thick);
        left: var(--border-thick);
        right: var(--border-thick);
        height: 12px;
        background: #2a0f1f;
        z-index: 3;
}

.strip-left {
        position: absolute;
        top: var(--top-border-h);
        left: var(--border-thick);
        bottom: var(--border-thick);
        width: 12px;
        background: #2a0f1f;
        z-index: 3;
}

.strip-right {
        position: absolute;
        top: var(--top-border-h);
        right: var(--border-thick);
        bottom: var(--border-thick);
        width: 12px;
        background: #2a0f1f;
        z-index: 3;
}

.sprite-btn {
        display: inline-block;
        padding: 0;
        margin: 0;
        border: none;
        background: transparent;
        image-rendering: pixelated;
        position: relative;

}

.power_and_filters {
        display: flex;
        flex-direction: row;
        align-items: center;

        gap: 40px;
        
        height: 100%;
        position: relative;
        z-index: 1;
        user-select: none;
}

.power_btn {
        --frame-w: 104px;
        --frame-h:104px;
        --frames: 6;
        width: var(--frame-w);
        height: var(--frame-h);
        background-image: image-set(
                url("SCALED/PowerButtonOff-SheetX2.png") 1x,
                url("SCALED/PowerButtonOff-SheetX2.png") 2x
        );
        background-repeat: no-repeat;
        background-size: calc(var(--frames) * 100%) 100%;

        background-position: 0 0;
        align-self: center;
}

.power_btn[data-state="off"]:hover {
        background-position: calc(-1 * var(--frame-w)) 0;
}

.power_btn[data-state="off"]:active {
        background-position: calc(-2 * var(--frame-w)) 0;
}

.power_btn[data-state="on"] {
        background-position: calc(-3 * var(--frame-w)) 0;
}
.power_btn[data-state="on"]:hover {
        background-position: calc(-4 * var(--frame-w)) 0;
}
.power_btn[data-state="on"]:active {
        background-position: calc(-5 * var(--frame-w)) 0;
}



.left_side_controls {

        display:flex;
        flex-direction: row;
        align-items: center;
        gap:8px;
        
        border: none;
        background: transparent;
        image-rendering: pixelated;
        position: relative;


}

.filters {
        

        --frame-w: 278px;
        --frame-h:128px;
        width: var(--frame-w);
        height: var(--frame-h);
        background-image: image-set(
                url("SCALED/ControlPanelUpscaledx2.png") 1x,
                url("SCALED/ControlPanelUpscaledx2.png") 2x
        );
        background-repeat: no-repeat;
        background-size: 100% 100%;

        display: flex;
        align-items: flex-start;
        justify-content: center;

}

.filter_btns {

        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0;
        padding-left: 26px;
        padding-right: 26px;
        
        
        
        height: 100%
}

.filter_btn {
        --frame-w: 28px;
        --frame-h: 112px;
        --frames: 7;
        width: var(--frame-w);
        height: var(--frame-h);
        background-image: image-set(
                url("SCALED/Toggles-SheetX2.png") 1x,
                url("SCALED/Toggles-SheetX2.png") 2x
        );
        background-repeat: no-repeat;
        background-size: calc(var(--frames) * 100%) 100%;

        background-position: 0 0;
        margin-top: -2px;

}

.filter_btn[data-state="disabled"] {
        background-position: calc(-1 * var(--frame-w)) 0;
}

.filter_btn[data-state="disabled"]:hover {
        background-position: calc(-2 * var(--frame-w)) 0;
}
.filter_btn[data-state="disabled"]:active {
        background-position: calc(-3 * var(--frame-w)) 0;
}

.filter_btn[data-state="enabled"] {
        background-position: calc(-4 * var(--frame-w)) 0;
}
.filter_btn[data-state="enabled"]:hover {
        background-position: calc(-5 * var(--frame-w)) 0;
}
.filter_btn[data-state="enabled"]:active {
        background-position: calc(-6 * var(--frame-w)) 0;
}

.gooicons {

        
        --frame-w: 44px;
        --frame-h: 44px;
        --frames: 33;
        margin-bottom: 74px;
        width: var(--frame-w);
        height: var(--frame-h);
        background-image: image-set(
                url("SCALED/GooIconsX2.png") 1x,
                url("SCALED/GooIconsX2.png") 2x
        );
        background-repeat: no-repeat;
        background-size: calc(var(--frames) * 100%) 100%;

        background-position: 0 0;
}

.gooicons[data-state="off"] {
        background-position: calc(-31 * var(--frame-w)) 0;
}


.header-center {

        flex: 1 1 0;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        min-width: 0;
       
        z-index: 1;
}

.logo_sprite {
        

        --frame-w: 404px;
        --frame-h: 124px;
        width: var(--frame-w);
        height: var(--frame-h);
        background-image: image-set(
                url("SCALED/LOGOUPSCLAEX2.png") 1x,
                url("SCALED/LOGOUPSCLAEX2.png") 2x
        );
        background-repeat: no-repeat;
        background-size: 100% 100%;

        display: flex;
        align-items: center;
        justify-content: center;

}

.header-actions {
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        gap: 24px;
        min-width: 0;
        height: 100%;
        position: relative;
        z-index: 1;
}

.small_buttons {
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        gap:24px;
       
}

.generate_btn_div {
        
        display: flex;
        align-items: flex-end;
       
}

.generate_btn {
        --frame-w: 124px;
        --frame-h: 116px;
        --frames: 5;
        width: var(--frame-w);
        height: var(--frame-h);
        background-image: image-set(
                url("SCALED/GO\ BUTTON-Sheet2X.png") 1x,
                url("SCALED/GO\ BUTTON-Sheet2X.png") 2x
        );
        background-repeat: no-repeat;
        background-size: calc(var(--frames) * 100%) 100%;

        background-position: 0 0;

}

.generate_btn[data-state="off"]:active {
        background-position: calc(-1 * var(--frame-w)) 0;
}

.generate_btn[data-state="on"] {
        background-position: calc(-2 * var(--frame-w)) 0;
}
.generate_btn[data-state="on"]:hover {
        background-position: calc(-3 * var(--frame-w)) 0;
}
.generate_btn[data-state="on"]:active {
        background-position: calc(-4 * var(--frame-w)) 0;
}

.fresh_btn {
        --frame-w: 84px;
        --frame-h: 88px;
        --frames: 5;
        width: var(--frame-w);
        height: var(--frame-h);
        background-image: image-set(
                url("SCALED/freshbutton-SheetX2.png") 1x,
                url("SCALED/freshbutton-SheetX2.png") 2x
        );
        background-repeat: no-repeat;
        background-size: calc(var(--frames) * 100%) 100%;

        background-position: 0 0;

}

.fresh_btn[data-state="off"]:active {
        background-position: calc(-1 * var(--frame-w)) 0;
}

.fresh_btn[data-state="on"] {
        background-position: calc(-2 * var(--frame-w)) 0;
}
.fresh_btn[data-state="on"]:hover {
        background-position: calc(-3 * var(--frame-w)) 0;
}
.fresh_btn[data-state="on"]:active {
        background-position: calc(-4 * var(--frame-w)) 0;
}

.info_btn {
        --frame-w: 84px;
        --frame-h: 88px;
        --frames: 5;
        width: var(--frame-w);
        height: var(--frame-h);
        background-image: image-set(
                url("SCALED/InFO\ Button-SheetX2.png") 1x,
                url("SCALED/InFO\ Button-SheetX2.png") 2x
        );
        background-repeat: no-repeat;
        background-size: calc(var(--frames) * 100%) 100%;

        background-position: 0 0;

}

.info_btn[data-state="off"]:active {
        background-position: calc(-1 * var(--frame-w)) 0;
}

.info_btn[data-state="on"] {
        background-position: calc(-2 * var(--frame-w)) 0;
}
.info_btn[data-state="on"]:hover {
        background-position: calc(-3 * var(--frame-w)) 0;
}
.info_btn[data-state="on"]:active {
        background-position: calc(-4 * var(--frame-w)) 0;
}

.info_window {
        position: absolute;
        top: 8px;
        right: 16px;
        width: 360px;
        height: 240px;
        background: transparent;
        image-rendering: pixelated;
         z-index: 2000;
         user-select: none;
        

}

.info_window .corner,
.info_window .edge {
        position: absolute;
        image-rendering: pixelated;
        pointer-events: none;
        z-index: 2;

}

:root {
        --info-corner-size: 8px;
        --info-border-thickness: 2px;
        --info-border-color: #ccafaf;
        --info-body-bg: #feceab;
}

.info_window .corner.tl { top:0; left: 0; width:var(--info-corner-size); height: var(--info-corner-size);
background: url("SCALED/info_corner_TLX2.png") no-repeat 0 0 / 100% 100%;}
.info_window .corner.tr { top:0; right: 0; width:var(--info-corner-size); height: var(--info-corner-size);
background: url("SCALED/info_corner_TRX2.png") no-repeat 0 0 / 100% 100%;}
.info_window .corner.bl { bottom:0; left: 0; width:var(--info-corner-size); height: var(--info-corner-size);
background: url("SCALED/info_corner_BLX2.png") no-repeat 0 0 / 100% 100%;}
.info_window .corner.br { bottom:0; right: 0; width:var(--info-corner-size); height: var(--info-corner-size);
background: url("SCALED/info_corner_BRX2.png") no-repeat 0 0 / 100% 100%;}

.info_window .edge.top {
        top:0; left:var(--info-corner-size); right: var(--info-corner-size);
        height: var(--info-border-thickness);
        background: var(--info-border-color);
}
.info_window .edge.bottom {
        bottom:0; left:var(--info-corner-size); right: var(--info-corner-size);
        height: var(--info-border-thickness);
        background: var(--info-border-color);
}
.info_window .edge.left {
        left:0; top:var(--info-corner-size); bottom: var(--info-corner-size);
        width: var(--info-border-thickness);
        background: var(--info-border-color);
}
.info_window .edge.right {
        right:0; top:var(--info-corner-size); bottom: var(--info-corner-size);
        width: var(--info-border-thickness);
        background: var(--info-border-color);
}

.info_window .info_body {
        font-family: 'ComicSansMSPixel', sans-serif;

        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 16px;

        position: absolute;
        top: var(--info-border-thickness);
        left:var(--info-border-thickness);
        right:var(--info-border-thickness);
        bottom:var(--info-border-thickness);
        
        background:var(--info-body-bg);
        color:#3d1a2a;
        z-index: 1;
        
        padding: 6px;
        box-sizing: border-box;
        overflow:hidden;
        
        
}

.info_window strong {
        color: #900c3f;
}

.info_content {
        display: flex;
        flex-direction: row;
        width: 100%;
        height: 100%;
        gap: 16px;
        font-size: 0.8em;
}

.info_slideshow {
        flex: 0 0 80px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 8px;
}
.info_fields {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 8px;
        font-size: 1em;
        color: #3d1a2a;
}

.info_window.raise {z-index:3000; }

.contact_btn {
        --frame-w: 84px;
        --frame-h: 88px;
        --frames: 5;
        width: var(--frame-w);
        height: var(--frame-h);
        background-image: image-set(
                url("SCALED/Contact\ button-SheetX2.png") 1x,
                url("SCALED/Contact\ button-SheetX2.png") 2x
        );
        background-repeat: no-repeat;
        background-size: calc(var(--frames) * 100%) 100%;

        background-position: 0 0;

}

.contact_btn[data-state="off"]:active {
        background-position: calc(-1 * var(--frame-w)) 0;
}

.contact_btn[data-state="on"] {
        background-position: calc(-2 * var(--frame-w)) 0;
}
.contact_btn[data-state="on"]:hover {
        background-position: calc(-3 * var(--frame-w)) 0;
}
.contact_btn[data-state="on"]:active {
        background-position: calc(-4 * var(--frame-w)) 0;
}

.contact_window .contact_form {
        display: flex;
        flex-direction: column;
        gap: 12px;
        font-family: inherit;
        font-size: 1em;
        color: #3d1a2a;

}

/* .contact_window .top_tab {
        color: #fc9d9d;
        background-color: #900c3f;

        border-bottom: 3px solid #3d1a2a;
        

        display: grid;
        grid-template-columns: 1fr 1fr;
        
        align-items: center;

        
        width: 100%;
        height: 50px;

        padding: 0 5px;
        box-sizing: border-box;
} */



.contact_window input[type="text"],
.contact_window input[type="email"],
.contact_window textarea {
        width: 100%;
        padding: 4px;
        font-size: 1em;
        font-family: inherit;
        border: 2px solid #900c3f;
        background: #ccafaf;
       color: #3d1a2a;
       box-sizing: border-box;


}

.contact_window button[type="submit"] {

        margin-top: 8px;
        align-self: flex-end;
        background: #900c3f;
    color: #e84a5f;
    font-family: 'ComicSansMSPixel', sans-serif;
    font-size: 1em;
    border: 4px solid #3d1a2a;
    border-radius: 4px;
    padding: 8px 24px;
    cursor: pointer;
    box-shadow: 0 2px 0 #3d1a2a;
    
}

.contact_window button[type="submit"]:hover {
    background: #feceab;
    color: #900c3f;
}

.contact_waiting {
        color:#2a0f1f;
        font-size: 1em;
        text-align: center;
        padding: 24px;
}

.contact_success {
        color: #99b898;
        font-size: 1em;
        text-align: center;
        padding: 24px;
}

.contact_error {
        color: #e84a5f;
        font-size: 1em;
        text-align: center;
        padding: 24px 0;
}

.speaker_sprite {
        --frame-w: 172px;
        --frame-h: 36px;
        width: var(--frame-w);
        height: var(--frame-h);
        background-image: image-set(
                url("SCALED/SpeakerX2.png") 1x,
                url("SCALED/SpeakerX2.png") 2x
        
        );
        background-repeat: no-repeat;
        background-size: 100% 100%;
        image-rendering: pixelated;
        margin: 0px 0px 0 0;
        position: absolute;
        top: 0;
        right: 0;
        z-index: 2;


}

main {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;

        overflow: auto;
        z-index: 1;
        background: #2a0f1f;

}

main[data-state="on"] {
        background: linear-gradient(to top, #2a0f1f, #2a0f1f, #99b898, #99b898);
        background-size: cover;
        background-size: 100% 1px;
        background: #99b898;
}

.power_button{
        color:#99b898;

}



.filter_button{
        color: #99b898;

                
}


.generate_button{
        color: #99b898;
        
}

.fresh_button{
        color:#e84a5f;
}

.window_border {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 10;
}

.window_border_tl {
        position: absolute;
        top: 0; left: 0;
        width: 12px; height: 10px;
        background: url('SCALED/Window_Border_TLX2.png') no-repeat 0 0 / 100% 100%;
        z-index: 1;
}

.window_border_tr {
        position: absolute;
        top: 0; right: 0;
        width: 12px; height: 10px;
        background: url('SCALED/Window_Border_TRX2.png') no-repeat 0 0 / 100% 100%;
        z-index: 1;
}

.window_border_bl {
        position: absolute;
        bottom: 0; left: 0;
        width: 12px; height: 10px;
        background: url('SCALED/Window_Border_BLX2.png') no-repeat 0 0 / 100% 100%;
        z-index: 1;
}

.window_border_br {
        position: absolute;
        bottom: 0; right: 0;
        width: 12px; height: 10px;
        background: url('SCALED/Window_Border_BRX2.png') no-repeat 0 0 / 100% 100%;
        z-index: 1;
}

.window_border_fill_top {
        position: absolute;
        top: 0; left: 10px; right: 10px;
        height: 10px;
        background: url('SCALED/Window_Border_Fill_Top.png') repeat-x 0 0;
        z-index: 1;

}

.window_border_fill_right {
        position: absolute;
      top: 10px; bottom: 10px; right: 0;
       width: 12px;
        background: url('SCALED/Window_Border_Fill_R.png') repeat-y 0 0;
        z-index: 1;

}
.window_border_fill_bottom {

        position: absolute;
        bottom: 0; left: 10px; right: 10px;
        height: 10px;
        background: url('SCALED/Window_Border_Fill_B.png') repeat-x 0 0;
        z-index: 1;

}
.window_border_fill_left {
        position: absolute;
        top: 10px; bottom: 10px; left: 0;
        width: 12px;
        background: url('SCALED/Window_Border_Fill_L.png') repeat-y 0 0;
        z-index: 1;
}

.window {
        color: #e84a5f;
        background: transparent;

        border: 6px #2a0f1f;
        border-radius: 6px;

        display:flex;
        flex-direction: column;

        position: absolute;

        width: 400px;
        height: 400px;
        }

.window.dragging .content_controls,
.window.dragging img,
.window.dragging video,
.window.dragging audio
{
    pointer-events: none;
}

.top_tab{
        position: absolute;
        top: 0;
        left: -6px;
        width: calc(100% + 12px);

        display:flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
       
        height: 48px;
        z-index: 2;
       
       
       
        image-rendering: pixelated;
        background: url("SCALED/tab_fillX2.png") repeat-x left top;
        background-size:
        100% 100%;
        z-index: 2;
        box-sizing: border-box;
        overflow: visible;
        
}

.tab-edge.left,
.tab-edge.right {
        width: 12px;
        height: 48px;
        background-repeat: no-repeat;
        background-size: 100% 100%;
        flex: 0 0 auto;
}
.tab-edge.left {
        position: relative;
        left:-12px;
        background-image: url('SCALED/Window_tab_left_X2.png');
}
.tab-edge.right {
        position: relative;
        right: -12px;
        background-image: url('SCALED/Window_tab_right_X2.png');
}

.tab_contents {

        display: flex;
        flex-direction: row;
        align-items: center;
        
        width: 100%;
        
       
       
        min-width: 0;
}


.title{
        flex: 1 1 0;
        min-width: 0;
        
        
        font-family: 'MesseDusseldorf', sans-serif;
        font-size: clamp(12px, 4vw, 24px);
        font-weight: bold;
        justify-self: start;
        white-space: nowrap;
        text-align: left;
        text-overflow:ellipsis;
        align-self: center;
        
        color: #e84a5f;
        
        min-width: 0;
        
       pointer-events: none;

        overflow: hidden;
        line-height: 1;
        
    
    
    
}

.date{
        flex: 0 0 auto;
        
        min-width: 80px;
        justify-self: center;
        text-align: center;        
        font-weight: bold;
        text-decoration: underline;
        font-size: 16px;
        font-family: 'MesseDusseldorf', sans-serif;
        padding-right : 8px;
        pointer-events: none;
        min-width: 0;
        color: #2a0f1f;
        
        
        
}



.top_tab_buttons{

        
        flex: 0 0 auto;
        min-width: 0;
        grid-column: 3;
        justify-self: end;
        display: flex;
        gap: 8px;
        

      
}

.maximize_button {
        width: 28px;
        height: 24px;
        border: none;
        background: transparent;
        background-image: url("SCALED/MaxmizeUpscaled-exportX2.png");
        background-repeat: no-repeat;
        background-size: 100% 100%;
        
        
        cursor: pointer;


}
.exit_button {
        width: 28px;
        height: 24px;
        border: none;
        background: transparent;
        background-image: url("SCALED/CloseUpscaled2X.png");
        background-repeat: no-repeat;
        background-size: 100% 100%;
        
        cursor: pointer;

}

.content_area {
        position: relative;
        flex: 1 1 auto;
        margin-top: 48px;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: stretch;
        justify-content: stretch;
}


.content{
        color: #2a0f1f;

       
        background-color: #feceab;

        
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-bottom: 12px;
        padding-left: 32px;
        padding-right: 32px;
        padding-top: 12px;
        width: 100%;
        height: 100%;
        flex: 1 1 auto;
}



.content.no-padding {
        padding-bottom: 0;
        
}



.content iframe {
        width:100%;
        height: 100%;
        border: none;
        display: block;
}

.unity_canvas {
        width: 100%;
        height: 100%;
        display: block;
        
}

.content_controls{

        color: #feceab;
        background-color: #2a0f1f;

        width: 85%;
        height: 92%;
        margin:0 ;
        padding: 0;
        
        box-sizing: border-box;
        border: 8px solid #3d1a2a;

}


.bottom_buttons {
        width: 100%;
        background: transparent !important;
        position: relative;
        right: 0;
        bottom: 0;
        display: flex;
        justify-content: flex-end;
        align-self: flex-end;
        right: 0;
        bottom: 0;
        z-index: 3;
        background: none;
}

.download_btn,
.about_btn {

        width: 56px;
        height: 48px;
        background: transparent;
        border: none;
        background-repeat: no-repeat;
        background-size: 112px 48px;
        
        image-rendering: pixelated;
}

.download_btn {
        background-image: url('SCALED/DownloadButton-SheetX2.png');
        background-position: 0 0;

}

.about_btn {
        background-image: url('SCALED/About\ Button-Sheet2X.png');
        background-position: 0 0;
}

.download_btn:hover {
        background-position: -56px, 0;
}
.about_btn:hover {
        background-position: -56px, 0;
}


.about_window{

        color: #fc9d9d;
        background-color: #feceab;

        

        display:flex;
        flex-direction: column;

        position: absolute;

        width: 400px;
        height: 400px;
}

.about_window_tab{
        color: #3d1a2a;
        background-color: #feceab;

        
        

        display: flex;
        justify-content: space-between;
        align-items: center;

        flex: 0 0 50px;
        width: 100%;

}

.about_window_content{

        color: #fc9d9d;
        background-color: #feceab;

        

        display: flex;
        justify-content: center;
        align-items: center;

        width: 100%;
        flex: 1 1 auto;
        padding: 32px 12px 12px 32px;
        font-size: 0.7em;
        padding: 3px;
}

.custom-content-control {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    border: none;
    background: transparent;
    cursor: pointer;
    image-rendering: pixelated;
}

.maximized{
        z-index: 10000000000000000000000;
}

.locked *:not(.power_btn) {
    pointer-events: none !important;
    cursor: default !important;
    opacity: 1;
}

.positioned{
        opacity: 1;
}

.draggable{
opacity: 1;
}

 .crt::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: repeating-linear-gradient(
        to bottom,
        rgba(61, 26, 42, 0) 0px, 
        rgba(42, 15, 31, 0.25) 3px,
        transparent 3px,
        transparent 5px
  );

  background-repeat: repeat;
  background-size: 100% 5px;
  pointer-events: none;
  animation: scanlines-move 600ms steps(5, end) infinite;
        image-rendering: pixelated;
        will-change: transform;
        transform: translateZ(0);
        z-index: 200000000000;
}

@keyframes scanlines-move {
        from {
                background-position: 0 0;
        }
        to {
                background-position: 0 5px;
        }
}

@keyframes flicker {
  0% {
  opacity: 0.27861;
  }
  5% {
  opacity: 0.34769;
  }
  10% {
  opacity: 0.23604;
  }
  15% {
  opacity: 0.10626;
  }
  20% {
  opacity: 0.18128;
  }
  25% {
  opacity: 0.10626;
  }
  30% {
  opacity: 0.18128;
  }
  35% {
  opacity: 0.23604;
  }
}

.crt::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(61, 46, 22, 0.1);
  opacity: 0;
  z-index: 200000000000;
  pointer-events: none;
  animation: flicker 0.15s infinite;
}

@media screen and (max-width: 768px) {
    /* Hide all existing content */
    header,
    .main-border,
    main,
    .border-top,
    .border-side,
    .border-bottom,
    .strip-top,
    .strip-bottom,
    .strip-left,
    .strip-right,
    .window,
    .info_window,
    .contact_window,
    .about_window {
        display: none !important;
    }

    /* Mobile body styling */
    body {
        margin: 0;
        padding: 0;
        background: #2a0f1f;
        color: #fc9d9d;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        font-family: 'ComicSansMSPixel', sans-serif;
        text-align: center;
        overflow: hidden;
    }

    .mobile-only {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding: 20px;
        max-width: 90%;
    }

    .mobile-text {
        font-size: 24px;
        line-height: 1.4;
        color: #e84a5f;
    }

    .mobile-subtitle {
        font-size: 18px;
        color: #ccafaf;
        margin-top: 10px;
    }
}

/* Hide mobile content on desktop */
.mobile-only {
    display: none;
}


.contact_window input[type="text"],
.contact_window input[type="email"], 
.contact_window textarea {
    width: 100%;
    padding: 4px;
    font-size: 1em;
    font-family: inherit;
    border: 2px solid #900c3f;
    background: #ccafaf;
    color: #3d1a2a;
    box-sizing: border-box;
    cursor: text; /* Ensure text cursor */
    pointer-events: auto; /* Ensure inputs are interactive */
    user-select: text; /* Allow text selection */
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.contact_window textarea {
    resize: vertical; /* Allow vertical resizing */
    overflow-y: auto; /* Enable scrolling */
}
