@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,200..900;1,200..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    background: #FCF6BD;
}

#wrap {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
}

#main {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#main h2 {
    margin: 0;
}
#tablediv {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 5%;
}

#columnAdders {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 5%;
}

#columnAdders button {
    margin: 0.2em;
}

#rowAdders {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 1em;
}

#rowAdders button {
    margin: 0.2em;
}

#matrixTable input {
    width: 15px;
    height: 15px;
    text-align: center;
    border: 1px solid black;
}

button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0.5em;
    border: 0 solid transparent;
    background-color: #A9DEF9;
    border-radius: 1.25em;
    transition: all 0.2s linear;
    font-weight: bold;
}

button:hover {
    box-shadow: 3.4px 2.5px 4.9px rgba(0, 0, 0, 0.025),
    8.6px 6.3px 12.4px rgba(0, 0, 0, 0.035),
    17.5px 12.8px 25.3px rgba(0, 0, 0, 0.045),
    36.1px 26.3px 52.2px rgba(0, 0, 0, 0.055),
    99px 72px 143px rgba(0, 0, 0, 0.08);
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 4em;
    background-color: rgba(0, 0, 0, 0.253);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    top: 25%;
    left: 110%;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent rgba(0, 0, 0, 0.253) transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

#steps {
    width: 100%;
    margin-bottom: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
}
hr {
    width: 80%;
    color: #333333;
}


.green-text {
    color: green;
}
#steps > *:not(.elkeszult){
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: slideInFromBottom 0.5s ease-out;
    background: rgba(255, 255, 255, 0.31);
    margin: 3px;
    padding: 5px;
    border-radius: 3px;
}

#steps > .elkeszult {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: slideInFromBottom 0.5s ease-out;
}

.stepMatrixTable {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.stepMatrixTable::before,
.stepMatrixTable::after {
    content: "";
    display: block;
    width: 0.5em;
    height: 100%;
    background-color: transparent;
    border: 1px solid #333;
    position: absolute;
}

.stepMatrixTable::before {
    left: -0.2em;
    border-right: none;
}

.stepMatrixTable::after {
    right: -0.2em;
    border-left: none;
}

.stepMatrixTable {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    table-layout: fixed; /* Add this line */
}

.stepMatrixTable tr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 1px;
    padding-right: 1px;
}

.stepMatrixTable td {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0.25em;
}

@keyframes slideInFromBottom {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}