@keyframes fade-in {
    from {
        opacity: 0;
    }
}

@keyframes fade-out {
    to {
        opacity: 0;
    }
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {

    0%,
    100% {
        border-color: transparent;
    }

    50% {
        border-color: #00eaff;
    }
}

::view-transition-old(root) {
    animation: 0.5s ease-out both fade-out;
}

::view-transition-new(root) {
    animation: 0.5s ease-in both fade-in;
}


body {
    background-color: black;
    font-family: monospace;
    color: #00eaff;
    padding-left: 3%;
}

header {
    font-family: monospace;
    color: #00eaff;
    font-size: 30px;
    text-shadow: 0 0 12px #00eaff;

}

.sidebar a {
    font-family: monospace;
    color: #ffffff;
    font-size: 70%;
}

.menu-btn {
    background-color: #000000;
    font-family: monospace;
    color: #00eaff;
    padding: 10px 15px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    border-radius: 10px;
    font-size: large;

}

.menu-btn:hover {
    background-color: #1a1d23;
}

.sidebar {
    height: 100%;
    width: 300px;
    position: fixed;
    top: 0;
    left: -300px;
    background-color: #000000;
    padding-top: 50px;
    z-index: 9999;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 5px #ffffff;
}

.sidebar.active {
    left: 0;
}

.sidebar .close-btn {
    position: absolute;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 36px;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

.sidebar-links a {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 18px;
    color: #ffffff;
    display: block;
    transition: 0.2s;
    padding-left: 20px;
    text-shadow: 2px 0 5px #ffffff;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}


.tester {
    flex-direction: column;
    align-items: center;
    background-color: rgb(0, 0, 0);
    border: 1px solid #00eaff;
    border-radius: 8px;
    padding: 10px;
    max-width: 350;
    transition: all 0.3s ease;
    overflow: visible;
    cursor: pointer;
    min-width: 400;
}

.inner {
    width: 390px;
    box-sizing: border-box;
    margin: 10px 0 0 0;
    padding: 0;
    background-color: black;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;


}

.tester:hover {
    background-color: #1a1d23;
    transform: translateY(-3px);

}

.tester.active {
    background-color: #000000;
    border-color: #00eaff;
}

.tester.active .inner {
    max-height: 300px;
    opacity: 1;
    padding: 20px;
}

.Preview {
    font-weight: 600;
    color: #00eaff;
}

footer {
    position: fixed;
    bottom: 3;
    text-align: center;
    left: 40%;

}

.flagTextBox {

    background-color: #000000;
    font-family: monospace;
    color: #00eaff;
    border: #1d1d1d;
    transition: all 0.3ms ease;
    width: 400px;
    padding: 12px 16px;

}

.flagTextBox:focus {
    border: #000000;
    outline: none;
    box-shadow: 0 0 12px rgb(42, 41, 41);
    width: 500px;

}

p {

    color: #00eaff;
    font-family: monospace;
}

.flagChecklist {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.flagChecklist li {
    width: calc(33.333% - 10px);
    box-sizing: border-box;
    z-index: -1;
}

#flagChecklist input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #00eaff;
    background-color: black;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 8px;
    z-index: -1;
}

#flagChecklist input[type="checkbox"]:checked {
    background-color: #00eaff;
    position: relative;
    z-index: -1;
}

#flagChecklist input[type="checkbox"]:checked::after {
    content: "✔";
    color: black;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    left: 3px;
    top: -1px;
    z-index: -1;
}

#flagChecklist input[type="checkbox"]:checked {
    background-color: #00eaff;
    box-shadow: 0 0 8px #00eaff;
    position: relative;
}

.thing {
    text-decoration: none;
    color: #00eaff;
}

.typewriter-container {
    display: inline-block;
}

.typewriter-text {
    font-family: monospace;
    color: #00eaff;
    font-size: 60px !important;
    text-shadow: 0 0 12px #00eaff;

    display: inline-block;
    overflow: hidden;
    white-space: nowrap;

    border-right: 2px solid #00eaff;
    margin: 0 auto;
    letter-spacing: .05em;

    animation:
        typing 3.5s steps(32, end) forwards,
        blink-caret .75s step-end infinite;
}