@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

/* General Styles */
/* These styles apply to the entire body of the page */
body {
    font-family: 'Orbitron', sans-serif;
    background-color: white;
    margin: 0;
    padding: 0;
    color: #333;
}

header {
    position: relative;
    background: linear-gradient(to right, #f7f8c4, rgb(109, 151, 128), #bccee2);
    color: white;
    padding: 20px;
    text-align: center;
    border-bottom: 5px solid #000000;
}

.logo {
    position: absolute;
    top: 50%;
    left: 20px;
    border: 1px solid black;
    transform: translateY(-50%);
    height: 100px; /* 3x the original size */
    width: auto; /* Maintain the aspect ratio */
}

/* Parent Container (Main) Styles */
/* Ensures more spacing between child elements */
main {
    display: flex;
    justify-content: space-between;
    margin: 20px; /* Adds margin around the main container */
    gap: 10px; /* Adds space between the two child elements */
}

/* Query Box Styles */
/* Styles the query input box on the left side of the page */
#query-box {
    width: 40%;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid black;
    padding: 20px; /* Adds internal spacing inside the box */
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-right: 20px; /* Adds space between the query box and the data box */
    box-sizing: border-box; /* Ensures padding and borders are included in the element's width/height */
}

/* Textarea Styles */
/* Styles the text input area where SQL queries are entered */
textarea {
    width: calc(100% - 20px); /* Adjusts width to account for padding of #query-box */
    height: 200px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Ensures padding and borders are included in the width/height */
}

/* Data Box Styles */
/* Styles the data output box on the right side of the page */
#data-box {
    width: 55%;
    background-color: #ffffff;
    border: 1px solid black;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Button Styles */
/* Styles the buttons for submitting queries and closing the database */
button {
    width: calc(100% - 20px); /* Matches the width of the textarea, considering its padding */
    background-color: rgb(109, 151, 128);
    color: white;
    border: 1px solid black;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 15px;
    transition: background-color 0.4s, color 0.4s;
    box-sizing: border-box; /* Ensures padding is included in width calculation */
}

/* Hover Effect for Buttons */
/* Changes the button appearance when the user hovers over it */
button:hover {
    background-color: white;
    color: black;
    border: 1px solid black;
}

/* Footer Styles */
/* Styles the footer at the bottom of the page */
footer {
    text-align: center;
    padding: 10px;
    background-color: #f1f1f1;
    border-top: 2px solid #dee2e6;
    margin-top: 20px;
}
