:root {
    --typing-col: white;
    --black: #000000;
    --electric-dark-blue: #001f3f;
    --white: #ffffff;
    --light-gray: #d3d3d3;
}


body {
    font-family: Arial, sans-serif;
    background-color: var(--electric-dark-blue);
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    height: max(100%, 100vh);
    width: calc(100vw - 40px);
}

.code-container {
    margin: 20px 0;
    text-align: left;
    width: 100%;
    max-width: 600px;
    margin: auto;
}

.code-block {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    overflow-x: auto;
}

.run-button {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    background-color: #00a05d;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: large;
    width: 90%;
    margin-left: 5%;
    margin-top: 10px;
    position: relative;
    z-index: 999999;
}

.run-button:hover {
    background-color: #21a1f1;
}

.path-svg {
    width: 100%;
    transition: height 0.5s ease, opacity 0.5s ease;
    margin: 20px 0;
    opacity: 0;
    overflow: visible;
}

.hidden {
    display: none !important;
}

.show {
    display: block !important;
}

.path-visible {
    opacity: 1;
}

.animationContainer {
    margin-top: 20px;
    font-family: 'Courier New', Courier, monospace;
    white-space: pre;
    background-color: #0d1117;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 100px;
    overflow-y: auto;
    color: #f8f8f2;
}

pre {
    margin: 0; /* Remove margin from <pre> */
    padding: 0; /* Remove padding from <pre> */
    line-height: 0; /* Adjust line height */
}

pre code {
    margin: 0; /* Remove margin from <code> */
    padding: 0; /* Remove padding from <code> */
    line-height: 0; /* Adjust line height */
}

.hljs {
    padding: 0; /* Remove padding from highlighted code */
    margin: 0; /* Remove margin from highlighted code */
    line-height: 0; /* Adjust line height */
}



.output-box {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid #4d4d4d;
    border-radius: 8px;
    background-color: #1e1e1e;
    font-family: 'Courier New', Courier, monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #f8f8f2;
    min-height: 100px;
    overflow-y: auto;
}


.output-box div p {
    margin: 0px;
}


.output-box div p br {
    margin: 5px;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {

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

    50% {
        border-color: var(--typing-col);
    }
}

.typing-animation {
    display: inline-block;
    overflow: hidden;
    border-right: 2px solid var(--typing-col);
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink .75s step-end infinite;
    /* height: 20px; */
}

.btncontainerwrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}

.btncontainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.btncontainer.hidden {
    display: none;
}


.show-popup {
    animation: show-popup 0.5s forwards;
}

.hide-popup {
    animation: hide-popup 0.5s forwards;
}

@keyframes show-popup {
	0% {
		transform: scale(.0);
	}
	45% {
		transform: scale(1.05);
	}
	80% {
		transform: scale(.95);
	}
	100% {
		transform: scale(1);
	}
}

@keyframes hide-popup {
	0% {
		transform: scale(1);
	}
	100% {
		transform: scale(0);
	}
}

.btncontainer button, .nextbtn {
    background-color: black;
    color: #1e90ff; /* Electric dark blue */
    border: 2px solid #1e90ff;
    padding: 5px 10px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.glow-button {
    background-color: #001F3F;
    border: 2px solid #1E90FF;
    color: #1E90FF;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px;
    border-radius: 50%;
    transition: box-shadow 0.3s ease-in-out, background-color 0.3s ease-in-out;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
}

.glow-button:hover {
    box-shadow: 0 0 20px rgba(30, 144, 255, 0.6);
    background-color: #1E90FF;
    color: #001F3F;
}

.btncontainer button:hover, .nextbtn:hover {
    background-color: #1e90ff;
    color: black;
}

.dropdown-button {
    background-color: black;
    color: #1e90ff;
    border: 2px solid #1e90ff;
    padding: 5px 10px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin: 10px;
    border-radius: 50px;
}


.doneAnimationContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--electric-dark-blue);
    padding: 20px;
    border-radius: 8px;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    min-height: 100px;
    color: var(--white);
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
}

.done-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.checkmark {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1e90ff; /* Electric blue */
    position: relative;
    transform: scale(0);
    animation: checkmark-grow 0.5s forwards, checkmark-scale 0.5s 0.5s forwards;
}

.checkmark::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 10px;
    border: solid var(--electric-dark-blue); /* Dark background color */
    border-width: 0 0 4px 4px;
    transform: translate(-50%, -50%) rotate(-45deg);
    opacity: 0;
    animation: checkmark-stroke 0.5s 0.5s forwards;
}

.done-text {
    margin-left: 10px;
    font-size: 24px;
    color: var(--white);
    opacity: 0;
    animation: fade-in 0.5s 1s forwards;
}

@keyframes checkmark-grow {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes checkmark-stroke {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes checkmark-scale {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}


#redirdiv {
    cursor: pointer;
    color: rgb(202, 202, 202);
    position: relative;
    transition: transform 0.5s ease-in-out, height 0.5s ease-in-out, margin 0.5s ease-in-out;
}

#redirdiv.slide-out-top {
    transform: translateY(-100%);
    height: 0;
    margin: 0;
    overflow: hidden;
}


#displaydiv {
    width: 100%;
    transition-property: all;
	transition-duration: .5s;
	transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
    overflow-y: hidden;

}

.slide-in {
    top: auto;
}
.slide-out {
    max-height: 0;
}