html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#cont.container {
    position: relative;
    max-width: 600px;
    width: 100%;
    height: calc(100% - 120px); 
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.25);
    margin: 50px auto 10px;
    box-sizing: border-box;
    overflow-y: auto;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

#input-table.styled-table, #result-table.styled-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    margin-bottom: 20px;
    display: none;
}

#result-table.styled-table th, #result-table.styled-table td,
#input-table.styled-table th, #input-table.styled-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

#result-table.styled-table th,
#input-table.styled-table th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #333;
}

#result-table.styled-table tr:nth-child(even),
#input-table.styled-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.cell {
    position: relative;
}

.t-position {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8em; 
}

.t-number {
    position: absolute;
    font-size: 0.75em;
    bottom: 5px;
    right: 5px;
}

.interactive-container {
    width: 100%;
    background-color: #f0f0f0; 
    display: flex; 
    justify-content: center; 
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.25);
    color: rgb(65, 63, 63);
    background-color: #fff;
    cursor: pointer;
    transition: all .6s ease;
    margin: 0 5px;
    padding: 0.5rem 1.4rem;

    width: 100%; 
    max-width: 600px; 
    box-sizing: border-box; 
}

.button:hover {
    transform: scale(1.02);
}

#calcButton.button { 
    color: #fff;
    background-color: #d67253;
}

#hoop {
    position: absolute;
    font-family: 'Arial';
    bottom: 10px;
    right: 20px;
    margin: 0;
    font-size: 1rem;
    color: #6d6b6b;
}

#load {
    position: absolute;
    font-family: 'Arial';
    bottom: 10px;
    left: 15px;
    margin: 0;
    font-size: 0.9rem;
    color: #b7b6b6;
    animation: blink 1s infinite;
    display: none;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}