* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: black;
    overflow: hidden;
}
.header {
    margin-top: 50px;
    margin-bottom: 30px;
    font-family: "Courier New", Courier, monospace;
}
.header h1 {
    margin: 0 auto; /* This centers the element horizontally */
    width: 240px;
    font-weight: bolder;

    text-align: center;
    color: rgb(34, 255, 0);
}

.header p {
    font-size: 72px;
    margin-top: 10px;
    color: rgb(0, 255, 72);
    display: flex;
    justify-content: center;
    font-size: 20px;
    font-weight: bolder;
}

::placeholder {
    font-size: 18px;
    font-family: "Courier New", Courier, monospace;
    color: rgb(74, 66, 66);
    font-weight: bolder;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: auto;
    margin-left: auto;
    width: 100%;
}

.container #input {
    display: block;
    position: relative;
    background-color: rgb(207, 238, 172);
    border-radius: 30px;
    width: 600px;
    height: 70px;
    overflow: hidden;
    resize: none;
    font-size: large;
    text-align: center;
    border: 2px solid black;
    font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
        "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
    font-weight: bolder;
    line-height: 370%; /* Center text vertically */
}

.container .findContainer {
    position: relative;
    width: 80%;
    text-align: center;
}

.numContainer {
    width: 70px;
    height: 70px;
    display: inline-block;
    justify-content: center;
    align-items: center;
    background-color: rgb(0, 255, 217);
    margin-right: 10px;
    margin-top: 5px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: bolder;
    font-size: 20px;
}

.container #tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 20px;
    font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
    font-weight: bolder;
}

.btn-container {
    text-align: center; /* Align buttons to the center horizontally */
    margin-top: 20px; /* Adjust top margin as needed */
}

.btn {
    display: inline-block; /* Display buttons inline */
    width: 150px; /* Adjust width of each button */
    height: 50px; /* Adjust height of each button */
    border: none;
    cursor: pointer;
    border-radius: 10px;
    background-color: rgb(63, 196, 68);
    color: black;
    margin: 0 10px; /* Adjust margin between buttons */
    margin-bottom: 10px;
    font-weight: bolder;
    font-size: 14px; /* Adjust font size */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.btn:hover,
.btn-clear:hover {
    box-shadow: 0 5px 20px rgb(72, 255, 0);
    transform: translateY(-2px);
}

.error-message {
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    color: red;
    font-size: 22px;
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 10px;
    text-align: center;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }
    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }
    20%,
    40%,
    60%,
    80%,
    100% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes elastic {
    0% {
        transform: scale(0.3);
    }
    70% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.node {
    font-family: Arial, Helvetica, sans-serif;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    position: absolute;
    background-color: cyan;
    border: 3px solid rgb(255, 249, 249);
    line-height: 45px;
    vertical-align: middle;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    transition: 0.5s;
    animation: elastic 0.7s ease-in-out; /* Apply elastic animation */
}

.node-height {
    color: white;
    position: relative;
    font-family: Arial, Helvetica, sans-serif;
    padding-left: 10px;
    font-weight: bolder;
}

.node.exist {
    background-color: rgb(255, 0, 0);
}
.node.visited {
    background-color: rgb(249, 93, 27);
    border: 3px solid #ff0000;
}

.node.found {
    background-color: rgb(0, 255, 30);
    border: 5px solid #ff0000;
}

.line {
    background-color: #ff0000;
    width: 4px;
    border: 1px solid #ff0000;
    position: absolute;
    transform-origin: top left;
    z-index: -1;
    transition: 0.5s;
}

button {
    width: 100px;
    font-size: 25px;
    margin: 25px 0 0 25px;
}

input {
    font-size: 25px;
    width: 100px;
    margin: 25px;
}

.graph {
    width: 1000px;
    height: 500px;
    position: relative;
    margin-top: 20px; /* Added margin for spacing */
}

.transcript {
    font-family: "Courier New", Courier, monospace;
    color: rgb(0, 0, 0);
    font-size: 32px;
    font-weight: bolder;
    margin-top: 5px;
    margin-bottom: 10px;
    text-align: center;
}
