@charset "utf-8";

html {
  height: 100%;
  width: 100%;
  background-color: grey;
  overflow: none;
}

body {
  display: grid;
  position: relative;
  /*grid-template-columns: 1fr;
  grid-template-rows: 100%;
  grid-template-areas: "main";*/
  grid-template-columns: 68% 2% 28%;
  grid-template-rows: 7% auto 7%;
  grid-template-areas: 
    "header header  header" 
    "main   .  aside" 
    "footer footer  footer";
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  row-gap: 2%;
  padding: 0.0em 2.0em;
  overflow: none;
}

header {
  display: grid;
  grid-area: header;
  grid-template-columns: 95% 5%;
  grid-template-rows: 1fr;
  color: darkgreen;
  background-color: antiquewhite;
  text-align: center;
  font-size: 1.5em;
  width: 100%;
  height: 100%;
  border: .3em dashed purple;
}

main {
  display: grid;
  grid-area: main;
  justify-content:first baseline;
  align-items: center;
  width: 100%;
  height: 100%;
  border: .3em dashed red;
  margin: 0.0em auto;
  overflow-y: auto;
}

aside {
  display: grid;
  grid-area: aside;
  width: 100%;
  height: 100%;
  border: .3em dashed green;
  margin: 0.0em auto;
  overflow-y: auto;
}

#title {
  border: .3em dashed green;
  background-color: antiquewhite;
  justify-content: center;
  align-content: center;
  margin: 1% 3% 0%;
}

#picture {
  display: none;
}

h1 {
  display: block;
  position: relative;
  margin: .5% .5%;
}

article {
  display: block;
  position: relative;
  word-wrap: break-word;
  word-break: keep-all;
  border: .3em dashed green;
  background-color: antiquewhite;
  margin: 1% 3%;
}

#comment {
  display: flex;
  flex-direction: column;
  position: relative;
  margin: auto 3%;
  grid-row-gap: 1.0em;
}

#submit {
  width: 6.0em;
  height: 2.0em;
}

textarea {
  display: block;
  position: relative;
  color: darkgreen;
  background-color: antiquewhite;
  word-wrap: break-word;
  word-break: keep-all;
  height: 5.0em;
  width: 15.0em;
}

footer {
  display: grid;
  grid-area: footer;
  width: 100%;
  height: 100%;
  margin: 0.0em auto;
  border: .3em dashed purple;
  background-color: antiquewhite;
}

#formDiv2 {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto auto auto;
  justify-content: center;
  align-content: center;
  min-height: 11em;
}

#formLogin, #formregister {
  display: grid;
  position: relative;
  justify-content: center;
  align-items: center;
  margin:calc(10%) auto;
  border: 0.3em dashed gold;
  row-gap: 0.25em;
}

#formLogin label, #formregister label {
  color: yellow;
}

#logout {
  margin: 0.0em auto;
  width: 6.2em;
  height: 2.0em;
}

#logindiv, #registerdiv {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 2;
  top: 25%;
  right: 50%;
  background-color: lightseagreen;
  width: 16em;
  height: 22em;
  border: .3em dashed brown; 
}

#logindiv {
  height: 16em;
}

.logindivh3, .registerdivh3 {
  margin-top: 1.0em;
  margin-left: 1.0em;
  font-size: 1.0em;
}

#loginerror {
  display: grid;
  margin: 0.0em auto;
  align-items: center;
  justify-content: center;
  color: red;
}

#logoutDiv {
  display: grid;
  justify-content: center;
  align-items: center;
  margin: 0.0em auto;
}

#headerTitle {
  display: grid;
  justify-self: center;
  align-self: center;
  font-size: 1.4em;
}

#reglogDiv {
  display: inline-flex;
  position: relative;
  flex-wrap: wrap;
  row-gap: .2em;
  flex-direction: row;
  position: relative;
  right: 5.0em;
  justify-self: right;
  align-self: top;
  width: 6.8em;
  height: 3.8em;
  font-size: 0.4em;
  margin: 0.5em auto;
}

#submitregistration, #submitlogin {
  display: block;
  margin: 0.0em auto;
  margin-bottom: 0.5em;
}

#btnlogin, #btnregister {
  margin: 0.0em auto;
  width: 6.0em;
  height: 1.6em;
}

#btncancellogin, #btncancelregistration {
  display: grid;
  position: relative;
  margin: 0.0em auto;
}