:root{
    --toolbar: #1E1E1E;
    --window: rgb(40, 40, 40);
    --line-hover: rgb(60, 60, 60);
    --text-color: #505050;
    --red: #FF5E57;
    --yellow: #FFBB2E;
    --green: #38C149;
    --c-text: #BCBEC4;
    --c-comment: #8BB33D;
    --c-keyword: #CF8E6D;
    --c-class: #56A8F5;
    --c-number: #2AACB8;
    --size: 20px;
}

.window-wrapper{
    margin: 5vh auto;
}

.toolbar{
    width: 100%;
    height: 40px;
    border-radius: 20px 20px 0 0;
    background-color: var(--toolbar);
    display: grid;
    justify-items: center;
    justify-content: start;
}

.toolbar > div:nth-child(1){
    display: inline-grid;
    grid-row-start: 1;
    width: var(--size);
    height: var(--size);
    margin: 10px clamp(5px, 100%, 20px) 10px 20px;
    border-radius: 100%;
    background-color: var(--red);
}

.toolbar > div:nth-child(2){
    display: inline-grid;
    grid-row-start: 1;
    width: var(--size);
    height: var(--size);
    margin: 10px 0;
    border-radius: 100%;
    background-color: var(--yellow);
}

.toolbar > div:nth-child(3){
    display: inline-grid;
    grid-row-start: 1;
    width: var(--size);
    height: var(--size);
    margin: 10px 0 10px clamp(5px, 100%, 20px);
    border-radius: 100%;
    background-color: var(--green);
}

.toolbar > div:nth-child(4){
    margin: 10px 0;
    position: absolute;
    font-weight: 700;
    color: var(--text-color);
}

.window{
    width: 100%;
    height: fit-content;
    border-radius: 0 0 20px 20px;
    background-color: var(--window);
}


.code-wrapper{
    padding: 10px;
    position: relative;
}

.vertical-line{
    height: calc(100% - 20px);
    width: 1px;
    background-color: var(--text-color);
    position: absolute;
    margin-bottom: 20px;
    top: 10px;
    left: 35px;
}

.code{
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    text-overflow: clip;
    color: var(--c-text);
    position: relative;
    left: 40px;
    margin-right: 40px;
    border-radius: 2.5px;
    transition: background-color 0.2s ease-in-out;
}

.code:hover {
    background-color: var(--line-hover);
    transition: background-color 0.2s ease-in-out;
}

.code::after{
    content: attr(line-nr);
    left: -40px;
    top: 0;
    position: absolute;
    z-index: 1;
    color: var(--text-color);
}

#comment{
    font-family: 'Courier New', Courier, monospace;
    color: var(--c-comment);
}

#keyword{
    font-family: 'Courier New', Courier, monospace;
    color: var(--c-keyword);
}

#class{
    font-family: 'Courier New', Courier, monospace;
    color: var(--c-class);
}

#number{
    font-family: 'Courier New', Courier, monospace;
    color: var(--c-number);
}

#empty-line{
    color: var(--window);
    user-select: none;
}

@media screen and (max-width: 480px) {
    .code {
      font-size: 10px;
    }
  }