/* Basic settings */
* {
    box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    cursor: url('https://tooinnovative.com/img/carrot.png'), auto;
    font-family: 'Verdana', sans-serif;
}

/* Custom font for the application */
@font-face {
    font-family: 'myfont';
    src: url('https://tooinnovative.com/css/mage.woff') format('woff');
}

body, p, h1 {
    font-family: '', sans-serif;
    color: #000000;
}

/* Full-width layout for form elements and buttons */
form, .response_area, button {
    width: 100%; /* Makes these elements expand full width */
    padding: 10px;
    box-sizing: border-box; /* Include padding in width calculation */
}

/* Styling for the response area */
.response_area {
    height: 300px;
    overflow-y: scroll;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    padding: 10px;
}

.response_area img {
    max-width: 100%;  /* Image cannot exceed the width of .response_area */
    height: auto;     /* Height adjusts proportionally */
    display: block;   /* Ensures images are treated as block-level elements */
    margin: 0 auto;   /* Centers images horizontally within the container */
}


/* Styling for input fields and submit buttons */
input[type="text"], input[type="submit"], button {
    width: calc(100% - 20px); /* Adjust width to fit padding */
    padding: 10px;
    margin-top: 10px;
}

/* Navigation menu styling */
ul.topnav {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #63228a;
}

ul.topnav li {
    float: left;
}

ul.topnav li a {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 20px;
}

ul.topnav li a:hover, ul.topnav li a.active {
    background-color: #5959AB;
}

ul.topnav li.icon {
    display: none;
}

@media screen and (max-width: 680px) {
    ul.topnav li:not(:first-child) { display: none; }
    ul.topnav li.icon {
        float: right;
        display: block;
    }
}

@media screen and (max-width: 680px) {
    ul.topnav.responsive {
        position: relative;
    }
    ul.topnav.responsive li.icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    ul.topnav.responsive li {
        float: none;
        display: block;
    }
    ul.topnav.responsive li a {
        display: block;
        text-align: left;
    }
}

/* Edge borders */
#top, #bottom, #left, #right {
    background: #5959AB;
    position: fixed;
    z-index: 1;
}

#left, #right {
    top: 0; 
    bottom: 0;
    width: 5px;
}

#left { left: 0; }
#right { right: 0; }

#top, #bottom {
    left: 0; 
    right: 0;
    height: 5px;
}

#top { top: 0; }
#bottom { bottom: 0; }

/* Button styles for interaction */
.button {
    background-color: white;
    color: black;
    border: 2px solid #555555;
    padding: 16px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    transition-duration: 0.4s;
    cursor: pointer;
    font-family: 'myfont';
}

.button:hover {
    background-color: #63228a;
    color: white;
}

