/* styles.css */

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to bottom, #6a82fb, #fc5c7d);
    background-image: url('background.jpg');
    background-size: cover;
    margin: 0;
    padding: 20px;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 600px;
    margin: auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.container:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

h1 {
    text-align: center;
    font-size: 2.8em;
    color: #333;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

label {
    display: block;
    margin: 15px 0 8px;
    font-weight: bold;
    color: #555;
    font-size: 1.2em;
}

input {
    width: 100%;
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s ease-in-out;
}

input:focus {
    border-color: #6200ea;
    outline: none;
    box-shadow: 0 0 10px rgba(98, 0, 234, 0.6);
}

button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(to right, #fc5c7d, #6a82fb);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

button:hover, button:active {
    transform: translateY(-4px);
}

button:hover {
    background: linear-gradient(to right, #fc466b, #3f5efb);
}

button:active {
    background: linear-gradient(to right, #e73558, #3243c9);
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}


#result {
    margin-top: 30px;
    font-size: 1.4em;
    text-align: center;
    color: #444;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.diagram {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ddd;
    border-radius: 50%;
    font-size: 1.7em;
    color: #555;
    background: linear-gradient(145deg, #f5f5f5, #ffffff);
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.5s, transform 0.3s, box-shadow 0.3s ease-in-out;
}

.number:hover {
    transform: scale(1.15);
    box-shadow: 6px 6px 15px rgba(0, 0, 0, 0.3);
    background-color: #f1f1f1;
}

.highlight {
    background: linear-gradient(to right, #ffeb3b, #ffc107);
    color: #333;
    font-weight: bold;
    box-shadow: 0 0 12px rgba(255, 193, 7, 0.7);
}

.found {
    background: linear-gradient(to right, #66bb6a, #43a047);
    color: #fff;
    font-weight: bold;
    box-shadow: 0 0 12px rgba(67, 160, 71, 0.7);
}

.traversal-steps {
    margin-top: 30px;
    font-size: 1.2em;
    text-align: center;
    color: #666;
    font-style: italic;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
