
body {
    background-color: rgba(20, 20, 20, 0.9);
    color: whitesmoke;
    font-family: Verdana;
    overflow: hidden;
    flex-direction: row; /* Display sections vertically */
    justify-content: center;
    align-items: center;
    margin:0;
    display: flex;
    width: 100%;
    min-height: 100vh;
    display: grid;
  }
  
  p {font-family: "ＭＳ Ｐゴシック";}
  h4 {font-family: 'Courier New', Courier, monospace;
    -webkit-font-smoothing : none;
  text-align: center;}
  img{ 
    width: 400px;
  }

.three-columns-grid {
    display: grid;
    grid-auto-rows: 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 20px;
    height: 85%;
    place-self: center;
    position: absolute;
    grid-template: fixed;
}

.section_name {
  padding: 5px 0;
  padding-left: 15px;
  width: calc(100% + 15px);
  margin: -15px -15px 0 -15px;
  background-color: rgba(230, 60, 40, 0.7);
  color: white;
/* columns */
}

.three-columns-grid > * {
    padding:1rem;
    }
  
  .scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.1) 2px,
      rgba(0, 0, 0, 0.1) 4px
    );
    animation: moveScanlines 30s linear infinite; /* Adjust the duration as needed */
  }
  
  @keyframes moveScanlines {
    from {
      transform: translateY(-100%);
    }
    to {
      transform: translateY(100%);
    }
  }

.crt::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
  }
.crt::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
  }
.crt {
    animation: textShadow 1.6s infinite;
    }

.welcome {
    text-align: center;
    font-family:'Courier New', Courier, monospace;
    color:ghostwhite;
    text-shadow: 0px 3px 0px grey;
}

.ranmessage {
    font-family: cursive;
    text-align: center;
    color: aliceblue;
    position: relative;
    left: 9%;
    bottom: 30px;
    rotate: -5deg;
    text-shadow: 0px 3px 0px purple;
}

.section {
  flex: 1;
  background-color: transparent;
  border: 5px solid rgba(230, 60, 40, 0.7); /* Border creates a hollow effect */
  padding: 20px;
  text-align: center;
  color: whitesmoke;
  size-adjust: fixed;
  break-inside: avoid;
  page-break-inside: avoid;
  column-width: 400px
  
}

#s_main {
  column-width: 500;
}

#scanline {
  z-index: -1;
}

#datetime {
  margin-left:auto;
}

#dialoguebox {
  border: 5px ridge rgba(230, 60, 40, 0.7);
  padding-bottom: 6px;
  display: flex;
  flex-direction: column; /* Adjust to column */
  justify-content: space-around;
  max-width: 400px;
  padding: 20px;
  box-sizing: border-box; /* Include padding in the max-width calculation */
  height: 300px; /* Set a fixed height for the dialogue box */
  overflow: auto; /* Add overflow for scrolling if the content exceeds the height */
}

#dialoguebox > button {
  margin-top: 2rem;
  height: fit-content;
  max-width: fit-content;
  background-color: rgba(230, 60, 40, 0.7);
  color: #fff;
}

#dialogue {
  display: flex;
  flex-direction: column;
}

#girl_name {
  position: relative;
  padding: 5px;
  color: #fff;
  border: 5px ridge rgba(230, 60, 40, 0.7);
  background: rgba(20, 20, 20, 0.1);
  box-sizing: border-box;
  overflow: auto;

  /* Set the font size to a specific value, adjust as needed */
  font-size: 14px;
}

#words {
  position: relative;
  padding: 15px;
  color: #fff;
  border: 5px ridge rgba(230, 60, 40, 0.7);
  background: rgba(20, 20, 20, 0.2);
  min-height: 20px;
  box-sizing: border-box;
  overflow: auto;
  bottom: 10%;

  /* Set the font size to a specific value, adjust as needed */
  font-size: 14px;
}

#words::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50px;
  display: block;
  width: 0;
  top: 16px;
  right: -40px;
  bottom: auto;
  left: auto;
  border-width: 15px 0 0 40px;
  border-color: transparent rgba(230, 60, 40, 0.7);
}

#character {
  width: 240px;
  height: 240px;
  align-self: center;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.button {
  padding: 10px ;
  text-align: center;
  background-color: rgba(230, 60, 40, 0.7);
  color: white;
  border: 10px #a02810;
  border-radius: 1px;
  cursor: pointer;
}

/* Additional styling for hover effect */
.button:hover {
  background-color: #a02810;
}