/*Main Body*/
body {
    position: relative;
    background-color: rgb(0, 0, 0);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/PoS_WebBG.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: blur(7px);
    z-index: -1;
}
/*Main Body*/

/*Heading Text*/
h1 {
    display: block;
    text-align:center;
    margin-top: 120px;
    margin-bottom: 0px;
    font-family: "Fira Code", monospace;
    font-optical-sizing: auto;
    font-weight:800 ;
    font-style: normal;
    font-size: 80px;
    color: rgb(38, 171, 69);
    text-shadow: 0 0 5px rgba(54, 202, 88, 0.8), 0 0 10px rgba(54, 202, 88, 0.6), 0 0 20px rgba(54, 202, 88, 0.4), 0 0 30px rgba(54, 202, 88, 0.2);
}

h2 {
    display: block;
    text-align:center;
    font-family: "Fira Code", monospace;
    font-optical-sizing: auto;
    font-weight:600 ;
    font-style: normal;
    font-size: 40px;
    color: rgb(38, 171, 69);
}

h3 {
    display: block;
    text-align:center;
    font-family: "Fira Code", monospace;
    font-optical-sizing: auto;
    font-weight:600 ;
    font-style: normal;
    font-size: 30px;
    color: rgb(38, 171, 69);
}

h3.Play-txt{
    margin-bottom: 10px;
}
h4{
    display: block;
    text-align:center;
    font-family: "Fira Code", monospace;
    font-optical-sizing: auto;
    font-weight:600 ;
    font-style: normal;
    font-size: 20px;
    margin-bottom: 0px;
    margin-top: 0px;
    color: rgb(38, 171, 69);
}
h5{
    display: block;
    text-align:center;
    font-family: "Fira Code", monospace;
    font-optical-sizing: auto;
    font-weight:400 ;
    font-style: normal;
    font-size: 15px;
    margin-bottom: 0px;
    margin-top: 0px;
    color: rgb(38, 171, 69);
}

/* copy instruction (<p> used instead of <h4>)*/
.copy-instruction {
    display: block;
    text-align: center;
    font-family: "Fira Code", monospace;
    font-weight: 600;
    font-size: 20px;
    margin: 0;
    color: rgb(38,171,69);
}
/*Heading Text*/

/*Info Box*/
div.info-box {
    min-height: 56px;
    width: 750px;
    margin: 20px auto;
    padding: 12px 20px;
    border-radius: 10px;
    background-color: rgb(0, 0, 0);
    position: relative;
    border: 5px solid rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
}

div.info-box::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 5px solid rgb(255, 255, 255);
    border-radius: 10px;
    filter: blur(3px);
    z-index: -1;
}
/*Info Box*/

/*ssh code box*/
div.ssh-box {
    height: 28px;
    width: 470px;
    margin: 20px auto;
    padding: 12px;
    border-radius: 10px;
    background-color: rgb(0, 0, 0);
    position: relative;
    border: 5px solid rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

div.ssh-box::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 5px solid rgb(255, 255, 255);
    border-radius: 10px;
    filter: blur(3px);
    z-index: -1;
}
/*ssh code box*/

/* Typewriter target: apply to any element with the attribute typewriter="true" 
VERY VERY VERY VERY VERY IMPORTANT
*/
[typewriter="true"] {
    text-align: left;
    font-family: "Fira Code", monospace;
    font-optical-sizing: auto;
    font-weight: 400 ;
    font-style: normal;
    font-size: 20px;
    color: rgb(38, 171, 69);
    display: block;
}

/* Centre/center typewriter text when inside the .info-box */
.info-box [typewriter="true"] {
    text-align: left;
    margin: 0;
}

/* Handle long text gracefully: wrap and allow scrolling if content gets too tall */
.info-box {
    /* auto-resize with content */
    height: auto;
}

.info-box [typewriter="true"] {
    white-space: pre-line;
    overflow-wrap: anywhere;   /* break long words/URLs */
    word-break: break-word;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .info-box { width: calc(100% - 32px); }
}

[typewriter="true"]::after {
    content: '|';
    color: rgb(38, 171, 69);
    margin-left: 8px;
    /* simple blinking cursor */
    animation: blink-cursor 1s steps(1) infinite;
}

/* Keyframes for blinking cursor animation */
@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
[typewriter="true"].typing-complete::after {
    animation: none;
    opacity: 0;
}

/* SSH command styling */
.ssh-cmd {
    display: block;
    text-align: left;
    font-family: "Fira Code", monospace;
    font-size: 20px;
    color: rgb(38,171,69);
}

/*Box*/
div.header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding: 30px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background-color: rgba(16, 122, 26, 0.8) !important;
    z-index: 9999 !important;
    box-sizing: border-box !important;
    min-height: 60px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/*Box*/

/*Image logo*/
div.header img {
    height: 80px;
    border-radius: 50px;
    width: auto;
    margin-top: -30px;
    margin-bottom: -35px;
}
/*Image logo*/

/*Box Section*/
div.header.logo-section {
    border-radius: 100px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

div.header.nav-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

div.header .button {
    display: inline-flex;
    font-family: "Fira Code", monospace;
    font-size: 20px;
    margin-right: 20px;
    position: relative;
    z-index: 10;
    min-width: 100px;
    justify-content: center;
    padding: 10px;
}

div.header .button:hover {
    color: rgba(0, 201, 20, 0.8) !important;
}

div.header .button::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid rgb(38, 171, 69);
    border-radius: 5px;
    z-index: -1;
}

