body {
    margin: 0;
    padding: 0;
    font-family: 'Source Sans Pro', sans-serif;
    background-color: rgb(221, 27, 27);
    color: #777676;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    font-size: 11px;
}

#container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#imageSelector {
    display: flex;
    justify-content: center;
    margin: 20px 5px;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
}

#imageSelectorButton{
margin: 5px;
}

#toolbar {
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;
    align-items: center;
    position: absolute;
    bottom: 20%;
    background: #fff;
    /*left: 10%;*/
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#colorOptions {
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

.color-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ccc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 5px 0;
    cursor: pointer;
}

#drawingCanvas {
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 20px;
}

#saveButton {
    position: absolute;
    bottom: 50px;
    right: center;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #ffffff;
    color:  rgb(221, 27, 27);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

#saveButton:hover {
    transform: scale(1.05);
}

#rodape {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color:  rgb(221, 27, 27); /* Cor de fundo do rodapé */
    color: white;
    padding: 10px 0; /* Espaçamento no rodapé */
    font-family: sans-serif;
    display: flex;
    justify-content: space-between; /* Distribui o espaço entre as seções */
    align-items: center;
    flex-wrap: wrap;
  }
  
  #rodape a {
    color: white;
    text-decoration: none;
    margin: 0 15px; 
    font-size: 12px;
  }
  
  #rodape a:hover {
    color:  rgba(221, 27, 27, 0.79); /* Sublinhar links ao passar o mouse */
  }
  
  @media (max-width: 768px) {
    #rodape {
      flex-direction: column; /* Muda o layout para coluna em telas pequenas */
      padding: 5px 0;
    }
  
    #links-principais {
      margin-bottom: 10px; /* Adiciona espaçamento entre as seções */
      text-align: center;
    }
  
    #links-secundarios {
      text-align: justify;
      margin-right: 0;
    } 
  }
  
  /* Ajustes para telas menores */
@media (max-width: 768px) {
    body {
        font-size: 10px;
    }

    #container {
        flex-direction: column;
        align-items: center;
    }

    #imageSelector {
        width: 100%;
        padding: 5px;
        margin-top: 10px;
        box-shadow: none;
    }

    #toolbar {
        flex-direction: row;
        bottom: 15%;
        left: 0;
        right: 0;
        width: 100%;
        justify-content: space-evenly;
        padding: 5px;
        border-radius: 0;
    }

    #colorOptions {
        flex-direction: row;
        justify-content: space-around;
        margin-top: 0;
    }

    .color-btn {
        width: 30px;
        height: 30px;
    }

    #drawingCanvas {
        width: 90vw;
        height: 70vh;
        margin: 10px auto;
        box-shadow: none;
    }

    #saveButton {
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        padding: 8px 16px;
        margin-bottom: 20px;
    }

    #titulo, #pagdesenhar, #paggaleria {
        font-size: 12px;
    }

    #pagdesenhar:hover, #paggaleria:hover, #titulo:hover {
        font-size: 14px;
    }
}
