html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: "Exo", sans-serif;
    background-color: #e5e9f4;
    color: #0B1215;
    line-height: 1.6;
    text-align: center;
}

:root {
    font-size: 12px;
    --heading-height: 18em;
}

header {
    position: absolute;
    width: 100%;
    height: var(--heading-height);
    color: #fff;
    padding: 1rem 0;
    overflow: visible;
    z-index: 100;
}

.top {
    position: absolute;
    margin-top: 155px;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(141deg, cyan 0%, rebeccapurple 40%, deeppink 90%);
    transform: skewY(-3.5deg);
    z-index: 101;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.5);
}

.bottom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(141deg, cyan 0%, rebeccapurple 40%, deeppink 90%);
    z-index: 101;
    box-shadow: 0 -5px 10px 0 rgba(0, 0, 0, 0.5);
}

header::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: 6em;
    width: 100%;
    height: calc(var(--heading-height) + 10em);
    transform: skewY(-3.5deg);
    z-index: 99;
    background-repeat: repeat;
    background-position: center;
    background-image: url(../img/header_bg.jpg);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 12px;
}

#header-logo {
    max-width: 100%;
    height: auto;
    z-index: 101;
    filter: drop-shadow(10px 10px 4px rgba(0, 0, 0, 0.5));
}

h1 {
    font-family: "Exo", sans-serif;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: .01em;
    color: #e5e9f4;
    text-align: center;
}

main {
    flex: 1;
    font-family: system-ui, sans-serif;
    padding: calc(var(--heading-height) + 1.5vw) 4em 0;
    color: #e5e9f4;
    z-index: 1;
}

.button-wrapper {
    display: inline-flex;
    border-radius: 10px;
    padding: 3px;
    background: linear-gradient(141deg, cyan 0%, rebeccapurple 40%, deeppink 90%);
    margin-bottom: 60px;
}

.p-button-wrapper {
    display: inline-flex;
    border-radius: 10px;
    padding: 3px;
    background: linear-gradient(141deg, cyan 0%, rebeccapurple 40%, deeppink 90%);
    position: absolute;
    top: 0;
    right: 0;
    margin: 12px 10px;
}

.p-button-wrapper.mobile-only {
    display: none;
}

.button-wrapper:last-child {
    margin-bottom: 0;
}

.glow-button {
    background-color: #0B1215;
    color: #e5e9f4;
    padding: 15px 25px;
    border: none;
    font-family: "Exo", sans-serif;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 10px;
    width: 200px;
    box-shadow: 0 8px 10px 0px rgba(0, 0, 0, 0.5);
}

.p-glow-button {
    background-color: #0B1215;
    color: #e5e9f4;
    padding: 10px 20px;
    border: none;
    font-family: "Exo", sans-serif;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 10px;
    width: 150px;
    box-shadow: 0 8px 10px 0px rgba(0, 0, 0, 0.5);
}

.svg-icon {
    fill: #e5e9f4;
}

.button-wrapper:hover .glow-button svg,
.p-button-wrapper:hover .p-glow-button svg {
    fill: deeppink;
}

.button-wrapper:hover .glow-button,
.p-button-wrapper:hover .p-glow-button {
    box-shadow: 0 0 30px deeppink, 0 0 60px rgba(255, 20, 147, 0.5);
    transition: box-shadow 0.3s ease-in-out;
    color: deeppink;
}

.container {
    display: flex;
    max-width: 1170px;
    margin: auto;
    padding: 0 15px;
    height: 50vh;
}

.container-2 {
    display: flex;
    max-width: 1170px;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 20px;
}

.left-side, .right-side {
    flex: 1;
    height: 50vh;
}
  
.left-side {
    position: relative;
    flex: 2;
    background-color: #0B1215;
    padding: 0px 10px;
    border-radius: 10px;
    text-align: left;
    margin-right: 3px;
    width: 100%;
    box-shadow: 0 8px 10px 0px rgba(0, 0, 0, 0.5);
}

