Files
anomaly-front-stats/static/style.css
T

465 lines
8.4 KiB
CSS

input[type="text"] {
width: 100%;
padding: 8px;
margin: 10px 0;
box-sizing: border-box;
font-size: 16px;
}
#modifiers-container {
display: flex;
justify-content: space-between; /* Distribute space between the items */
flex-wrap: wrap; /* Allow wrapping to avoid overflow */
}
/* Style for the modifiers section */
#modifiers {
display: flex; /* Use flexbox for alignment */
flex-direction: column; /* Stack items vertically */
width: 50%;
}
#abilities {
width: 42.5%; /* Adjust this value as needed */
}
body {
background-image: url("/trlstats/static/img/trlbg1.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
position: relative;
z-index: -1; /* Send the background behind the content */
font-family: Arial, sans-serif;
margin: 20px;
}
header nav {
margin-bottom: 20px;
}
header nav a {
color: red;
text-decoration: none;
font-weight: bold;
padding: 10px 20px;
}
header nav a:hover {
color: red;
}
h1 {
color: #333;
margin-bottom: 20px;
}
.background-roster {
background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background for better readability */
padding: 20px;
border-radius: 10px;
z-index: 1;
}
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 20px;
overflow: hidden;
background-color: rgba(255, 255, 255, 0.8);
}
table, th, td {
border: 1px solid #ddd;
}
th, td {
padding: 10px;
text-align: left;
}
th {
color: #333;
background-color: rgba(255, 255, 255, 0.9);
}
button {
padding: 5px 10px;
background-color: red;
color: white;
border: none;
cursor: pointer;
}
button:hover {
background-color: red;
}
input {
padding: 5px;
margin-bottom: 20px;
}
#result {
margin-top: 20px;
}
#search {
width: 33%;
padding: 6px;
border: 2px black solid;
margin-top: 8px;
margin-right: 16px;
font-size: 17px;
}
main {
position: relative;
z-index: -1;
background-color: rgba(255, 255, 255, 0.9);
margin-top: 10%;
padding: 20px 35px 35px 35px;
border-radius: 10px;
border: 2px solid black;
overflow: auto;
}
nav {
top: 0;
left: 0;
width: 100%
}
.divider {
top: 0;
width: 80%
}
/* Add a black background color to the top navigation */
.topnav {
position: absolute;
right: 50px;
top: 10px;
background-color: #333;
overflow: visible; /* Ensure dropdown content isn't clipped */
z-index: 1000; /* Higher z-index to appear above other content */
}
/* Style the links inside the navigation bar */
.topnav a {
color: #f2f2f2;
text-align: center;
text-decoration: none;
font-size: 17px;
}
/* Style the dropdown button */
.dropdown .dropbtn {
font-size: 17px;
border: none;
outline: none;
color: white;
background-color: inherit;
padding: 14px 16px;
cursor: pointer;
}
/* Dropdown content */
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
right: 0; /* Ensures dropdown aligns with the button */
z-index: 2000; /* Ensures it stays above the rest */
}
/* Style the links inside the dropdown */
.dropdown-content a {
float: none; /* Ensure the links stack properly */
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
text-align: left;
}
/* Add a dark background on hover */
.topnav a:hover, .dropdown:hover .dropbtn {
background-color: #555;
color: white;
}
/* Add a grey background to dropdown links on hover */
.dropdown-content a:hover {
background-color: #ddd;
color: black;
}
/* Show the dropdown when the button is clicked */
.dropdown.show .dropdown-content {
display: block; /* Toggle visibility */
}
/* Media query for smaller screens */
@media screen and (max-width: 600px) {
.topnav {
right: 0;
top: 0;
width: 100%;
position: relative;
}
.dropdown .dropbtn {
width: 100%;
text-align: center;
}
.dropdown-content {
width: 100%;
position: relative;
}
}
/* Hide the icon on larger screens */
.topnav .icon {
display: none;
}
.about_us_text {
font-size: 20px;
width: 50%;
overflow: auto;
}
/* Show the icon only on smaller screens */
@media screen and (max-width: 600px) {
#search {
width: 100%
}
.about_us_text {
font-size: 14px;
width: 100%;
}
.suggestion-title {
font-size: 16px;
}
}
.button1 {
background-color: black;
}
/* Suggestion Form Enhancements */
main h1 {
font-size: 2.5em;
color: black;
text-align: center;
margin-bottom: 20px;
}
.suggestion-title {
font-size: 1.5em;
color: black;
text-align: center;
margin-bottom: 30px;
}
article label {
font-weight: bold;
font-size: 1.1em;
color: #333;
margin-bottom: 10px;
display: block;
}
input[type="text"], input[type="number"], textarea {
width: 95%;
padding: 12px;
font-size: 1em;
border: 1px solid #ccc;
border-radius: 8px;
margin-bottom: 20px;
background-color: #f9f9f9;
transition: border-color 0.3s, box-shadow 0.3s;
}
/* Focus effect to highlight the active input field */
input[type="text"]:focus, input[type="number"]:focus, textarea:focus {
border-color: black;
box-shadow: 0 0 5px darkred;
background-color: #fff;
outline: none;
}
textarea {
resize: none;
height: 150px;
}
/* Submit button improvements */
.button1 {
background-color: darkred;
color: white;
font-size: 1.2em;
padding: 12px 24px;
border: none;
border-radius: 8px;
cursor: pointer;
display: block;
margin: 0 auto;
transition: background-color 0.3s ease, transform 0.3s ease;
}
/* Button hover effect */
.button1:hover {
background-color: red;
transform: scale(1.05);
}
/* Success message styling */
#successMessage {
font-size: 1.1em;
color: green;
text-align: center;
margin-top: 20px;
}
@media screen and (max-width: 600px) {
input[type="text"], input[type="number"], textarea {
width: 80%;
font-size: 0.95em;
}
.suggestion-title {
font-size: 1.2em;
}
#modifiers {
width: 100%;
}
#abilities {
width: 100%;
}
#abilities label {
display: block;
margin-bottom: 10px;
line-height: 1.2;
white-space: nowrap;
}
#abilities input[type="checkbox"] {
margin-right: 5px;
}
}
.weapon-stats-table {
width: 100%;
border-collapse: collapse;
margin: 10px 0;
}
.weapon-stats-table th, .weapon-stats-table td {
border: 1px solid #ddd;
padding: 8px;
text-align: center;
}
.weapon-stats-table th {
background-color: #f2f2f2;
color: black;
}
.horizontal-table tr:first-child th {
text-align: center;
font-weight: bold;
}
.hamburger {
position: fixed;
top: 1rem;
right: 1rem;
width: 3rem;
height: 3rem;
padding: 0.5rem;
background: rgba(0, 0, 0, 0.6);
border-radius: 50%;
display: flex;
flex-direction: column;
justify-content: space-between;
cursor: pointer;
z-index: 2000;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.hamburger .bar {
width: 100%;
height: 0.4rem;
background-color: #fff;
border-radius: 2px;
transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger .bar {
transform-origin: left center;
}
.hamburger .bar {
width: 100%;
height: 0.4rem;
background-color: #fff;
margin: 0.15rem 0;
transition: transform 0.3s ease, width 0.3s ease, opacity 0.3s ease;
}
.hamburger.active .bar:nth-child(1) {
transform: translate(8px, 8px) rotate(45deg);
width: 60%;
}
.hamburger.active .bar:nth-child(2) {
transform: translateX(10px);
width: 80%;
}
.hamburger.active .bar:nth-child(3) {
transform: translate(8px, -8px) rotate(-45deg);
width: 60%;
}
.nav-menu {
position: fixed;
top: 0;
right: -100%;
width: 250px;
height: 100vh;
background-color: rgba(255, 255, 255, 0.95);
display: flex;
flex-direction: column;
padding: 4rem 1.5rem;
gap: 1.5rem;
box-shadow: -4px 0 8px rgba(0,0,0,0.1);
transition: right 0.3s ease;
z-index: 1500;
}
.nav-menu a {
color: #333;
text-decoration: none;
font-size: 1.1rem;
font-weight: 500;
}
.nav-menu.active {
right: 0;
}
body.menu-open {
overflow: hidden;
}