/* Reset default margin and padding for body and HTML */
body, html {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column; /* Make it a column layout */
    background-color: #b3a8b6;
    font-family: 'Arial', sans-serif;
}

/* Styles for the main app container */
#app {
    display: flex;
    flex-direction: column; /* Change to column to stack elements */
    justify-content: flex-start; /* Align items to the top */
    align-items: center;
    flex-wrap: wrap; /* Allow items to wrap to the next row if needed */
    padding: 10px; /* Add some padding for spacing */
    flex-grow: 1; /* Allow the app container to grow and fill the available space */
}

/* Styles for the canvas container */
.canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    overflow: hidden;
    margin-top: 10px;
    position: relative;
    transition: transform 0.3s;
}
/* Styles for the canvas element */
canvas {
    border: 2px solid #f10404;
    max-width: 100%; /* Ensure the canvas scales with the container */
    max-height: 100%; /* Ensure the canvas scales with the container */
}

/* Styles for the toolbar container */
.toolbar {
    display: flex;
    flex-direction: row; /* Keep it as a row layout */
    flex-wrap: wrap; /* Allow items to wrap to the next row if needed */
    gap: 10px;
    margin-bottom: 10px;
}

/* Styles for buttons and inputs in the toolbar */
.toolbar button,
.toolbar input[type="text"],
.toolbar input[type="color"] {
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
    font-size: 16px;
}

/* Styles for buttons */
.toolbar button {
    background-color: #ab5dee;
    color: white;
}

/* Styles for text inputs */
.toolbar input[type="text"] {
    border: 1px solid #ddd;
    padding: 10px;
    display: block;
}

/* Styles for the color picker input */
.toolbar input[type="color"] {
    padding: 10px;
    width: 48px;
}

/* Hover and active states for buttons and inputs */
.toolbar button:hover,
.toolbar input[type="text"]:hover,
.toolbar input[type="color"]:hover {
    background-color: #1da11f;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.toolbar button:active,
.toolbar input[type="text"]:active,
.toolbar input[type="color"]:active {
    background-color: #970ba6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

/* Styles for the downloadContainer */
#downloadContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

/* Styles for the fileName input */
#fileName {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 5px;
    width: 200px; /* Adjust the width as needed */
}

/* Styles for the download button */
#download {
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
    font-size: 16px;
    background-color: #1da11f;
    color: white;
    width: 100px; /* Adjust the width as needed */
}

/* Hover and active states for the download button */
#download:hover {
    background-color:#ab5dee;
}

#download:active {
    background-color: #003580;
}

/* Styles for the text input box */
#textInput {
    display: none;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: #e0f3e0; /* Light green background color */
    color: #333; /* Text color */
    transition: background-color 0.3s, box-shadow 0.3s;
}

/* Hover state for the text input box */
#textInput:hover {
    background-color: #c0eac0; /* Lighter green on hover */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Focus state for the text input box */
#textInput:focus {
    outline: none;
    background-color: #a0e0a0; /* Even lighter green on focus */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#textInput.hidden {
    display: none;
}

.header {
    color: white;
    font-weight: bold;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ab5dee; /* Optional background color for better visibility */
    padding: 5px; /* Optional padding to add some space around the text */
    cursor: pointer; /* Add this line */
}

.header:hover{
    background-color: #1da11f;
}

.footer{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background color */
    color: white; /* Text color */
    padding: 10px; /* Optional padding to add some space around the text */
    font-weight: bold;
    font-size: medium;
}

.custom-button {
    /* Define styles for custom buttons here */
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .toolbar {
        flex-direction: column; /* Stack buttons vertically */
        align-items: center;
    }
}
#rectTool2{
    background-color: #00ff00;
    color:#333;
    font-weight: bold;
}
#rectTool3{
    background-color: #0000ff;
    color:#ffffff;
    font-weight: bold;
}
#rectTool4{
    background-color: #ffff00;
    color:#000000;
    font-weight: bold;
}
#arrowTool2{
    background-color: #00ff00;
    color:#333;
    font-weight: bold;
}
#arrowTool3{
    background-color: #0000ff;
    color:#ffffff;
    font-weight: bold;
}
#arrowTool4{
    background-color: #ffff00;
    color:#000000;
    font-weight: bold;
}