* {
    box-sizing: border-box;
}
html {
    scrollbar-gutter: stable;
}
body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 1rem 0 2rem 0;
    min-height: 100vh;
}
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0 2rem 0;
}
h1 {
    text-align: center;
}
p {
    text-align: center;
    max-width: 90%;
    /* position: relative; */
}
/* p {
    
} */
.btnTool {
    font-size: 30px;
    border-radius: 30px;
    cursor: pointer;
    background-color: darkgrey;
    border: none;
    display: inline-flex;
    text-decoration: none;
    color: #333333;
    width: 300px;
    height: 150px;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: background-color 0.2s, transform 0.1s;
}
.btnTool:active {
    transform: scale(0.95);
}
.btn {
    display: inline-flex;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    text-align: center;
}
button, .btn {
    background-color: #ff5252;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}
button:active, .btn:active {
    transform: scale(0.98);
}
@media (hover: hover) {
    button:hover:not(:active), .btn:hover:not(:active) {
        background-color: #ff7979;
        transform: scale(1.05);
    }
    .btnTool:hover:not(:active) {
        background-color: #909090;
        transform: scale(1.03);
    }
}
div {
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: fit-content;
    margin: 1rem;
}
input[type="number"] {
    background-color: #2c2c2c;
    color: #e0e0e0;
    border: 1px solid #555;
    border-radius: 5px;
    padding: 0.5rem;
    height: 36px;
    width: 200px;
    font-size: 1rem;
    text-align: center;
    display: block;
    transition: border-color 0.2s, background-color 0.2s;
}
input[type="number"]:focus {
    border-color: #ff5252;
    outline: none;
    background-color: #333;
}
#result {
    background-color: #2c2c2c;
    border: 1px solid #555;
    border-radius: 5px;
    padding: 0.5rem;
    font-size: 1rem;
    text-align: center;
    color: #ffcc00;
    min-height: 36px;
    max-width: 100%;
    width: 200px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
@media (max-width: 500px) {
    div {
        flex-direction: column;
        align-items: center;
    }
    div input, #result {
        width: 80%;
    }
}
#tools {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}
.footer-buttons {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 1rem;
}
.footer-buttons:hover {
    text-decoration: underline;
}
/* header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
} */
.backBtn {
    position: absolute;
    left: 0px;
}