body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    /* background: linear-gradient(to bottom right, #d9a7c7, #fffcdc); */
    background: url('bg.png') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
}

.container {
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    background: rgba(0, 0, 0, 0.6);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.navbar nav a {
    color: #ffffff;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar nav a:hover {
    color: #00e0ff;
}

.hero {
    text-align: center;
    margin: 40px 0;
}

.hero p {
    font-size: 18px;
    color: #eee;
}

p {
    font-size: 14px;
    color: #eee;
    align-items: baseline;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: rgba(255, 255, 255, 0.15);
    padding: 16px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    color: #fff;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    background-color: rgba(255, 255, 255, 0.3);
}

.controls {
    /* flex: content; */
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* align-items: center; */
    background: rgba(255, 255, 255, 0.12);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 40px;
    backdrop-filter: blur(8px);
}

.blur-box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.form-container {
    width: 500px;
    padding: 1rem;
}

.control-row {
    flex: content;
    display: flex;
    /* align-items: center; */
    /* justify-content: center; */
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 600px;
}

.controls label {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    /* text-align: right; */
}

.controls input,
.controls select {
    /* flex: 1 1 180px; */
    /* flex: content; */
    /* flex-wrap: wrap; */
    /* flex: 1; */
    /* align-items: center; */
    /* justify-content: center; */
    font-size: 14px;
    padding: 5px;
    gap: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    /* min-width: 150px; */
}

.controls button {
    flex: content;
    /* align-items: center;
    justify-content: center;
    justify-items: center; */
    gap: 10px;
    background-color: #00e0ff;
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.controls button:hover {
    background-color: #00b6d4;
}

a.white {
    color: #fff;
    text-decoration: underline;
    font-weight: 500;
}

a.white:hover {
    color: #00e0ff;
    text-decoration: underline;
}

#graph_area {
    width: 100%;
    max-width: 1000px;
    height: 500px;
    margin: auto;
    background: #fff;
    border-radius: 10px;
    padding: 10px;
}

#alg_name,
#alg_seek {
    text-align: center;
    font-size: 18px;
    margin-top: 20px;
    color: #fff;
    font-weight: 600;
}