ccdp10003-project01/styles.css

177 lines
3.2 KiB
CSS
Raw Normal View History

2023-04-18 01:40:26 +10:00
:root {
--border-radius: 12px;
2023-04-18 03:33:53 +10:00
--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
2023-04-18 01:40:26 +10:00
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
--foreground-rgb: 255, 255, 255;
--background-rgb: 10, 10, 10;
2023-04-19 19:28:20 +10:00
--shadow-rgb: 20, 20, 20;
2023-04-18 01:40:26 +10:00
--callout-rgb: 238, 240, 241;
--callout-border-rgb: 172, 175, 176;
--card-rgb: 180, 185, 188;
--card-border-rgb: 131, 134, 135;
}
2023-04-18 19:17:40 +10:00
* {
margin: 0;
padding: 0;
}
2023-04-18 01:40:26 +10:00
body {
color: rgb(var(--foreground-rgb));
background: rgb(var(--background-rgb));
}
2023-04-18 19:17:40 +10:00
main {
2023-04-18 01:40:26 +10:00
display: flex;
flex-direction: column;
align-items: center;
}
.centre {
2023-04-18 19:17:40 +10:00
margin: 40vh 0;
2023-04-19 16:44:10 +10:00
display: flex;
flex-direction: column;
align-items: center;
2023-04-18 03:33:53 +10:00
}
2023-04-18 19:17:40 +10:00
.centre #begin {
2023-04-19 19:28:20 +10:00
background-color: rgb(var(--card-rgb));
2023-04-18 01:40:26 +10:00
border: 1px solid rgb(var(--card-border-rgb));
2023-04-18 03:33:53 +10:00
border-radius: var(--border-radius);
padding: 1rem 1.2rem;
2023-04-18 01:40:26 +10:00
transition: background 200ms, border 200ms;
width: 75%;
2023-04-18 01:40:26 +10:00
}
2023-04-18 19:17:40 +10:00
.centre #beginOff {
visibility: none;
opacity: 0;
2023-04-19 16:44:10 +10:00
transition: visibility 0.5s, opacity 0.5s linear;
2023-04-18 19:17:40 +10:00
background: rgb(var(--card-rgb));
border: 1px solid rgb(var(--card-border-rgb));
border-radius: var(--border-radius);
padding: 1rem 1.2rem;
width: 75%;
2023-04-18 19:17:40 +10:00
}
2023-04-19 16:44:10 +10:00
.headphonesOff {
visibility: visible;
opacity: 0;
transition: display 2s, opacity 2s linear;
display: inherit;
flex-direction: inherit;
align-items: center;
}
.headphonesOn {
visibility: visible;
opacity: 1;
transition: opacity 2s linear;
display: inherit;
flex-direction: inherit;
align-items: center;
}
#headphonesImage {
height: 100px;
width: 100px;
margin-bottom: 10px;
}
2023-04-18 01:40:26 +10:00
footer {
2023-04-18 19:17:40 +10:00
position: fixed;
2023-04-18 01:40:26 +10:00
width: 100%;
2023-04-18 19:17:40 +10:00
bottom: 5dvh;
display: flex;
justify-content: space-evenly;
2023-04-18 03:33:53 +10:00
align-items: center;
}
footer section {
justify-self: center;
}
2023-04-18 19:17:40 +10:00
#credits {
2023-04-18 03:33:53 +10:00
text-align: right;
}
2023-04-18 19:17:40 +10:00
#creditsOff {
visibility: none;
opacity: 0;
transition: visibility 0.3s, opacity 0.3s linear;
}
.controlButtonOff {
visibility: none;
opacity: 0;
}
.controlButtonOn {
visibility: visible;
opacity: 1;
transition: opacity 2s linear;
2023-04-18 03:33:53 +10:00
border-radius: var(--border-radius);
background: none;
border: none;
cursor: pointer;
2023-04-19 19:28:20 +10:00
height: 60px;
width: 60px;
justify-content: center;
align-items: center;
}
.controlButtonOn:hover {
background-color: rgb(var(--shadow-rgb));
2023-04-18 03:33:53 +10:00
}
.controlImage {
2023-04-19 19:28:20 +10:00
height: 40px;
width: 40px;
}
.arrowButton {
background-color: rgb(var(--background-rgb));
border: 1px solid rgb(var(--background-rgb));
border-radius: var(--border-radius);
padding: 1rem 1.2rem;
cursor: pointer;
}
.arrowButton:hover {
border: 1px solid rgb(var(--shadow-rgb));
background-color: rgb(var(--shadow-rgb));
}
.arrowImage {
width: 75px;
}
.navigationOff {
display: none;
}
.navigationOn {
display: grid;
grid-template-columns: 1fr 1fr;
align-items: center;
justify-content: center;
width: 30dvw;
position: fixed;
bottom: 12.5dvh;
2023-04-18 01:40:26 +10:00
}
/* Enable hover only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
2023-04-18 03:33:53 +10:00
.centre #button:hover {
2023-04-18 01:40:26 +10:00
background: rgba(var(--card-rgb), 0.7);
border: 1px solid rgba(var(--card-border-rgb), 0.7);
}
}
@media (prefers-reduced-motion) {
2023-04-18 03:33:53 +10:00
.centre #button:hover {
2023-04-18 01:40:26 +10:00
transform: none;
}
}