/**********************************************************
    Page styling
 *********************************************************/
nav ul label.sub-menu-arrow {
    top: calc(18.7em + 2.55em);
}

main section.egogram-introduction {
    margin: 3em 0 5em 25%;
    width: 50%;
}

main section.statement-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18em, 1fr));
}

main section.statement-cards article.statement-card {
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.2);
}
main section.statement-cards article.statement-card h3 {
    margin-left: 0.5em;
    margin-right: 0.5em;
}
main section.statement-cards article.statement-card table {
    padding-left: 0.3em;
    border-collapse: separate; 
    border-spacing: 0em 0.5em;
}
main section.statement-cards article.statement-card tr {
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
}
main section.statement-cards article.statement-card tr td {
    /* border: 1px solid blue; */
    padding: 0.5em 0.2em;
}
main section.statement-cards article.statement-card tr td:first-child {
    width: auto;
}
main section.statement-cards article.statement-card tr td:nth-child(2) {
    width: 64px;
}
main section.statement-cards article.statement-card tr td:nth-child(2) span:nth-child(2) {
    position: relative;
    top: -1px;
    left: -2px;
    
}
main section.statement-cards article.statement-card tr td:nth-child(2) span:nth-child(3) {
    position: relative;
    top: -3px;
    left: 3px;
}

main div.controls {
    width: calc(100% - 6em);
    margin: 1em 0 1em 0;
    padding: 0.5em;
    text-align: center;
}

main div.controls button {
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid lightgray;
    width: 30em;
    cursor: pointer;
    height: 9em;
    box-sizing: border-box;
}
main div.controls button:hover {
    border-color: gray;
}
main div.controls button:active {
    border: 2px solid gray;
}

.tooltip {
    position: relative;
    display: inline-block;
}
.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    top: 2.5em;
    left: 30.5em;
}
.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent #555 transparent transparent;
}
.tooltip:hover .tooltiptext {
    visibility: visible;
}

main section.evaluation-cards {
    margin: 1em 0 1em 1em;
    width: calc(100% - 2em); 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15em, 40em));
}

main section.evaluation-cards div.diagram-card > p {
    text-align: center;
    text-decoration: none;
}
main section.evaluation-cards div.diagram-card > p a {
    text-decoration: underline;
}

main section.confidential-clause {
    margin: 1em 0 1em 0;
    padding: 0.5em;
    width: calc(100% - 1em); 
    background-color: rgb(240, 240, 240);
}
main section.confidential-clause p:first-child {
    font-weight: bold;
}

/*-----------------------------------------------------------------------------------------------------------------------------*/

/**********************************************************
    Screen format depending styling
 *********************************************************/
@media only screen and (min-width: 680px) {
   
    main section.evaluation-cards {
        margin: 1em 0 1em 1em;
    }
}

@media only screen and (min-width: 920px) {
    
    main section.statement-cards {
        margin: 1em 0 1em 1em;
        width: calc(100% - 7em); 
        grid-template-columns: repeat(auto-fit, minmax(18em, 1fr));
        gap: 2.5em;
    }

    main section.evaluation-cards {
        width: calc(100% - 7em);
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(18em, 1fr));
        gap: 2em;
    }

    main section.confidential-clause {
        width: calc(100% - 6em);
    }
}