.left-side::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(141deg, cyan 0%, rebeccapurple 40%, deeppink 90%);
    border-radius: 13px;
    z-index: -1;
}

.right-side {
    background-color: #e5e9f4;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 10px;
}

.output-container {
    position: relative;
    flex: 1;
    background-color: #0B1215;
    color: #e5e9f4;
    padding: 0px 10px;
    border-radius: 10px;
    text-align: left;
    margin-right: 3px;
    height: 100%;
    width: 100%;
    box-shadow: 0 8px 10px 0px rgba(0, 0, 0, 0.5);
}

.output-container::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(141deg, cyan 0%, rebeccapurple 40%, deeppink 90%);
    border-radius: 13px;
    z-index: -1;
}

.footer-container {
    max-width: 1170px;
    margin: 5px auto auto auto;
    padding: 0 15px;
}

footer {
    background-color: #0B1215;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    font-size: 18px;
    font-weight: 500;
    background-repeat: repeat;
    background-position: center;
    background-image: url(../img/header_bg.jpg);
    border-bottom: .2em solid #0B1215;
    z-index: 100;
}

#slideTab {
    display: flex;
    position: fixed;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    writing-mode: vertical-lr;
    background-color: #0B1215;
    color: #e5e9f4;
    padding: 20px 5px;
    font-family: "Exo", sans-serif;
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    box-shadow: 0 8px 10px 0 rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.3s ease-in-out;
}

#slideTab:hover {
    box-shadow: 0 0 30px deeppink, 0 0 60px rgba(255, 20, 147, 0.5);
    color: deeppink;
}

#slidePage {
    position: fixed;
    right: -100%;
    top: var(--heading-height);
    width: 100%;
    height: calc(100vh - var(--heading-height));
    background-color: #e5e9f4;
    transition: right 0.5s;
    z-index: 10;
    padding-top: 20px;
}

#closeTab {
    display: none;
    position: absolute;
    left: -5px;
    top: calc(50vh - var(--heading-height) / 2);
    transform: translateY(-50%);
    z-index: 1;
    background-color: #0B1215;
    color: #e5e9f4;
    padding: 20px 5px;
    font-family: "Exo", sans-serif;
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 8px 10px 0 rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.3s ease-in-out;
    writing-mode: vertical-lr;
    transform: translateY(-50%);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border-left: #0B1215 2px;
}

#closeTab:hover {
    box-shadow: 0 0 30px deeppink, 0 0 60px rgba(255, 20, 147, 0.5);
    color: deeppink;
}

#slidePage.open #closeTab {
    display: flex;
}

#typing-container {
    color: #e5e9f4;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    padding: 20px;
    overflow-y: auto;
    max-height: 350px;
}

#user-typing-container {
    color: #e5e9f4;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    padding: 20px;
    overflow-y: auto;
    max-height: 350px;
}

.typed-cursor {
    opacity: 1;
    animation: blink-animation 1s infinite step-start;
}

@keyframes blink-animation {
    50% { opacity: 0; }
}

@media (max-width: 1024px) {
    #header-logo {
        max-width: 360px;
    }
}

@media (max-width: 768px) {
    #header-logo, .glow-button {
        max-width: 180px;
    }

    h1 {
        font-size: 24px;
    }

    .container, .left-side, .right-side {
        flex-direction: column;
        align-items: center;
    }

    .left-side, .right-side {
        height: auto;
        padding: 10px 5px;
        margin-right: 0;
    }

    .left-side {
        margin-bottom: 40px;
    }

    :root {
        --heading-height: 12em;
    }

    .top {
        margin-top: 83px;
    }

    footer {
        font-size: 14px;
        font-weight: 400;    
    }

    .button-wrapper {
        margin-bottom: 40px;
    }
    
    .output-container .p-button-wrapper {
        display: none;
    }
    
    .p-button-wrapper.mobile-only {
        display: flex;
        right: auto;
    }
}