@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: #40ff00;
    }
}

::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: #40ff00;
    padding-left: 3%;
    padding-right: 3%;
}

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

}

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

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

}



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

.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;
}








p {

    color: #2bff00;
    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;
}

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

#flagChecklist input[type="checkbox"]:checked {
    background-color: #40ff00;
    position: relative;
}

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

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

.DANGER {
    color: rgb(255, 0, 0);
    font-family: monospace;
    font-size: 30px;


}

.DANGER-description {
    color: rgb(255, 0, 0);
    font-family: monospace;
    font-size: 15px;


}

.reset-progress-btn {

    background-color: #000000;
    font-family: monospace;
    color: #ff0000;
    padding: 10px 15px;
    cursor: pointer;
    border: 2px solid #ff0000;
    transition: all 0.3s ease;
    border-radius: 10px;
    font-size: large;
    font-size: 13px;

}

.reset-progress-btn:hover {
    background-color: #1a1d23;
    cursor: pointer;

}

.hmm {
    color: #000000;
}

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

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

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

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

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

.dashboard {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
    width: 100%;
    max-width: 1500px;
    margin: 60px auto;
}

.terminal-container {
    padding: 25px;
    min-height: 300px;
    box-sizing: border-box;
    border: .5px solid #39ff14;
    box-shadow: 0 0 5px 1px #39ff14;

}

.terminal-header {
    font-size: 20px;
    margin-bottom: 30px;
}

.terminal-content {
    font-size: 17px;
    line-height: 1.8;
}



.challenge-container {
    padding: 25px;
    min-height: 300px;
    box-sizing: border-box;
    border: .5px solid #39ff14;
    box-shadow: 0 0 5px 1px #39ff14;

}

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.challenge-card {
    border: 1px solid #39ff14;
    padding: 25px;
    text-decoration: none;
    color: #39ff14;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    transition: 0.2s ease;
}

.challenge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 15px currentColor;

}

.challenge-info {
    font-size: 16px;
}

.web-card {
    border-color: #00eaff;
    color: #00eaff;
}

.crypto-card {
    border-color: #ff0099;
    color: #ff0099;
}

.challenge-title {
    font-size: 26px;
    font-weight: bold;
}

.enter-button {
    font-weight: bold;
}

.intro {
    font-size: 17px;
}

.challenge-section {
    margin-top: 80px;
    margin-bottom: 80px;
}

.challenge-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
}


.challenge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1100px;
}

.progress-container .challenge-grid2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}



.challenge-card {
    display: block;
    border: 2px solid #39ff14;
    padding: 28px;
    text-decoration: none;
    color: #39ff14;

    transition: 0.2s ease;
}


.challenge-card:hover {
    box-shadow: 0 0 20px #39ff14;
    transform: translateY(-4px);
}


.challenge-title {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 15px;
}


.challenge-info {
    font-size: 18px;
    margin-bottom: 20px;
}


.progress-bar {
    width: 100%;
    height: 14px;
    border: 1px solid #39ff14;
    margin-bottom: 10px;
}


.progress-fill {
    height: 100%;
    width: 0%;
    background: #39ff14;
    box-shadow: 0 0 10px 2px #39ff14;
}


.challenge-progress {
    font-size: 16px;
    margin-bottom: 25px;
}


.enter-button {
    font-size: 18px;
    font-weight: bold;
}

.progress-container {
    grid-column: 1 / -1;
}