189 lines
4.8 KiB
CSS

/* fonts.css */
@font-face {
font-family: 'Plovdiv'; /* Font family name */
src: url('./assets/fonts/Plovdiv/PlovdivDisplay-Bold.otf') format('opentype'); /* Regular style */
font-weight: bold; /* Standard weight */
font-style: normal; /* Standard style */
}
@font-face {
font-family: 'Plovdiv'; /* Same font family name */
src: url('./assets/fonts/Plovdiv/PlovdivDisplay-Regular.otf') format('opentype'); /* Bold style */
font-weight: normal; /* Bold weight */
font-style: normal; /* Standard style */
}
@font-face {
font-family: 'Pomelo'; /* Name of the font */
src: url('./assets/fonts/Pomelo/PomeloRegular.ttf') format('truetype'); /* Path to the TTF file */
font-weight: normal; /* Standard weight */
font-style: normal; /* Standard style */
}
#root {
width: 100%;
text-align: center; /* Centered text alignment */
}
/* Overall Body Style */
body {
background-color: #ffffff; /* Light background for contrast */
background-image: url('./assets/snowflakes.png'); /* Background image */
background-size: cover; /* Cover the entire screen */
background-position: center; /* Center the image */
background-repeat: no-repeat; /* Prevent repeating */
color: #ffffff; /* Darker red brown for readability */
font-family: 'Plovdiv', sans-serif;
font-size: 1.5em;
margin: 0;
text-align: center; /* Centered text alignment */
padding: 20px;
display: flex;
justify-content: center;
align-items: center;
}
.scroll-instruction {
display: none;
}
@media (max-width: 768px) {
body {
font-size: 1em;
}
}
@media (max-width: 375px) {
.scroll-instruction {
display: block;
}
}
/* Header Style */
header {
background-color: #a41e34; /* Christmas red */
color: white;
padding: 20px 0;
border-bottom: 5px solid #b7c9b5; /* Light green border */
}
header h1 {
font-size: 2.5em;
}
h1 {
font-family: 'Pomelo', sans-serif;
}
/* Section Style */
section {
background-color: #e4f7e0; /* Light green background */
padding: 20px;
border-radius: 10px;
margin: 15px 0;
}
/* Festive Buttons */
button {
background-color: #b77de5; /* Purple with a slight festive flair */
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 1.1em;
display: inline-block; /* Centers button in the container */
}
button:hover {
background-color: #9b6bb5; /* Darker purple on hover */
}
button:disabled {
background-color: #d3d3d3; /* Light gray for disabled button */
color: #a9a9a9; /* Darker gray for text */
cursor: not-allowed; /* Show not-allowed cursor */
}
/* Footer Style */
footer {
text-align: center; /* Centered */
padding: 20px;
background-color: #a41e34; /* Same red as header */
color: white;
position: relative;
}
.table-wrapper {
width: 100%; /* Full width of the viewport */
text-align: center; /* Center the text (optional for non-text elements) */
overflow-x: auto; /* Enables horizontal scrolling if necessary */
}
/* General table styles */
table {
width: 100%; /* Set table width to 80% to create space on sides */
max-width: 100%; /* Prevents exceeding the parent's width */
color: black;
border-collapse: collapse;
text-align: center; /* Centered text in table */
margin: 0 auto; /* Center the table within the wrapper */
}
/* Table header styles */
th {
background-color: #060698; /* Christmas red */
color: white;
padding: 10px 15px;
border-bottom: 3px solid #e0e9f7; /* Light green border for header */
}
/* Table cell styles */
td {
border: 1px solid #ddd;
padding: 10px 15px; /* Added padding for better spacing */
background-color: #e0e9f7; /* Light green background for cells */
}
/* Zebra striping for table rows */
tr:nth-child(even) {
background-color: #f9f9f9; /* Light gray for even rows */
}
/* Hover effect for rows */
tr:hover {
background-color: #c28f8f; /* Softer red when hovering */
}
/* Additional table styling for Christmas theme */
table {
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Shadow for depth */
border-radius: 8px; /* Rounded corners */
overflow: hidden; /* Ensures border radius works */
}
/* Add some festive decorations */
th::after {
content: '🎄'; /* Small Christmas tree icon in the header */
margin-left: 10px;
font-size: 1.2em; /* Slightly larger */
}
td {
position: relative; /* For potential decorations */
}
td::before {
content: ''; /* Placeholder for decoration */
position: absolute;
background-image: url('path/to/snowflake-icon.png'); /* Snowflake icon */
width: 16px; /* Adjust as necessary */
height: 16px;
opacity: 0.1; /* Very subtle */
top: 5px; /* Position it nicely */
left: 5px;
pointer-events: none; /* Ignore mouse events */
}