* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

main {
     flex: 1;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     background-color: white;
     padding: 20px;
}

button{
    background-color: blue;
    color: white;
    font: bold 15px Arial;
    margin: 1% 0 1% 0;
    border-radius: 5px;
    border: blue solid 1px;
}

button:hover{
    background-color: lightblue;
    color: black;
    border: blue solid 1px;
}

button:disabled{
    background-color: lightgray;
    color: black;
    cursor: not-allowed;
}


input[type="text"]{
    width: 100%;
    height: 5vh;
    margin: 1% 0 0 0;
    border-radius: 5px;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height:width 100vh;
}
header {
    background-color: #3180d4;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 1.5rem;
}

select {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 70%;
    text-align: center;
}
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
    margin-top: auto;
}

.container-no-flex{
    width: 100%;
}
.container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.row{
    display: flex;
    flex-wrap: wrap;
}
.fieldset-container {
    flex-grow: 1;
}

.helper-item{
    flex: 33%;
    padding: 10px;
    text-align: left;
}

.flex-item {
    background-color: #f1f1f1;
    padding: 10px;
    flex: 50%;
}

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

.tooltip .tooltiptext {
    visibility: hidden;
    width: 140px;
    background-color: #3180d4;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 150%;
    left: 50%;
    margin-left: -75px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

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


#graph-container, #graph-container-output {
    height: 100%;
    width: 100%;
    min-height: 80vh;
    display: block;
    border: 1px solid black;
    border-radius: 5px;
}

#graph-container-input {
    height: 100%;
    width: 100%;
    min-height: 80vh;
    display: block;
    border: 1px solid black;
    border-radius: 5px;
}

#graph-container-input-replicate {
    height: 100%;
    width: 100%;
    min-height: 80vh;
    display: block;
    border: 1px solid black;
    border-radius: 5px;
}

#riduci-button, #verify-button{
    width: 100%;
    height: 5vh;
}

button#verify-button:disabled, button#riduci-button:disabled{
    background-color: lightgray;
    color: black;
    cursor: not-allowed;
}

#helper{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    background-color: #81dfef;
    border-radius: 5px;
}

#helper-container{
    width: 100%;
    padding: 10px;
}
#helper-name{
    font-size: 1.2rem;
    font-weight: bold;

}

#subsetsum-container{
    text-align: center;
    width: 100%;
}

a#go-home{
    text-decoration: none;
    cursor: pointer;
    color: white;
}
a#go-home:hover{
    text-decoration: underline;
}


table{
    border-collapse: collapse;
}
table#latin-square-tab td{
    background-color: white;
    width: 100px;
    height: 100px;
    border : 2px solid black;
}

table#latin-square-tab input[type="number"]{
    width: 100%;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 1.2rem;
}

table#sudoku-tab-small input[type="number"]{
    width: 100%;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 1.2rem;
    background-color: #81dfef;
}

table#sudoku-tab-big input[type="number"]{
    width: 100%;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 1.2rem;
    background-color: #81dfef;
}

table#sudoku-tab-small td{
    width: 100px;
    height: 100px;
    border-top: 1px solid black;
    border-bottom:1px solid black;
    border-left: 1px solid black;
    border-right: 1px solid black;
    text-align: center;
    background-color: #81dfef;
}

table#sudoku-tab-big td{
    width: 30px;
    height: 30px;
    border-top: 1px solid black;
    border-bottom:1px solid black;
    border-left: 1px solid black;
    border-right: 1px solid black;
    text-align: center;
    background-color: #81dfef;
}

table#table-subset-sum{
    height: 100%;
    margin: 0 auto;
    text-align: center;
}

table#latin-square-tab{
    margin: 0  auto;
}

table#sudoku-tab-big, table#sudoku-tab-small{
    margin: 0  auto;
    font-size: 1.2rem;
}


table#table-subset-sum td{
    width: 50px;
    height: 50px;
    text-align: center;
}

#add-node-buttons-container, #add-node-buttons-container-game{
    display: none;
    width: 100%;
    max-height: 3.5em;
    margin-bottom: 0.2em;
}

.small-button{
    margin: 0 1% 1% 0;
    font-size: 13pt
}

.bold-top{
    border-top: 3px solid black !important;
}
.bold-bottom{
    border-bottom:3px solid black !important;
}

.bold-left{
    border-left: 3px solid black !important;
}

.bold-right{
    border-right: 3px solid black !important;
}

.bold-top-subset-sum{
    border-top: 2px solid black !important;
}
.bold-bottom-subset-sum{
    border-bottom:2px solid black !important;
}

.bold-left-subset-sum{
    border-left: 2px solid black !important;
}

.bold-right-subset-sum{
    border-right: 2px solid black !important;
}

.button-active-mode{
    background-color: yellowgreen;
    border-color:  yellowgreen;
}
.button-active-mode:hover{
    border-color:  red;
    background-color: red;
    color: white;
}

div#latin-square-div{
    text-align: center;
}


/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

#game-switch{
    display: inline-block;
}
#game-row{
    gap: 1rem;
}
.slider-text {
    display: flex;
    align-items: center;
}

.active-part{
    color: blue;
    font-weight: bold;
}








