* {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: url('assets/background.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Ensures full height of viewport */
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 10px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white background */
    border: 1px solid #000000;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

canvas {
    width: 100%;
    max-width: 100%;
    height: 250px;
    margin: 20px 0;
    background-color: #6b6969;
    border: 1px solid #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px #ffffff;
}

h2 {
    text-align: center;
}

.input-group {
    margin-bottom: 15px;
}

.input-label {
    display: block;
    margin-bottom: 5px;
}

.input-field {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #8e8c8c;
    border-radius: 5px;
}

.button {
    background-color: #4CAF50;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    border: 2px solid black;
}

.button:hover {
    background-color: #3e8e41;
}

.rst {
    background-color: #8e8c8c;
}

.rst:hover {
    background-color: red;
}

.result {
    margin-top: 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

@media only screen and (min-width: 768px) {
    body {
        flex-direction: row;
    }

    .container {
        width: 45%;
        margin-right: 10px;
    }

    canvas {
        width: 50%;
        height: 400px;
        margin: 0;
    }
}
