ktyl.dev/src/vn/styles.css
2024-03-07 00:23:26 +00:00

88 lines
1.2 KiB
CSS

body
{
padding: 0;
margin: 0;
width: 100%;
height: 100%;
font-family: sans-serif;
color: white;
background-color: black;
}
.column {
margin: 0 auto;
left: 50%;
width: 80%;
/*transform: translateX(50%);*/
height: 100%;
}
/* make column full-width for small viewports */
@media only screen and (max-width: 600px) {
.column {
left: 0;
width: 100%;
}
}
.img-container {
position: relative;
height: 60%;
width: 100%;
}
img {
object-fit: contain;
width: 100%;
height: 100%;
}
#button {
position: relative;
margin: 0;
width: 100%;
height: 15%;
}
a {
color: white;
}
#button a {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
font-size: 4em;
text-align: center;
text-decoration: none;
}
#button:hover a {
color: grey;
}
.text-box {
position: relative;
width: 100%;
height: 25%;
}
.text-box p {
margin: 0;
width: 80%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
word-wrap: wrap;
font-size: 2em;
}