:root {
  --theme-bg-color: #ffcc33;
  --theme-bg-image: url('https://electricporygon.neocities.org/assets/PokemonBG-Emerald.png');
  --theme-fg: #003399;
  --theme-link: #cc0000;
  --theme-link-hover: #7a0000;

  --navbar-bg: #cc0000;
  --navbar-fg: #ffffff;
  --nav-link-bg: transparent;
  --nav-link-hover-bg: #990000;
  --nav-link-hover-fg: #ffffff;

  --content-bg: #ffffff;
  --content-border: #cc0000;
  --content-shadow: rgba(0, 0, 0, 0.18);

  --btn-bg: #003399;
  --btn-fg: #ffffff;
  --btn-hover-bg: #00266f;
}

@font-face {
  font-family: MochiPopOne;
  src: url('https://electricporygon.neocities.org/fonts/MOCHIYPOPONE-REGULAR.TTF');
  }
            
@font-face {
  font-family: YuseiMagic;
  src: url('https://electricporygon.neocities.org/fonts/YUSEIMAGIC-REGULAR.TTF');
  }
            
@font-face {
  font-family: NewTegomin;
  src: url('https://electricporygon.neocities.org/fonts/NEWTEGOMIN-REGULAR.TTF');
  }
            
@font-face {
  font-family: ShipporiAntique;
  src: url('https://electricporygon.neocities.org/fonts/SHIPPORIANTIQUEB1-REGULAR.TTF');
  }

* {
  box-sizing: border-box;
  border-radius: 0;
}

#container {
  max-width: 900px; /* if you change the value, scroll to the bottom and change the media query according to the comment! */
  margin: 0 auto;
  padding: 0px 10px 0px 10px; /* top, right, bottom, left */
  box-sizing: content-box;
  }

body {
  margin: 0px;
  padding: 0px
  background-color: var(--theme-bg-color);
  background-image: var(--theme-bg-image);
  background-repeat: repeat;
  background-attachment: fixed;
  color: var(--theme-fg);
/*  font-family: Verdana, Arial, sans-serif;*/
  font-family: ShipporiAntique; 
  font-size: 13px;
  line-height: 1.4;
}

.navbar {
  width: 900px;
  height: auto;
  background: #003399; /*var(--navbar-bg);*/
  color: var(--navbar-fg);
  font-family: MochiPopOne;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 5px 5px 5px;
  margin: 0px 0px 0px 0px;
  margin-top: -4px;
  border-radius: 20px 20px 20px 20px;/* TL , TR , BR , BL */
  box-shadow: 0 4px 0 var(--content-shadow);
  position: sticky;
  top: 0px;
}

.navbar .nav-shell {
  width: min(900px, 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0px;
}

.navbar .nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 5px 0px 5px 0px;
}

.navbar .nav a {
  color: inherit;
  text-decoration: none;
  padding: 0px;
  margin: 0px;
  background: var(--nav-link-bg);
  border: 0px solid transparent;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  line-height: 1;
}

.navbar .nav a:hover,
.navbar .nav a:focus-visible {
  color: #ffcc00; /*var(--nav-link-hover-fg);*/
  border-color: #00000000;
}

.main-content {
  max-width: 900px;
  margin: 20px 20px;
  background: var(--content-bg);
  padding: 0px 10px 20px 10px;
  border-radius: 20px;/* TL , TR , BR , BL */
  border: 5px solid var(--content-border);
  box-shadow: 0 4px 0 var(--content-shadow);
  display: flow-root;
}

.retro-search {
  display: flex;
  align-items: center;
  position: relative;
}

.retro-search-label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
}

.retro-search-input {
  width: 200px;
  height: 30px;
  border-top:    4px;
  border-right:  0px; 
  border-bottom: 4px;
  border-left: 4px;
  border-style: solid;
  border-color: #cc0000;
  background: #ffffff; /*#fff7c2;*/
  color: #003399;
  padding: 4px 0px 5px 10px;
  margin: 0px 0px 0px 20px;
  font: inherit;
  border-radius: 20px 0px 0px 20px;
}

.retro-search-input:focus-visible {
  outline: 1px solid #ffe066;
  outline-offset: 1px;
}

.retro-search-button {
  height: 30px;
  border-top:    4px;
  border-right:  4px; 
  border-bottom: 4px;
  border-left: 0px;
  border-style: solid;
  border-color: #cc0000;
  border-radius: 0px 20px 20px 0px;
  background: #cc0000; /*#003399;*/
  color: #ffffff;
  margin: 0px;
  padding: 3px 6px 4px 4px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 11px;
}

.retro-search-button:hover {
  background: #ffcc00;
  color: #003399;
}

.retro-search-results {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  width: min(460px, 94vw);
  max-height: 300px;
  overflow: auto;
  border: 2px solid #000000;
  background: #ffffff;
  z-index: 999;
}

.retro-search-results a {
  display: block;
  padding: 5px 8px;
  border-bottom: 1px solid #d9d9d9;
  color: #003399;
  text-decoration: none;
}

.retro-search-results a:hover,
.retro-search-results a:focus-visible,
.retro-search-results a.active {
  background: #fff2a6;
  color: #7a0000;
}

.retro-search-empty {
  padding: 6px 8px;
  color: #333333;
}

a {
  color: var(--theme-link);
}

a:hover,
a:focus-visible {
  color: var(--theme-link-hover);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #cc0000;
  margin-top: 0.3em;
  font-family: MochiPopOne;
}

table,
th,
td {
  border: 1px solid #000000;
  border-collapse: collapse;
}

th,
td {
  padding: 0.35rem 0.45rem;
}

button,
.btn,
input[type="button"],
input[type="submit"] {
  border-radius: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid #000000;
  padding: 6px 14px;
  cursor: pointer;
  font: inherit;
}

button:hover,
.btn:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
  background: var(--btn-hover-bg);
}

footer {
  width: 900px;
  height: 40px;
  background: #003399; /*var(--navbar-bg);*/
  color: #FFFFFF;
  font-family: MochiPopOne;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 5px;
  margin: 0px 0px 0px 0px;
  border-radius: 20px 20px 0px 0px;/* TL , TR , BR , BL */
  box-shadow: 0 4px 0 var(--content-shadow);
  position: sticky;
  top: 0px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 16px;
  line-height: 1;
}

footer a {
  color: #FFFFFF;
  text-decoration: none;
  padding: 0px;
  margin: 0px;
  background: var(--nav-link-bg);
  border: 0px solid transparent;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  line-height: 1;
}

footer a:hover,
footer a:focus-visible {
  color: #ffcc00; /*var(--nav-link-hover-fg);*/
  border-color: #00000000;
}

@media (max-width: 900px) {
  .navbar .nav-shell {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .navbar .nav {
    justify-content: center;
  }
  
  .navbar {
  width: 100%;
  right: 10px;
  left: 10px;
  height: auto;
  padding: 5px 0px 10px 0px;
  margin: 0px 0px 10px 0px;
  margin-top: -4px;
}

  .retro-search {
    width: 100%;
    justify-content: center;
  }

  .retro-search-input {
    width: min(260px, 64vw);
  }

  .retro-search-results {
    left: 0;
    right: 0;
    width: 100%;
  }

  .main-content {
    margin: 20px 20px;
    padding: 0px 12px 0px 12px;
    border-width: 5px;
  }
  
  footer {
    width: 100%;
    right: 10px;
    left: 10px;
    height: 40px;
    padding: 0px;
    margin: 0px;
  }
}
