body {
    font-family: 'DotGothic16', sans-serif;
    /*background: url('Minecraft world.jpeg') no-repeat center center fixed;*/
    background-size: cover;
    color: #ffffff;
    margin: 0;
    padding: 20px;
    scrollbar-color: #ffa500;
}

body.light-mode {
    background-color: #ffffff;
    background-image: none;
    color: #000000; /* Text color for light mode */
}

body.dark-mode {
    background-color: #000000;
    background-image: none;
    color: #ffffff;
}

body.photo-mode {
    background: url('Minecraft world.jpeg') no-repeat center center fixed;
    background-size: cover;
    color: #ffffff;
}

header {
    text-align: center;
    margin-bottom: 20px;
    background-color: transparent; /* Remove background color */
}

header h1 {
    color: #ffa500;
    font-size: 2.5em;
    margin: 0;
}

header .gt {
    color: #ffa500;
    font-size: 1.5em;
    margin: 0;
}

/* Remove any additional mode-specific background colors for the header */
header.light-mode, header.dark-mode, header.photo-mode {
    background-color: transparent;
}

main {
    padding: 20px;
    border-radius: 10px;
}

/* Adjust main background for each mode */
main.light-mode {
    background-color: rgba(255, 255, 255, 0.9);
    color: #000000; /* Text color for light mode */
}

main.dark-mode {
    background-color: rgba(0, 0, 0, 0.7);
}

main.photo-mode {
    background-color: rgba(0, 0, 0, 0.5);
}

h1, h2, h3 {
    color: #ffa500;
}

ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
ul li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
ul li.visible {
  opacity: 1;
  transform: translateY(0) scale(1.02);
  list-style-type: none;
}
ul li a {
  display: block;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(0,0,0,0.4);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s, background 0.3s;
}
ul li a:hover {
  transform: scale(1.05) translateY(-5px);
  background: rgba(255,165,0,0.6);
}

body.light-mode ul li a {
    color: #000000; /* ライトモード時の文字色を黒に */
}

body.light-mode ul li a:hover {
    color: #ffa500; /* ライトモード時のホバー時の色をオレンジに */
}

body.light-mode button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #fafafa;
    color: #000;
    font-size: 1em;
    cursor: pointer;
}

body.light-mode button:hover {
    background-color: #e6e6e6;
}

body.dark-mode button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #1e1e1e;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
}

body.dark-mode button:hover {
    background-color: #323232;
}

body.photo-mode button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #ffa500;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
}

body.photo-mode button:hover{
    background-color: #ff7f00;
}
section {
    margin-bottom: 20px;
}

a {
    color: #99ebf7;
    text-decoration: none;
}

a:hover {
    color: #ffa500;
}

iframe {
    display: block;
    margin: 0 auto;
}
sans-serif
.message-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    padding: 10px;
    /*background-color: #f8f8f8;*/
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

body.light-mode .message-box {
    background-color: #f8f8f8;
    color: #000;
}

body.dark-mode .message-box {
    background-color: #1e1e1e;
    color: #fff;
}

body.photo-mode .message-box {
    background-color: #f8f8f8;
    color: #000;
}

.message-box-header {
    background-color: #ffa500;
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.message-box-header .close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.message-box-body {
    padding: 20px;
    /*color: #000;*/
}

.message-box button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #ffa500;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
}

.message-box button:hover {
    background-color: #ff7f00;
}

.custom-menu {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.4s ease;
}

.custom-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-menu li {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.4s ease;
}

.custom-menu li:hover {
    background-color: #f0f0f0;
}

body.light-mode .custom-menu {
    background-color: rgba(250,250,250,0.7);
    color: #000;
    transition: opacity 0.3s ease, background-color 0.4s ease;
}

body.light-mode .custom-menu li:hover {
    background-color: rgba(230,230,230,0.6);
}

body.dark-mode .custom-menu {
    background-color: rgba(30,30,30,0.7);
    color: #fff;
    transition: opacity 0.3s ease, background-color 0.4s ease;
}

body.dark-mode .custom-menu li:hover {
    background-color: rgba(50,50,50,0.6);
}

body.photo-mode .custom-menu {
    background-color: rgba(255,165,0,0.7);
    color: #fff;
    transition: opacity 0.3s ease, background-color 0.4s ease;
}

body.photo-mode .custom-menu li:hover {
    background-color: rgba(255,127,0,0.6);
}


textarea {
    /*font-family: 'Consolas', 'DotGothic16', 'mono-space';*/
    background-color: #333333;
    color: #fff;
    resize: none;
}

input {
  width: 100%;
  background: black;
  color: #0f0;
  border: none;
  outline: none;
  font-family: monospace;
}
