a, a:visited {
    color: #007BFF !important;
    text-decoration: none !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    position: relative;
}

center {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    padding: 30px 50px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#output {
    font-family: 'Courier New', Courier, monospace;
    width: 400px;
    max-width: 90vw;
    min-height: 60px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    resize: none;
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #fff;
    color: #333;
    margin-bottom: 15px;
}

#copyBtn.copied {
    background-color: #28a745 !important;
}

input[type="number"] {
    width: 120px;
    padding: 8px 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="number"]:focus {
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0,123,255,0.3);
    outline: none;
}

button {
    padding: 10px 20px;
    margin-top: 10px;
    background-color: #007BFF;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

button:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(1px);
}

#homeBtn {
    position: fixed;
    top: 15px;
    left: 15px;
    padding: 10px 20px;
    background-color: #007BFF;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

#homeBtn:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

#result {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}

#val1, #val2 {
    margin-bottom: 15px;
}

h2 {
    margin-bottom: 20px;
}

@media (max-width: 500px) {
    #output {
        width: 90vw;
    }
    button {
        width: 90vw;
        margin-right: 0;
        margin-top: 10px;
    }
}

ul.links-list {
    list-style: none;
    padding: 0;
}

ul.links-list li {
    margin-bottom: 15px;
    font-size: 18px;
}