html {
    background-color: rgb(14, 8, 31);
    color: white;
    touch-action: manipulation;
    font-family: Helvetica;
}

#title {
    border-radius: 17% 83% 91% 9% / 46% 93% 7% 54%;
    float: left;
}

#centering {
    text-align: center;
}

#loading {
    font-style: italic;
}

#div_table {
    display: none;
    background-color: #256a9e;
    border-top: 1px solid white;
    border-left: 1px solid white;
    font-size: 24px;
}

.grid_center {
    place-items: center;
    /*border: 1px solid #c5c5c5;*/
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 55px;
    grid-gap: 10px;
}

#keyboard {
    max-width: 500px;
    margin-right: auto;
    margin-left: auto;
}

#keyboard_line {
    display: flex;
    justify-content: space-between;
    gap: 0.4em;
}

.key {
    --margin-height: 4px;
    height: 45px;

    justify-content: center;
    align-items: center;
    font-family: monospace;
    font-size: 20px;
    user-select: none;
    display: flex;
    border: solid 1px;
    border-radius: 5px;
    flex-grow: 1;
    flex-shrink: 0;
    margin-top: var(--margin-height);
    margin-bottom: var(--margin-height);
}

.hide {
    display: none !important;
}

.visibilityHide {
    visibility: hidden !important;
}

.validate {
    background-color: green;
    color: green;
}

.forbiddenImage {
    height: 35px;
}

/*
.bad_place:after {
    background-color: rgb(252, 151, 0);
    border-radius: 50%;
    position: absolute;
    bottom: 2px;
    right: 2px;
    z-index: -1;
    content: " ";
    height: 10px;
    width: 10px;
}
*/

.wrong_place:after {
    background-color: rgb(252 185 0);
    border-radius: 50%;
    position: absolute;
    top: 1px;
    left: 0;
    z-index: -1;
    content: " ";
    height: 34px;
    width: 34px;
}

#ending {
    position: absolute;
    border: white solid 2px;
    background-color: rgb(14, 8, 31);
    left: 10px;
    right: 10px;
    padding: 10px;
    z-index: 1;
}

.ending_panel {
    text-align: left;
}

.title_ending {
    font-size: 2em;
}

.word {
    font-family: monospace;
    font-size: 1.5em;
}

.wrong_place_key {
    background-color: rgb(252 185 0);
}

.no_letter_key {
    opacity: 50%;
}

.good_place_key {
    background-color: rgb(223 0 0);
}

.good_place:after {
    background-color: rgb(223 0 0);
    position: absolute;
    top: 1px;
    left: 0;
    z-index: -1;
    content: " ";
    height: 34px;
    width: 34px;
}

.bad_word {
    background-color: rgba(0, 128, 0, 0.4);
    color: rgba(0, 128, 0, 0.4);
}

.row {
    border-bottom: 1px solid white;
}

.column {
    --cell-height: 4px;

    z-index: 0;
    position: relative;
    display: inline-block;
    border-right: 1px solid white;
    padding-top: var(--cell-height);
    padding-bottom: var(--cell-height);
    width: 34px;
    text-align: center;
}

.selectedLetter {
    background-color: rgb(0 161 255 / 56%);
}

.animationSelect {
    background-color: rgb(0 161 255 / 56%);
}

#table {
    margin-left: auto;
    margin-right: auto;
    background-color: rgb(17, 87, 250);
    border-color: white;
    border: solid;
    font-size: 6em;
    border-collapse: separate;
}

td {
    text-align: center;
}

table, th, td {
    border: solid white;
    border-spacing: 0;
    vertical-align: middle;
}

.close_ending {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
}

.close_ending:hover {
    opacity: 1;
}

.close_ending:before, .close_ending:after {
    position: absolute;
    left: 15px;
    content: ' ';
    height: 30px;
    width: 2px;
    background-color: #cdcbcb;
}

.close_ending:before {
    transform: rotate(45deg);
}

.close_ending:after {
    transform: rotate(-45deg);
}

dialog {
    border-radius: 20px;
	background: #cfd6eb;
	border-radius: 20px;
	border: 0;
	animation: fadeIn 1s ease both;
	&::backdrop {
		animation: fadeIn 1s ease both;
		background: rgb(255 255 255 / 40%);
		z-index: 2;
		backdrop-filter: blur(20px);
	}
}

#textual_replay {
    text-align: center;
}

#share_button {
    position: absolute;
    right: 32px;
    cursor: pointer;
}

#definition {
    color: black;
    text-decoration: none;
    outline: none;
}

#helpIcon {
    fill: #256a9e;
    cursor: pointer;
}

#shuffle {
    cursor: pointer;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 140px;
    background-color: #555;
    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;
}
