[data-theme = "light"] {
    --couleur-fond: white;
    --couleur-texte: black;
    --fond-alert: #f4f4f4;
    --fond-input: white;
}

[data-theme = "dark"] {
    --couleur-fond: black;
    --couleur-texte: white;
    --fond-alert: black;
    --fond-input: black;
}

* {
    transition: cubic-bezier(0.075, 0.82, 0.165, 1);
    box-sizing: border-box;
    min-height: 0;
    font-family: 'Roboto', sans-serif;
    color: var(--couleur-texte);
}

html, body {
    min-height: 100%;
    height: 100%;
    margin: 0;
}

body {
    padding: 20px;
    background-color: var(--couleur-fond);
}

.code-editor, .output, .run-buttons, .right-pannel-content, .right-pannel-options {
    background-color: #e4e4e450;
    max-width: 100%;
}

.main {
    min-height: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
}

.left-pannel {
    max-width: 100%;
    display: grid;
    grid-template-rows: 3fr 1fr;
    gap: 20px;
}

.run-section {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
}

.right-pannel {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 20px;
}

.run-buttons {
    display: flex;
    flex-direction: column;
    padding: 20px;
    justify-content: space-around;
}

.output {
    padding: 5px 20px;
    overflow: scroll;
}

.right-pannel-options {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.option-link {
    color: var(--couleur-texte);
    padding: 10px;
    opacity: .9;
    text-decoration: none;
}

.option-link:hover {
    opacity: 1;
}

button {
    margin: 0 20px;
    padding: 10px 10px;
    border: 2px solid #f2bb13;
    background: transparent;
    text-transform: uppercase;
    font-weight: 600;
    opacity: .9;
    font-size: 16px;
}

button:hover {
    opacity: 1;
    cursor: pointer;
}

button.primary {
    background-color: #f2bb13;
    color: var(--couleur-fond);
}

button.secondary {
    background-color: var(--couleur-fond);
}

#editor {
    height: 100%;
    max-width: 100%;
}

.right-pannel-content {
    overflow: scroll;
    padding: 20px;
}

p {
    margin: 0;
}

.right-pannel-content .pannel-section {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.right-pannel-content .active {
    display: flex;
}

.output-text, .console-entry, .console-entry-symbol {
    font-family: ' JetBrains Mono', sans-serif;
    font-size: 14px;
}

.output-text {
    padding-left: 5px;
}

.output div {
    display: flex;
    flex-direction: row;
}

.console-entry {
    background: transparent;
    border: none;
    outline: none;
    min-width: 95%;
}

.alert-box {
    display: none;
    position: absolute;
    z-index: 100;
    top: 30vh;
    left: 30vw;
    background-color: var(--fond-alert);
    width: 40vw;
    height: 40vh;

    flex-direction: column;
    align-items: center;
    padding-top: 50px;
}

.alert-box.active {
    display: flex;
}

.alert-box::after {
    position: absolute;
    top: -30vh;
    left: -30vw;
    z-index: -1;
    width: 100vw;
    height: 100vh;
    background-color: #c4c4c450;
    content: "";
}

.close-alert {
    border: none;
    position: absolute;
    top: 20px;
    right: 0;
}

.alert-box form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    height: 100%;
    width: 100%;
    padding: 0 50px;
}

.alert-box form textarea {
    width: 100%;
    height: 60%;
    resize: none;
    background-color: var(--fond-input);
    border: 1px solid var(--couleur-texte);
    border-radius: 3px;
}

.ranking-element {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.problems-elements {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.problem {
    display: flex;
    flex-direction: column;
    gap: 5px;
}