mxene-db / data /styles.css
introvoyz041's picture
Migrated from GitHub
25cc038 verified
body {
font-family: Helvetica, sans-serif;
background-color: black;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
}
h1 {
color: #d1d1d1;
text-align: center;
margin-top: 50px;
margin-bottom: 10px;
font-size: 5em;
font-family: monospace;
}
/*About section*/
.top-right-link {
position: absolute;
top: 20px;
right: 20px;
z-index: 10;
}
.top-right-link a {
color: #ccc;
text-decoration: none;
background-color: #222;
padding: 8px 12px;
border-radius: 6px;
font-family: monospace;
font-size: 1rem;
transition: background-color 0.3s ease;
}
.top-right-link a:hover {
background-color: #444;
}
/* Search container styles */
.search-container {
display: flex;
align-items: center;
gap: 8px;
margin: 0px 0;
padding-bottom: 0;
width: 80%;
max-width: 500px;
}
.search-container input[type="text"] {
width: 80%;
max-width: 500px;
padding: 10px;
margin: 20px 0;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 1em;
}
.search-container button {
padding: 10px;
background-color: #444;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 1.2em;
transition: background-color 0.3s ease;
}
.search-container button:hover {
background-color: #666;
}
#searchBtn {
padding: 10px 15px;
background-color: #007BFF;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 1.2em;
transition: background-color 0.3s ease;
}
#searchBtn:hover {
background-color: #0056b3;
}
/* Filter Container Styles */
#filterContainer {
display: none;
flex-wrap: wrap;
justify-content: center;
gap: 1rem 1.5rem;
padding: 1rem 0;
max-width: 800px; /* Adjust as needed */
margin: 0 auto;
}
.filter-item {
flex: 1 1 calc(33.333% - 1rem); /* 3 columns with gap accounted */
max-width: calc(33.333% - 1rem);
box-sizing: border-box;
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.95rem;
color: #ccc;
flex: 1 1 220px;
max-width: 210px;
font-family: monospace;
}
.filter-item label {
white-space: nowrap;
font-weight: 500;
}
.filter-item select {
flex-grow: 1;
padding: 0.25rem 0.6rem;
border: 1px solid #ccc;
border-radius: 6px;
font-size: 0.95rem;
background-color: #fff;
transition: border-color 0.2s ease;
font-family: monospace;
}
.filter-item select option {
line-height: 0.2;
font-size: 0.9rem;
max-height: 10px;
}
.filter-item select:focus {
outline: none;
border-color: #007acc;
box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.2);
}
@media (max-width: 768px) {
.filter-item {
flex: 1 1 100%;
}
}
/* Result container styles */
#result {
width: 80%;
max-width: 1200px;
margin-top: 20px;
display: grid;
gap: 20px;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
text-align: center;
}
/* Media query for smaller screens */
@media (max-width: 400px) {
#result {
width: 80%;
max-width: 1200px;
margin-top: 20px;
display: grid;
gap: 20px;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
text-align: center;
}
}
#result > div {
background-color: rgb(239, 239, 239);
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
align-items: center;
}
.mxene-type {
text-align: center;
padding: 5px;
border-radius: 6px;
background-color: #ffffff;
outline: 1px solid rgb(0, 0, 0);
font-weight: bold;
width: 100%;
align-self: center;
box-sizing: border-box;
max-width:705px;
/* margin: 0; */
}
/* New styles for flex container */
.flex-container {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.flex-container .label-box,
.flex-container .result-box {
flex: 1; /* Let both label and result boxes take up equal space */
text-align: center;
padding: 10px;
border-radius: 6px;
margin: 0px 0;
position: relative;
display: inline-block;
box-sizing: border-box;
height: 40px;
}
.flex-container .label-box {
background-color: #d2d2d2;
outline: 1px solid rgb(0, 0, 0);
font-weight: bold;
/* width: 70px; */
}
.flex-container .result-box {
background-color: transparent;
border-color: transparent;
}
.flex-container .outer-box {
margin: 0;
display: flex;
border: 1px solid black;
background-color: #fff;
border-radius: 8px;
border-left: transparent;
flex: 1 1 45%; /* Ensure each element takes up half of the container */
white-space: nowrap;
/* max-width: 49%;
/* display: flex; */
/* flex-direction: left; */
/* align-items: center; */
}
#result h2 {
color: #066ad6;
text-align: center;
margin-top: 0;
margin-bottom: 0;
}
#result p {
color: black;
}
#result a {
color: #007BFF;
width: 100%;
text-decoration: none;
text-align: center;
margin-top: 20px;
}
#result a:hover {
text-decoration: underline;
}
hr {
border: 0;
clear:both;
display:block;
width: 96%;
background: #b7b7b7;
height: 1px;
margin-top: 10px;
margin-bottom: 0;
}
#result .not-found {
color: grey;
}