.pagebutton {
user-select: none;
position: relative;
display: inline-flex;
flex-direction: column;
overflow: hidden;
outline: 1px outset #e0e0e0;
border-radius: 4px;
transition-property: box-shadow, outline-color, transform;
transition-duration: 0.4s;
transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
z-index: 1;
}
.pagebutton:hover {
box-shadow: 0 0.2rem 0.4rem #999;
transform: translateY(-0.25rem);
transition-timing-function: ease;
z-index: 2;
}
.pagebutton-image {
flex: 1;
display: inline-flex;
justify-content: center;
background-color: #f5f5f5;
transition-property: background-color;
transition-duration: 0.4s;
}
.pagebutton-image a {
transition-property: filter;
transition-duration: 0.2s;
}
.pagebutton:active .pagebutton-image a {
filter: drop-shadow(0 0 6px #999);
transition-duration: 0s;
}
.pagebutton-image a,
.pagebutton-image span {
display: inline-flex;
justify-content: center;
width: 100%;
}
.pagebutton-image img {
padding: 0.5em;
}
.pagebutton-text {
overflow: hidden;
display: inline-flex;
align-items: center;
justify-content: center;
height: calc(1.25rem + 1px);
font-weight: bold;
white-space: nowrap;
background-color: #666;
color: #ffffff !important;
border-top: 1px solid #999;
transition-property: background-color, border;
transition-duration: 0.4s;
}
.pagebutton-text a {
color: #ffffff !important;
}
.pagebutton-text a:before {
content: '';
position: absolute;
inset: 0;
}