tanabata/web/public/css/general.css

115 lines
1.8 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Epilogue&family=Secular+One&display=swap');
html,
body {
width: 100%;
min-height: 100vh;
margin: 0;
padding: 10px;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-image: url(/images/bg-1920x1440.webp);
background-size: 100% auto;
background-repeat: no-repeat;
}
header {
margin: 0;
margin-top: 2vw;
padding: 0;
text-align: center;
}
h1 {
margin: 12px 0;
padding: 0;
color: white;
font-family: Epilogue, sans-serif;
font-size: 10vmin;
text-shadow: 0 0 8px black;
text-align: center;
cursor: default;
}
h1 a {
color: inherit;
text-decoration: inherit;
}
h1 a:hover {
color: inherit;
text-decoration: inherit;
}
main {
margin: 0;
display: flex;
flex-direction: column;
background-color: #fff8;
box-shadow: 0 0 0.5vw black;
border-radius: 16px;
width: 80vw;
max-width: 700px;
transition: 0.3s;
overflow: hidden;
}
main:hover {
background-color: #fff;
box-shadow: 0 0 1vw black;
}
.contents-wrapper {
margin: 0;
padding: 2vw 2vw;
flex: 1 1 auto;
box-sizing: border-box;
display: flex;
flex-direction: row;
justify-content: space-around;
}
h2 {
margin: 0;
padding: 14px 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: hsla(270, 80%, 80%, 0.6);
border-bottom: 0;
font-family: Secular One, sans-serif;
font-size: 5.5vmin;
text-shadow: 2.5px 2px 0.5px white;
text-align: center;
cursor: default;
}
h3 {
margin: 0;
margin-top: 0.5vw;
font-family: Secular One, sans-serif;
font-size: 3vw;
}
form {
margin: 0;
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
}
.button-flex {
display: flex;
flex-direction: row;
justify-content: space-between;
}