:root {
    --primary-color: #0075F2;
    --bg: #272935;
    --secondary-bg: #141422;
    --text-color: #e8e8e8;
    --second-text: #9195ab;
    --secondary-color: rgba(255, 255, 255, .1);
}

/* Da togliere */

.searchContainer {
    position: relative;
    box-sizing: border-box;
}

.mainbox {
    box-sizing: border-box;
    position: relative;
    width: 230px;
    height: 50px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    border-radius: 160px;
    background-color: var(--bg);
    transition: all 0.3s ease;
}

.checkbox:focus {
    border: none;
    outline: none;
}

.checkbox:checked {
    right: 10px;
}

.checkbox:checked~.mainbox {
    width: 50px;
}

.checkbox:checked~.mainbox .search_input {
    width: 0;
    height: 0px;
}

.checkbox:checked~.mainbox .iconContainer {
    padding-right: 8px;
}

.checkbox {
    box-sizing: border-box;
    width: 30px;
    height: 30px;
    position: absolute;
    right: 17px;
    top: 10px;
    z-index: 9;
    cursor: pointer;
    appearance: none;
}

.search_input {
    box-sizing: border-box;
    height: 100%;
    width: 170px;
    background-color: transparent;
    border: none;
    outline: none;
    padding-bottom: 4px;
    padding-left: 10px;
    font-size: 1em;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.search_input::placeholder {
    color: var(--second-text);
}

.iconContainer {
    box-sizing: border-box;
    padding-top: 5px;
    width: fit-content;
    transition: all 0.3s ease;
}

.search_icon {
    box-sizing: border-box;
    fill: var(--text-color);
    font-size: 1.3em;
}

section.commands {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    overflow: auto;
}

section.commands .title {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
}

section.commands .title h2 {
    margin-bottom: 0.5rem;
}

section.commands .title p {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 5px;
    align-items: center;
}

section.commands .title span {
    display: block;
    height: 15px;
    width: 15px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

#commandsContainer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 1228px;
}

.command {
    padding-bottom: 20px;
    border-bottom: solid 1px var(--bg);
    width: 100%;
}

.command td {
    padding: 0 10px;
    width: 18rem;
}

.command .option {
    display: flex;
    border-radius: 5px;
}

.command .option:not(.more) span:nth-child(1) {
    background-color: var(--bg);
    padding: 5px;
    border-radius: 5px 0 0 5px;
}

.command .option:not(.more) span:nth-child(2) {
    background-color: rgb(255 255 255 / 20%);
    padding: 5px;
    border-radius: 0 5px 5px 0;
    color: var(--second-text);
}

.command .option.required span:nth-child(1) {
    border-bottom: solid 1px var(--primary-color);
}

.command .option.required span:nth-child(2) {
    border-bottom: solid 1px var(--primary-color);
}

.command .option.more {
    width: 70px;
    position: absolute;
    top: -15px;
    right: -40px;
    box-shadow: rgb(0 117 242 / 50%) 0px 3px 7px 0px;
    padding: 3px;
    border-radius: 100px;
    background: var(--primary-color);
    align-items: center;
    justify-content: center;
}

td:has(div.more) {
    position: relative;
    padding: 0;
    width: max-content;
}

td.more {
    width: 0;
    padding: 0;
}

td p {
    text-align: unset !important;
}

@media screen and (max-width: 680px) {
    section.commands .title {
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
        position: sticky;
        left: 0;
    }

    section .title p, section .title h2 {
        text-align: center !important;
    }
}

@media screen and (max-width: 1100px) {
    section, section.reverse {
        flex-direction: column;
        max-width: 1240px;
    }
}

@media screen and (max-width: 1100px) {
    section p, section h2 {
        text-align: unset;
    }
}