Files
Hunt-AI/static/styles.css

576 lines
9.7 KiB
CSS

/* General Body and Typography */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0; /* Adds padding to the entire web app */
box-sizing: border-box; /* Ensures padding doesn't affect overall width/height */
background-color: #f4f4f4;
color: black;
transition: background-color 0.3s ease, color 0.3s ease; /* for theme switch */
}
h1, h2, h3, p {
color: #333;
}
ul {
list-style-type: none;
padding: 0;
}
ul li {
margin: 5px 0;
padding: 10px;
border-radius: 5px;
}
ul li.success {
background-color: #28a745;
color: white;
}
ul li.error {
background-color: #dc3545;
color: white;
}
ul li.info {
background-color: #17a2b8;
color: white;
}
/* Links */
a {
color: #1e90ff;
text-decoration: none; /* Remove underline by default */
transition: background-color 0.3s ease, color 0.3s ease;
}
/* Hover state - keep underline */
a:hover {
text-decoration: none; /* Remove underline on hover */
color: #1c7fd6; /* Slightly lighter blue */
}
/* Active state - no underline */
a:active, a:focus {
color: #1a6bb8; /* Even lighter blue */
text-decoration: none; /* Remove underline on active or focus */
}
/* For active link in the nav */
.nav-links .active {
color: #1a6bb8; /* Lighter color when active */
background-color: #444; /* Change background for active link */
border-radius: 5px; /* Optional: for rounded corners */
}
/* Navbar */
header nav a:hover {
background-color: #555;
text-decoration: none; /* Remove underline on hover for navbar */
border-radius: 10px;
}
/* Dropdown Menu */
.dropdown-content a:hover {
background-color: #555;
text-decoration: none; /* Remove underline on hover for dropdown menu */
}
/* Header and Navigation */
header {
background-color: #333;
color: white;
padding: 10px;
text-align: center;
}
header nav {
display: flex;
justify-content: center;
align-items: center;
gap: 15px;
}
header nav a {
color: white;
text-decoration: none;
padding: 8px 15px;
display: inline-block;
transition: background-color 0.3s ease, border-radius 0.3s ease;
}
header nav a:hover {
background-color: #555;
text-decoration: underline;
border-radius: 10px;
}
/* Dropdown Menu */
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #333;
min-width: 150px;
box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
z-index: 1;
}
.dropdown-content a {
color: white;
padding: 8px 15px;
text-decoration: none;
display: block;
text-align: left;
}
.dropdown-content a:hover {
background-color: #555;
}
.dropdown:hover .dropdown-content {
display: block;
}
/* Navbar */
.nav-links {
display: flex;
justify-content: space-between; /* Space between center and right sections */
align-items: center;
padding: 0 20px; /* Optional padding for spacing */
}
.nav-center {
flex: 1; /* Takes up remaining space */
text-align: center; /* Center-aligns content */
display: flex;
justify-content: center; /* Centers the links */
gap: 20px; /* Spacing between links */
}
.nav-right {
margin-left: auto; /* Pushes the right section to the far right */
display: flex;
gap: 15px; /* Space between the links */
}
.nav-center a, .nav-right a {
color: white; /* Ensure consistent color */
text-decoration: none;
padding: 8px 15px;
transition: background-color 0.3s ease, border-radius 0.3s ease;
}
.nav-center a:hover, .nav-right a:hover {
background-color: #555;
text-decoration: underline;
border-radius: 10px; /* Rounded corners on hover */
}
.nav-links.active {
display: flex;
flex-direction: column;
gap: 10px;
text-align: center;
}
@media (max-width: 768px) {
.nav-links {
display: none;
}
.nav-links.active {
display: flex;
}
}
/* Burger Menu */
.burger {
display: none;
flex-direction: column;
gap: 5px;
cursor: pointer;
}
.burger div {
width: 25px;
height: 3px;
background-color: white;
transition: transform 0.3s ease;
}
@media (max-width: 768px) {
.burger {
display: flex;
}
}
/* Main Content */
main {
padding: 20px;
}
.main-content {
width: 60%;
margin: 0 auto;
padding: 20px;
text-align: center;
}
.center-container {
text-align: center;
margin: 0 auto;
max-width: 800px;
padding: 20px;
}
/* Buttons */
button {
background-color: #007bff;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
}
button:hover {
background-color: #0056b3;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}
button:active {
background-color: #003f7f;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}
/* Link Buttons */
.link-container {
display: flex;
justify-content: center;
gap: 20px;
margin-top: 20px;
}
.link-button {
display: inline-block;
padding: 10px 20px;
text-decoration: none;
color: #ffffff;
background-color: #007bff;
border-radius: 5px;
font-size: 16px;
transition: background-color 0.3s ease, box-shadow 0.3s ease;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}
.link-button:hover {
background-color: #0056b3;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}
.link-button:active {
background-color: #003f7f;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}
/* ASCII Art */
.ascii-art.no-background {
background-color: transparent;
border: none;
padding: 0;
margin-bottom: 20px;
color: #333;
white-space: pre-wrap;
text-align: center;
}
@media (max-width: 768px) {
.ascii-art.no-background {
display: none;
}
}
.ascii-image {
display: block;
margin: 20px auto;
max-width: 100%;
height: auto;
border-radius: 10px;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}
/* Tips */
.tip {
background-color: #f1f9ff;
border-left: 4px solid #007bff;
margin: 20px auto;
padding: 10px;
font-style: italic;
color: #333;
max-width: 800px;
width: 90%;
border-radius: 4px;
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
text-align: center;
}
.tip a {
color: #1e90ff; /* Adjust for light theme */
text-decoration: none;
font-weight: bold;
transition: color 0.3s ease;
}
.tip a:hover {
color: #ff4500; /* Adjust hover color */
text-decoration: underline;
}
/* Slider */
/* Theme Toggle */
.switch {
position: absolute;
top: 80px;
right: 100px;
display: inline-block;
width: 60px;
height: 34px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.switch .slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: 0.4s;
border-radius: 34px;
}
.switch .slider:before {
position: absolute;
content: "🌙";
font-size: 20px;
left: 8px;
bottom: 7px;
transition: 0.4s;
}
input:checked + .slider {
background-color: #4CAF50;
}
input:checked + .slider:before {
transform: translateX(26px);
content: "🌞";
}
/* Preformatted Text */
pre {
background-color: #f4f4f4;
padding: 10px;
border: 1px solid #ddd;
overflow-x: auto;
}
/* notebook */
form {
display: flex;
flex-direction: column;
gap: 10px;
}
label {
font-weight: bold;
margin-bottom: 5px;
}
.form-data {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
font-size: 16px;
resize: none;
}
button {
align-self: flex-start;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
}
/* Password Register */
/* Password Requirements Box */
#password-requirements {
position: absolute;
top: 200px; /* Adjust to fit below password input */
left: 50%;
transform: translateX(-50%);
background: linear-gradient(145deg, #e0e0e0, #ffffff);
border-radius: 10px;
padding: 15px;
box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2), -5px -5px 15px rgba(255, 255, 255, 0.7);
width: 300px;
transition: opacity 0.3s ease, transform 0.3s ease;
z-index: 1000;
}
#password-requirements.hidden {
opacity: 0;
transform: translateX(-50%) translateY(20px);
pointer-events: none;
}
#password-requirements ul {
list-style-type: none;
padding: 0;
margin: 0;
color: #333;
}
#password-requirements li {
padding: 5px 0;
font-size: 14px;
}
/* Highlight Valid and Invalid States */
#password-requirements li:before {
content: "• ";
color: red;
}
#password-requirements li.valid:before {
color: green;
}
/* Navigation Bar */
.nav-links {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 20px;
}
.nav-left {
display: flex;
align-items: center;
gap: 15px;
}
/* Search Bar */
.search-bar {
display: inline-block;
position: relative;
}
.search-bar form {
display: inline-block;
white-space: nowrap;
}
.search-bar input[type="text"] {
padding: 5px 10px;
border: 1px solid #ccc;
border-right: none;
border-radius: 5px 0 0 5px; /* Rounded left corners */
font-size: 14px;
vertical-align: middle;
}
.search-bar button {
padding: 5px 10px;
border: 1px solid #ccc;
background-color: #007bff;
color: white;
font-size: 14px;
border-radius: 0 5px 5px 0; /* Rounded right corners */
vertical-align: middle;
cursor: pointer;
}
.search-bar button:hover {
background-color: #0056b3;
}
.search-bar input:focus {
outline: none;
border-color: #007bff;
}