/*
 * W2
 *
 * Copyright (C) 2007-2011 Steven Frank <http://stevenf.com/>
 *
 * Code may be re-used as long as the above copyright notice is retained.
 * See README.txt for full details.
 *
 * Written with Coda: <http://panic.com/coda/>
 *
 */

/* FONT IMPORTING*/
/* Ubuntu Mono*/
@import url("https://fonts.googleapis.com/css2?family=Ubuntu+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap");
.ubuntu-mono-regular {
  font-family: "Ubuntu Mono", monospace;
  font-weight: 400;
  font-style: normal;
}

.ubuntu-mono-bold {
  font-family: "Ubuntu Mono", monospace;
  font-weight: 700;
  font-style: normal;
}

.ubuntu-mono-regular-italic {
  font-family: "Ubuntu Mono", monospace;
  font-weight: 400;
  font-style: italic;
}

.ubuntu-mono-bold-italic {
  font-family: "Ubuntu Mono", monospace;
  font-weight: 700;
  font-style: italic;
}

/* END FONTS */

* {
  font-family: Helvetica, sans-serif;
  font-size: 14pt;
  border: 0px solid black;
}

html {
  height: 100%;
}

a {
  color: blue;
  text-decoration: none;
}

header a, footer a {
  color: white;
  padding: 0.2rem;
  border-radius: 3px;
}

footer a {
  text-decoration: underline;  
}

header a:hover, footer a:hover{
  background-color: rgb(34, 34, 34);
  animation: btn_hover 0.3s;
  animation-timing-function: ease;
}

.titlebar a:hover{
  background-color: rgb(68, 68, 68);
  animation: btn_hover_titlebar 0.3s;
  animation-timing-function: ease;
}

@keyframes btn_hover {
  0%{
    background-color: rgba(34, 34, 34, 0);
  }
  100%{
    background-color: rgba(34, 34, 34, 255);
  }
}

@keyframes btn_hover_titlebar {
  0%{
    background-color: rgba(68, 68, 68, 0);
  }
  100%{
    background-color: rgba(68, 68, 68, 255);
  }
}


.float_button a {
  color: white;
  text-decoration: none;
}

body {
  margin: 0;
  background-color: cornsilk;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  min-height: 100%;

  background-position: center;
  background-attachment: fixed;
  background-size: cover;
}

header {
  position: sticky;
  top: 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

header input {
  text-align: center;
}

#main {
  background-color: white;
  padding-top: 1em;
  padding-bottom: 1em;
  margin: 0 10vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 1rem;
}

#main, #padding {
  max-width: 1200px;
  width: max(60vw, 350px);
  padding-left: 2.5vw;
  padding-right: 2.5vw;
}

#main form {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-start;
  align-items: center;
}

#main .content {
  /*height: 100%;*/
  display: flex;
  flex-direction: column;
}

#padding {
  background-color: white;
  flex-grow: 1;
  min-height: 0px;
  padding: 0 auto;
}


footer {
  width: 100%;
  background-color: #444444;
  min-height: 50px;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  padding-top: 1em;
}

header,
footer {
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: auto;
}

blockquote {
  background-color: #f0f8f0;
  margin: 0px 0px 12px 20px;
  padding-top: 4px 10px 4px 10px;
}

li {
  line-height: 1.5em;
}

h1,
h2,
h3,
h4,
h5 {
  margin-top: 0.7rem;
  margin-bottom: 0;
}

h1 {
  font-size: 2rem;
  font-weight: bold;
  /*	margin-bottom: 8px;*/
}

h2 {
  font-size: 1.5rem;
  font-weight: bold;
  /*	margin-bottom: 8px;*/
}

h3 {
  font-size: 1.2rem;
  font-weight: bold;
  /*	margin-bottom: 8px;*/
}

hr {
  border-top: 1px solid black;
  border-bottom: 0;
  border-left: 0;
  border-right: 0;
  width: 100%;
}

ul {
  padding-left: 12px;
  margin-left: 12px;
  margin-bottom: 12px;
  list-style-position: inside;
}

ol {
  margin-left: 12px;
  margin-bottom: 12px;
  padding-left: 12px;
  list-style-position: inside;
}

ul ul, ul ol, ol ul, ol ol {
  margin-bottom: 0;
}

p {
  margin: 12px 12px 12px 12px;
}

pre {
  font-family: Menlo, Courier, monospace;
  font-size: 1rem;
  margin-left: 12px;
  margin-bottom: 12px;

  /* stroke each browser so that they wrap lines in the pre tag */
  white-space: pre-wrap; /* css-3 */
  white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
  white-space: -pre-wrap; /* Opera 4-6 */
  white-space: -o-pre-wrap; /* Opera 7 */
  word-wrap: break-word; /* Internet Explorer 5.5+ */
}

code {
  font-family: "Ubuntu Mono", Menlo, Courier, monospace;
  font-size: 1rem;
  border: 1px solid black;
  border-radius: 3px;
  background-color: aliceblue;
  padding: 0 0.2em;
}

table {
  border-collapse: collapse;
}

table,
td {
  padding: 2px;
}

