Health_server / static /styles2.css
seapoe1809's picture
Upload 201 files
571f20f verified
h1 {
margin-top: 0rem;
margin-bottom: 0rem; /* Adjust the margin-bottom value as desired */
}
h2 {
margin-top: 0.25rem; /* Adjust the margin-top value as desired */
margin-bottom: 0.25rem; /* Adjust the margin-top value as desired */
}
body {
margin: 0px;
padding: 0;
background-size: 100%;
font-family: 'Roboto', sans-serif;
background-color: #C0C0C0;
}
/* Body loaded state */
body.loaded {
opacity: 1;
}
/* Loading spinner styles */
.loader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 63, 0.95);
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
transition: opacity 0.3s ease-out;
}
.loader.hidden {
opacity: 0;
pointer-events: none;
}
.spinner {
width: 50px;
height: 50px;
border: 3px solid rgba(255, 255, 255, 0.3);
border-top: 3px solid #9FE2BF;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.container {
display: flex;
justify-content: center;
align-items: center;
min-height: 85vh;
min-width:50vh;
margin: 5px;
padding: 0;
background: radial-gradient(circle, #5D3FD3, #C0C0C0);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-radius: 20px;
overflow: hidden;
box-sizing: border-box;
animation: fadeInRight 0.6s ease-out;
}
.responsive-img {
max-width: 100%; /* Ensures the image doesn't exceed the container's width */
height: auto; /* Maintains the aspect ratio */
display: block; /* Avoids extra space below the image */
margin: 0 auto; /* Centers the image horizontally if needed */
}
.icons {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1.2rem;
padding: 0.25rem;
margin: 0rem;
}
.icons li {
list-style: none;
width: 160px;
height: 180px;
background-color: hsla(244, 16%, 92%, 0.6);
border: 2px solid hsla(244, 16%, 92%, 0.75);
backdrop-filter: blur(20px);
border-radius: 11px;
}
.icons li a {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
text-decoration: none;
transition: .5s;
box-shadow: -5px 5px 10px rgba(0, 0, 0, .3);
border-radius: 10px;
overflow: hidden;
}
.icon {
width: 160px;
height: 180px;
}
.icons li a:hover {
transform: translateY(-5px);
box-shadow: -8px 8px 15px rgba(0, 0, 0, .4);
}
.form_container {
font-size: 20px;
display: flex;
justify-content: center;
align-items: center;
margin: 0.6rem;
height: 50vh;
position: absolute; /* or you could use 'fixed' depending on your needs */ top: 0in;
bottom: 1in;
left: 50%;
transform: translateX(-50%); /* this will ensure it stays horizontally centered */
}
.login__user {
width: 80%;
padding: 12px 12px;
border-radius: 6px;
border: 2px solid var(--text-color);
background-color: hsla(244, 16%, 92%, 0.6);
text-align: center;
color: var(--title-color);
font-size: var(--smaller-font-size);
font: "Roboto";
font-weight: var(--font-medium);
transition: border 0.4s;
margin: 0 auto;
margin-bottom: 20px; /* Add margin below the element */
}
.login__button {
width: 70%; /* Adjust the width as desired */
padding: 10px 1.5rem; /* Adjust the padding as desired */
border-radius: 6px;
background: turquoise; /* Set the background color to light blue */
color: #000; /* Set the font color to black */
font-family: 'Roboto', sans-serif;
font-size: var(--small-font-size);
font-weight: var(--font-semi-bold);
box-shadow: 0 6px 24px hsla(244, 75%, 48%, 0.5);
margin-bottom: 1rem;
margin-top: 1rem;
}
.login__button-ghost {
background: hsla(244, 16%, 92%, 0.6);
border: 2px solid var(--first-color);
color: var(--first-color);
box-shadow: none;
}
.done-button {
position: fixed;
top: 10px;
left: 10px;
background-color: #F28C28;
color: black;
padding: 10px;
border: none;
cursor: pointer;
font-size: 16px;
}
/* Corrected and improved CSS */
.form-container-choice-button {
display: flex;
justify-content: center; /* Correctly center the buttons horizontally */
align-items: center; /* Center the buttons vertically */
position: fixed; /* Keep the container fixed at the bottom */
left: 0; /* Align with the left edge */
right: 0; /* Align with the right edge */
bottom: 2rem; /* Distance from the bottom */
width: 100%;
}
.choice_button {
width: 2.2cm; /* Default size */
height: 2.2cm; /* Ensure circular shape */
padding: 10px; /* Corrected unit */
border-radius: 50%; /* Round shape */
background: turquoise; /* Background color */
color: #000; /* Font color */
font-family: 'Roboto', sans-serif;
font-size: var(--very-small-font-size);
font-weight: var(--font-bold);
box-shadow: 0 6px 24px hsla(244, 75%, 48%, 0.5);
margin: 0 20px; /* Horizontal margin between buttons */
cursor: pointer;
transition: transform 0.3s ease;
}
.fas {
color: #E5E4E2; /* Change the color to light grey */
font-size: 40px; /* Make the icons bigger */
}
.button_content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.choice_button:hover {
transform: translateY(-3px); /* Slight move up on hover */
}
.choice_button:active {
transform: translateY(1px); /* Slight move down on click */
}
/* Adjustments for laptops and larger screens */
@media (min-width: 768px) {
.choice_button {
width: 3.1cm; /* Larger size for laptop screens */
height: 3.1cm; /* Maintain circular shape */
}
}
/* Positioning for the buttons in a banner at the bottom */
.banner {
position: fixed;
left: 0;
right: 0;
bottom: 0;
display: flex;
justify-content: space-around; /* Distribute buttons evenly */
align-items: center;
height: 60px; /* Adjust based on your preference */
background-color: hsla(242, 45%, 90%, 0.8);
padding: 20px; /* Example padding */
}
@media (min-width: 501px) {
body {
background-position: top;
background: linear-gradient(to right, #87CEEB, #C0C0C0);
font-family: 'Roboto', sans-serif;
}
.icons {
display: flex;
justify-content: space-around;
}
.icons li {
width: 200px;
height: 240px;
}
.icon {
width: 200px;
height: 240px;
background-color: #F28C28;
}
.container {
display: flex;
justify-content: flex-start;
margin: 3rem;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
margin-top: 5rem;
row-gap: 0.5rem;
scroll-snap-type: x mandatory;
scroll-padding: 1rem; /* Ensure proper padding for smooth snapping */
perspective: 1000px; /* Add perspective for 3D transformations */
}
.container .item {
scroll-snap-align: center; /* Align items centrally within the snap */
flex-shrink: 0; /* Prevent items from shrinking */
min-width: 150px; /* Set a minimum width to avoid being cut off */
margin-right: 1rem; /* Add some space between items */
transform: rotateY(0deg); /* Adjust for 3D effect */
}
ul {
display: flex;
flex-wrap: nowrap; /* Prevent tiles from wrapping to new lines */
justify-content: center;
margin: 0.1rem;
padding: 0.1rem;
}
ul li {
list-style: none;
margin: 20px;
width: 200px;
height: 240px;
background-color: hsla(244, 16%, 92%, 0.6); /* Added background color */
border: 2px solid hsla(244, 16%, 92%, 0.75); /* Added border */
backdrop-filter: blur(20px); /* Added backdrop filter */
border-radius: 10px; /* Added border radius for rounded edges */
margin-inline: 1.5rem; /* Updated margin between tiles */
row-gap: 1.25rem; /* Added row gap */
scroll-snap-align: center;
transform-style: preserve-3d; /* Enable 3D transformations */
}
}