/*Box Section*/

/*Link Text*/
div.header a {
    display: inline;
    color: rgb(141, 255, 160);
    text-decoration: none;
    font-family: "Fira Code", monospace;
    font-weight: 600; /*STOP'Y CHANGE'Y THE'Y CODE'Y*/
    font-size: 20px;
    margin: 0;
    position: relative;
    z-index: 2;
}

div.header a:hover {
    color: rgba(0, 201, 20, 0.8);
}

div.header a.base {
    display: inline-flex !important;
    color: rgb(255, 255, 255) !important;
    text-decoration: none;
    font-family: "Fira Code", monospace;
    font-size: 20px;
    font-weight: 600;
    margin: 0 20px 0 0;
    position: relative;
    z-index: 10;
    min-width: 100px;
    justify-content: center;
    padding: 10px;
    text-shadow: 0 0 20px rgba(54, 202, 88, 0.8), 0 0 20px rgba(54, 202, 88, 0.6), 0 0 30px rgba(54, 202, 88, 0.4), 0 0 40px rgba(54, 202, 88, 0.2);
}

div.header a.base:hover {
    color: rgba(0, 201, 20, 0.8) !important;
}

div.header a.base::before {
    content: '';
    position: absolute;
    border: 2px solid rgb(38, 171, 69);
    border-radius: 5px;
}
/*Link Text*/
/*Fixed Heading*/


/* Github logo */
.github-logo {
    display: inline-block;
    margin-left: 18px;
    color: #fff;
    transition: transform 0.15s, color 0.15s;
    text-decoration: none;
}
.github-logo:hover {
    color: #26ab45;
    transform: scale(1.15) rotate(-8deg);
}
.github-logo:active {
    color: #1a7a31;
    transform: scale(0.95) rotate(4deg);
}
/* animated tentacle */
.github-svg { display: inline-block; }
/* Use SVG transform-box so transform-origin is interpreted in SVG coordinates */
.octo-tentacle,
.octo-tentacle-group {
    transform-box: fill-box;
    /* origin near the base of the tentacle (in % of the element's box) */
    transform-origin: 75% 40%;
}
.octo-tentacle { transition: transform 220ms ease; }
.octo-tentacle-group { display: inline-block; }

@keyframes tentacle-wave {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(12deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
}

.github-logo:hover .octo-tentacle-group { animation: tentacle-wave 800ms ease-in-out infinite; }

/* make animation optional for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .github-logo:hover .octo-tentacle-group { animation: none; }
}

/* JS-toggled class to trigger tentacle wave (fallback for touch or non-hover environments) */
.octo-tentacle-group.tentacle-wave-active { animation: tentacle-wave 800ms ease-in-out infinite; }

/* GitHub corner (top-right) */
.site-github-corner {
    position: fixed;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    z-index: 100000;
    color: #151513; /* octocat color */
    text-decoration: none;
}
.site-github-corner svg { display: block; }
.site-github-corner .octo-arm { transform-origin: 130px 106px; }
.site-github-corner:hover .octo-arm,
.site-github-corner .octo-arm.tentacle-wave-active {
    animation: octocat-wave 560ms ease-in-out;
}
@keyframes octocat-wave {
    0%,100% { transform: rotate(0deg); }
    20%,60% { transform: rotate(-25deg); }
    40%,80% { transform: rotate(10deg); }
}
@media (max-width: 500px) {
    .site-github-corner:hover .octo-arm { animation: none; }
    .site-github-corner .octo-arm { animation: octocat-wave 560ms ease-in-out; }
}
/* END Github logo */

/* interactive controls: copy button, toast, theme toggle (to-do) */
.ssh-box { position: relative; }

.copy-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(38,171,69,0.06);
    border: 1px solid rgba(38,171,69,0.25);
    color: rgb(38,171,69);
    font-family: "Fira Code", monospace;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.12s, background 0.12s, box-shadow 0.12s;
    backdrop-filter: blur(4px);
    z-index: 5;
}
.copy-btn:hover { transform: translateY(-50%) scale(1.03); background: rgba(38,171,69,0.08); }
.copy-btn:active { transform: translateY(-50%) scale(0.98); }
.copy-btn:focus { outline: 2px dashed rgba(38,171,69,0.6); outline-offset: 2px; }


.toast {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: #bfffc9;
    padding: 10px 16px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
    font-family: "Fira Code", monospace;
    z-index: 20000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
}
.toast.show { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(-6px); }

/* Responsive */
@media (max-width: 720px) {
    h1 { font-size: 42px; margin-top: 80px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; }
    div.info-box { width: calc(100% - 48px); }
    div.ssh-box { width: calc(100% - 48px); }
    div.header img { height: 56px; margin-top: 0; margin-bottom: 0; }
    .copy-btn { right: 8px; padding: 6px 8px; }
}

/* small focus improvements for KBD users */
a:focus, .copy-btn:focus { box-shadow: 0 0 0 3px rgba(38,171,69,0.12); }
