Files

137 lines
2.6 KiB
CSS

/* color for normal and darkmode */
:root {
--primary-background-color: #ECEEDF;
--ground-footer-color: #CFAB8D;
--second-footer-color: #D9C4B0;
--secondary-background-color: #BBDCE5;
--primary-accent-color: #fffdd0;
--secondary-accent-color: #0070A9;
--text-color: #fcffe9;
}
body {
margin: 0;
}
/* trying to make the color change */
* {
transition: background-color 0.4s ease, color 0.4s ease;
}
/* darkmode color */
.dark {
--primary-background-color: #78B9B5;
--ground-footer-color: #320A6B;
--second-footer-color: #065084;
--secondary-background-color: #0F828C;
--text-color: #1a033b;
}
/* background color */
.bg_color {
background-color: var(--primary-background-color);
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* the darkmode button behavior */
#theme_switch svg:last-child {
display: none;
}
.dark #theme_switch svg:first-child {
display: none;
}
.dark #theme_switch svg:last-child {
display: block;
}
/* the style of the main page */
.content_container {
display: flex;
justify-content: center;
align-items: center;
flex-grow: 1;
padding: 2rem 0;
box-sizing: border-box;
}
.square_content {
width: 50vw;
min-height: 65vh;
background: var(--secondary-background-color);
border-radius: 1rem;
box-sizing: border-box;
display: flex;
flex-direction: column;
}
@media (max-width: 1024px) {
.square_content {
width: 70vw;
}
}
@media (max-width: 768px) {
.square_content {
width: 90vw;
min-height: 80vh;
}
#theme_switch, #home_button {
width: 3rem;
height: 3rem;
padding: 0.4rem;
}
}
.website_top {
background-color: var(--secondary-accent-color);
padding: 1rem;
border-top-left-radius: inherit;
border-top-right-radius: inherit;
}
.website_text {
font-family: monospace;
font-size: 1.5rem;
color: var(--text-color);
}
.header {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
padding: 0.5rem 1rem;
width: 100%;
box-sizing: border-box;
z-index: 10;
}
.header div {
display: flex;
align-items: center;
}
#theme_switch, #home_button {
padding: 0.5rem;
background: none;
display: flex;
justify-content: center;
align-items: center;
border-style: none;
cursor: pointer;
width: 3.5rem;
height: 3.5rem;
box-sizing: border-box;
}
#theme_switch svg, #home_button svg {
width: 100%;
height: 100%;
fill: var(--secondary-background-color);
}