* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.body-container {
	background-color: #efefef;
  font-family: Trebuchet MS, Helvetica, Arial;
  display: -webkit-flex;
	display: flex;
  -webkit-flex-direction: column;
	flex-direction:column;


}
/*
.popup-container {
  background-color: #efefef;
  display: -webkit-flex;
  display: flex;
  justify-content: center;
}

.popup {
  background-color: #efefef;
  width: 100%;
  padding-right: 5px;
  display: -webkit-flex;
  display: flex;
  justify-content: center;
}
*/

.header-container {
  background-color: white;
  display: -webkit-flex;
  display: flex;
  justify-content: center;
}

.header {
  background-color: white; /*#B3E5FC*/
  width:1100px;
  padding: 20px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  justify-content: center;
}

.header-text {
  display: -webkit-flex;
  display: flex;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  -webkit-flex-direction: column;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


.main-container {
  background-color: #efefef;
  margin-top: 0.5em;
  display: -webkit-flex;
  display: flex;
  justify-content: center;
}

.main {
	width: 1100px;
	background-color: #efefef;

}

.content {
  background-color: white;
  padding: 20px;
  margin-bottom: 0.5em;
  box-shadow: 3px 3px #e0e0e0;
}

.sidebar {
  background-color: #efefef;
}

.topbar-container {
  order: 0;
  background-color: #333;
  margin-bottom: 0.5em;
  display: -webkit-flex;
  display: flex;
  justify-content: center;    /* Add this */
}

.topbar {
  background-color: #333;
  width: 1100px;
  padding: 5px;
  color: white;
  display: -webkit-flex;
  display: flex;
  justify-content: space-between;
}

.sidebar-item {
  background-color: white;
  padding: 10px 20px 10px 20px;
  margin-bottom: 0.5em;
  box-shadow: 3px 3px #e0e0e0;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  align-items: flex-start;
}


.footer {
  background-color: #333;
  padding: 5px;
  color: white;
  box-shadow: 3px 3px #e0e0e0;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  align-items: center;
}

.links {
  border: 1px solid #fff;  /* For debugging */
  display: flex;
  justify-content: flex-end;
}

.signup {
  margin-left: auto;
}

.login {
  margin-left: 20px;
}

.site-title > h1 {color: #000; text-align: center; font-size: 2.25em; margin-top: 0em; margin-bottom: 0.33em;}
.site-description > h2 {color: #555; text-align: center; font-size: 1.2em; margin-top: 0em; margin-bottom: 0em;}

.content > h1 {font-size: 2em; margin-top: 0.67em; margin-bottom: 0.67em; }
.content > h2 {font-size: 1.5em; margin-top: 1em; margin-bottom: 1em; clear: both;}
.content > p {font-size: 1em; margin-bottom: 1em; line-height: 1.5em;}
.content > h4 {font-size: 1em; display: inline;}

.sidebar-item > h1 {font-size: 1.5em; margin-bottom: 1em;}
.sidebar-item > p {font-size: 1em; margin-bottom: 1em;}

.footer > p {font-size: 0.9em; margin-top: 0.33em; margin-bottom: 0.33em;}
.footer a:link, .footer a:visited {color:#ddd; text-decoration: none;}
.footer a:hover {color:#08f; text-decoration: none;}

.form-input > p {font-size: 1em; margin-top: 0em; margin-bottom: 0.33em;}
.form-input > input {width: 100%; padding: 5px 5px; box-sizing: border-box; border: 2px solid #c0c0c0}
.form-input > textarea {width: 100%; resize: none; padding: 5px 5px; box-sizing: border-box; border: 2px solid #c0c0c0;}
.form-input > button {background-color: #333; color: white; padding: 10px 20px; resize: none; border-radius: 5px;}
.form-input > button:hover {background-color: #4CAF50; color: white;}
.form-input > h2 {font-size: 1em; margin-top: 1em; margin-bottom: 1em; clear: both;}

.sidebar-item a:link, .sidebar-item a:visited {
    color:#0000EE; text-decoration: none;
}
.sidebar-item a:hover {
    color:black; text-decoration: none;
}

button,
input,
select,
textarea {
    font-size: 1em;
    line-height: 1.5em;
    margin-bottom: 1em;
}

input:focus, textarea:focus {
  border: 2px solid #4CAF50;
  outline: none;
}
{
  border: 1px solid #4CAF50;
  background: #FFFFE0;
}

.logo {
  margin: 5px;
  width: 75px;
  align-self: center;
}

.social,
.subscribe {
  align-self: flex-end;
  margin-bottom: 20px;
}

.fig {
  float: left;
  width: 150px;
  margin: 0 20px 20px 0;
}

.link-list {
  margin-left: 2em;
  margin-bottom: 0.67em;
}

.screenshot-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.screenshot {
  margin: 1em;
  width: 200px;
  height: 356px;
}

summary {
  color: #0080ff;
}

.feature-container {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

/* text over image container */
.img-text-container {
  position: relative;
  text-align: center;
  color: white;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #004080;
}


/* Centered text */
.centered-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.feature-img {
  width: 250px;
  margin: 5px;
}


/* Style the navigation menu */
nav {
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  background: #333;
  box-shadow: 3px 3px #e0e0e0;
}
.inner-nav {
  max-width: 1100px;
  margin: auto;
}

/* Style the list inside the menu */
nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #333;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}


nav li {
  float: left;
}

nav li a {
  display: block;
  color: white;
  text-decoration: none;
  background-color: #333;
  margin: 0px 5px;
  padding: 5px;
}

nav li a:hover {
  background-color: #111;
}

/*.inner-nav {display: none;}*/


@media screen and (min-width: 768px){

  .popup-container {
    display: none;
  }
  .popup {
    width: 1100px;
    margin: auto;
  }
  .header {
    width: 1100px;
    background-color: white;
    -webkit-flex-direction: row;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
  }
  .header-text {
    align-items: flex-start;
  }
  .main {
    display: -webkit-flex;
    display: flex;
	flex-wrap: wrap;
  }
  .content {
    margin-right: 1em;
    -webkit-flex: 1;
    -ms-flex: 1;
	flex: 1;
  }
  .sidebar {
    width: 200px;
    -webkit-flex: initial;
    -ms-flex: initial;
    flex: initial;

  }
  .logo {order: -1; width: 100px; margin-left: 0px;}
  /*.popup {display: none;}*/
  .site-title > h1 {font-size: 2.5em;}
  .site-description > h2 {font-size: 20px; text-align: left;}
  /*.inner-nav {display: block;}*/

  nav ul {
    justify-content: flex-start;
  }

  nav li {
    float: left;
  }

  nav li a {
    background-color: #333;
    margin: 0;
    padding: 14px 16px;
  }

  /*.nav-extra {display: none;} */

  .form-input > input {width: 70%;}
  .form-input > textarea {width: 70%;}
  .form-input > h2 {font-size: 1.25em;}


}
