*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html,
body{
    height: 100%;
    background-color: #121123;
    display: flex;
    flex-direction: column;
    margin: 0;
}

body{
    justify-content: space-between;
}

header,
footer{
    font-weight: 600;
    color: #8bd350;
    background-color: #1d1a2f;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
}

header{
    align-items: center;
    border-bottom: 1px solid #8bd350;
}

footer{
    border-top: 1px solid #8bd350;
    justify-content: center;
}

header .left p{
    font-size: 24px;
    font-weight: bold;
    color: #8bd350;
}

header .right{
    display: flex;
    gap: 10px;
}

#header-links{
    list-style: none;
    display: flex;
    gap: 10px;
}

#header-links li{
    color: #8bd350;
    cursor: pointer;
}

#header-links li:hover{
    color: #6fae24;
}

main{
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.container{
    gap: 20px;
    color: #8bd350;
    background-color: #1d1a2f;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    padding: 25px;
}

.container .left{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.container .left button{
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    background-color: transparent;
    color: #fff;
    border: 1px solid #8bd350;
}

.container .left button:hover{
    background-color: #8bd350;
    color: #1d1a2f;
}

.container .left label{
    color: #8bd350;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#colorPicker{
    width: 100%;
    height: 40px;
    cursor: pointer;
    border: 1px solid #8bd350;
    border-radius: 4px;
    background-color: transparent;
}

.toggle-random,
.toggle-eraser,
.toggle-grid{
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8bd350;
    cursor: pointer;
}

.toggle-random input,
.toggle-eraser input,
.toggle-grid input{
    cursor: pointer;
    width: 18px;
    height: 18px;
}

#grid{
    display: flex;
    flex-direction: row;
    width: 600px;
    height: 600px;
    background-color: #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.coluna{
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pannel{
    flex: 1;
    background-color: white;
    border: solid 0.1px black;
}
.link{
    color: #8bd350;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.link:hover{
    color: #6fae24;
}

.link svg{
    width: 22px;
    height: 22px;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 15px;
        margin: 10px;
        max-width: calc(100vw - 20px);
    }

    #grid {
        width: 90vw;
        height: 90vw;
        max-width: 500px;
        max-height: 500px;
    }

    .container .left {
        width: 100%;
    }

    header .left p {
        font-size: 18px;
    }
}