@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f9fafc;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    background: linear-gradient(45deg, #f9fafc, #e8e9ec);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.1);
    width: 95vw;
    margin: 2% auto;
    height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.middle-aligner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

header {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 28pt;
    color: #333;
    margin-bottom: 20px;
}

p {
    font-size: 16px;
    color: #666;
}

.label, .calc {
    font-size: 90%;
}

.calc {
    border-collapse: collapse;
    width: 100%;
    transition: all 0.3s ease;
}

.calc td, .calc th {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
}

.calc thead {
    font-weight: bold;
    background-color: #f4f4f4;
}

.calc tr:hover {
    background-color: #f5f5f5;
}

.disabledAction {
    color: #dddddd;
}

.maskSpan {
    background-color: #cccccc;
    text-align: right;
}

.maskSpanJoinable {
    background-color: #cccccc;
    text-align: right;
    cursor: pointer;
}

.maskSpanRotate {
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
    background-color: green;
}

input[type="text"] {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input[type="submit"], input[type="button"] {
    padding: 8px 20px;
    font-size: 16px;
    margin: 10px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover, input[type="button"]:hover {
    background-color: #0056b3;
}

td {
    width: 20%;
}

.button-wrapper {
    display: flex;
    justify-content: flex-end;
    width: 285%;
}

header, main, footer {
    width: 80%;
    text-align: center;
}

/* Responsive styles for tablets and smaller */
@media only screen and (max-width: 768px) {
    .container {
        width: 98%;
        padding: 15px;
    }

    h1 {
        font-size: 24pt;
    }

    p {
        font-size: 14px;
    }

    .calc td, .calc th {
        padding: 8px;
    }

    input[type="text"] {
        padding: 6px;
        font-size: 12px;
    }

    input[type="submit"], input[type="button"] {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* Responsive styles specifically for mobile devices */
@media only screen and (max-width: 480px) {
    .container {
        border-radius: 5px;
    }

    h1 {
        font-size: 20pt;
    }

    .calc {
        width: 100%;
        overflow-x: auto;
    }
}