textarea {
  font-size: 1rem;
  width: 90%;
  background-color: #fafafa;
  padding: 1em;
  resize:none;
}

img {
  max-width: 100%;
  height: auto;
}

#drop-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: baseline;  
  background-color: #444444;
  padding: 0 1rem;
}

#drop-menu a {
  text-align: left;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

#toolbar {
  display: flex;
  justify-content: space-between;
  text-align: center;
  background-color: #444444;
  padding: 1rem;
}

#toolbar div {
  display: flex;
  width: 30%;
}

#toolbar form{
  width: 100%;
}

#toolbar div:last-of-type {
  justify-content: flex-end;
}

.tool {
  display: flex;
  padding: 0 1em;
  align-items: center;
  margin: 0;
}

.titlebar {
  display: flex;
  justify-content: space-evenly;
  background-color: #222222;
  color: #ffffff;
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  padding: 4px 4px 4px 12px;
}

#banner-title {
  display: flex;
  justify-content: flex-start;
  align-content: center;
  margin: auto 0;
  padding-left: 0.5em;
  width: 80%;
  font-size: 1em;
  font-weight: bold;
  text-align: left;
}

.titlebar .a {
  display: flex;
}

#logo {
  width: 10%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#logo a {
  display: flex;
  justify-content: center;
  align-items: center;
}

#logo a {
  background-color: rgba(0,0,0,0);
  animation: none;
}

#logo img {
  max-height: 6rem;
  /* min-height: 4rem; */
  aspect-ratio: 1/1;
}

#edit-div {
  width: 30%;
  font-weight: normal;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-end;
}

#edit-div div {
  margin-bottom: 1em;
  display: flex;
}

#edit-button{
}

#edittime {
  padding-bottom: 0.32rem;
  font-size: 0.8rem;
  text-align: right;
  color: #999999;
  margin: 0 0.2rem 0 2rem;
}

#titledate {
  padding-bottom: 0.32rem;
  font-size: 0.8rem;
  text-align: right;
  color: #999999;
  margin-right: 1rem;
}

.float_button {
  position: fixed;
  text-align: center;
  border: 1px solid gray;
  background-color: #444444;
  border-radius: 6px;
  padding: 0.2em 0.4em;
}

#top {
  visibility: hidden;
  top: 220px;
}

#bottom {
  visibility: visible;
  bottom: 50px;  
}

#top, #bottom {
  left: 50%;
  transform: translate(-50%, 0);
}

.note {
  text-align: center;
  background-color: #ffffcc;
  padding: 4px;
  margin: 0 8px 8px 8px;
  color: black;
  border: 1px solid black;
}

.tags {
  visibility: hidden;
}

#text_edit {
  height: 100%;
}

hr.major {
  border-top: 2px solid #888888;
}

hr.minor {
  border-top: 1px solid #aaaaaa;
}

.gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;  
  justify-content: space-between;
}

.gallery-element {
  display: flex;
  flex-direction: column;
  margin: 1em;
}

.gallery-element p {
  color: black;
  text-align: center;
}

.gallery-element img {
  max-height: 200px;
  height: 200px;
}

.resource-gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;  
  justify-content: space-evenly;
}

.resource-gallery-element {
  display: flex;
  flex-direction: column;
  margin: 1em;
}

.resource-gallery-element p {
  color: black;
  text-align: center;
  font-weight: bold;
  font-size: 1.8rem;
}



.resource-gallery-element a {
  color: black;
}

.resource-gallery-element img {
  max-height: min(30vh, 550px);
  width: 100%;
  object-fit: contain;
}

#center {
  justify-content: center;
}

#search {
  text-align: left;
  height: 1.5rem;
  border-radius: 3px;
  width: 100%;
}

/*the enter title box for making a new page*/
#title {
  border: 1px solid black;
  border-radius: 3px;
  background-color: #fafafa;
}


#mobile-logo a {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  font-size: 1.3rem;
}

#mobile-logo a img {
  max-height: auto;
  max-width: 50px;
}

@media (max-height: 900px){
  .resource-gallery-element p {
    font-size: 1rem;
  }
}

@media (max-width: 1400px) {
  #banner-title {
    width: 50%;
  }
}

@media (min-width: 501px){
  #toolbar #mobile-logo, #drop-menu{
      display: none !important;
  }
}

/* Mobile devices =====================================================*/
@media (max-width: 500px) {
  
  #main, #padding {
    width: 90%;
    padding-left: 5%;
    padding-right: 5%;
  }
  
  #logo, #edittime, #titledate{
    display: none;
  }

  #edit-button{
    padding-right: 1rem;
  }

  #banner-title{
    padding-left: 0.1em;
    width: 80%;
  }

  /* Switch to mobile toolbar */
  #toolbar #left, #toolbar #right{
    display: none;
  }
  #toolbar #center{
    width: 70%;
  }
  #toolbar #center .tool {
    padding: 0;
  }

  #toolbar #mobile-logo{
    display: flex;
    max-width: 50px;
  }
}

/*
    document.getElementById("left").style.display = "none";
    document.getElementById("right").style.display = "none";

/* ====================================================================*/