h1,p {
    text-align: center;
}

table{
    width: 100%;
    box-sizing: border-box;
}

td {
  text-align: center; 
  vertical-align: middle;
  font-size: 25px;
}

h1 {
    font-family: "Cinzel Decorative", serif;
    color: rgb(0, 0, 0);
    opacity: .8;
    font-size: 60px;
    -webkit-text-stroke: 1px white;
}

p{   
    font-family: "Noto Serif JP", serif;
    font-size: 20px;
    line-height: 1.8;
}

hr{ 
    border: 0; 
    background-color: black;
    height: 1px;
    margin-left: 10%;
    margin-right: 10%;
}

.header{
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.main{
    border: 1px solid #000;
    border-radius: 15px;
    background-color: rgba(240,234,218,0.93);
    opacity: .9;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
    transition: background-color 3s ease;
}

.main.changed{
    background-color: rgba(197, 215, 237, 0.93);
}

.vacansion{
    border: 1px solid #000;
    border-radius: 15px;
    background-color: rgba(255, 228, 196,0.7);
    transition: background-color 3s ease;
}

body.spell-mode .vacansion{
    background-color: rgba(161, 194, 255, 0.7);
}

#bg2 {
    position: fixed;
    inset: 0;
    background: url('bgw.jpg') center center / cover no-repeat fixed;
    opacity: 0;
    transition: opacity 5s ease;
    pointer-events: none;
    z-index: -1;
}

#bg2.show {
    opacity: 1;
}

.speech-bubble {
    bottom: 110px;
    left: 0;
    font-size: 20px;
    max-width: 100px;
    max-height: 10px;

    background: white;
    border: 2px solid black;
    border-radius: 10px;

    padding: 8px 12px;

    opacity: 0;
    transition: opacity 0.3s;

    pointer-events: none;
}

.speech-bubble.show {
    opacity: 1;
}


@keyframes shake {
    0%   { transform: translate(0, 0); }
    10%  { transform: translate(-5px, -3px); }
    20%  { transform: translate(5px, 3px); }
    30%  { transform: translate(-4px, 4px); }
    40%  { transform: translate(4px, -4px); }
    50%  { transform: translate(-3px, 3px); }
    60%  { transform: translate(3px, -3px); }
    70%  { transform: translate(-2px, 2px); }
    80%  { transform: translate(2px, -2px); }
    90%  { transform: translate(-1px, 1px); }
    100% { transform: translate(0, 0); }
}

.shake {
    animation: shake 0.4s;
}