:root {
    --bluecolor:#5382d4;
}

body {
  width: 100%;
  
  font-size: 16px;
  font-family: "Raleway", sans-serif;
  color: #5382d4;

  display: grid;
  grid-template-rows: 0.1fr 0.6fr 0.6fr 0.1fr;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas:
    "header header header"
    "splash splash splash"
    "articleContainer articleContainer articleContainer"
    "footer footer footer";
}

.showcase {
  /*for mobile menu */
  position: absolute;
  right: 0;
  transition: 0.5s;
}

a:link {
  text-decoration: none;
  color: #5382d4;
}

a:visited {
  color: #5382d4;
}
nav {
    padding-right: 10px;
}
nav ul {
  height: 60px;
}
nav ul li {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  top: 0;
  transition: top ease 0.3s;
}
nav ul li:hover {
  top: -4px;
  cursor: pointer;
}

a:active {
  text-decoration: underline;
}

h1 {
  font-size: 2em;
}

header {
  padding: 10px 0px;
background-color: white;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

  grid-area: header;
}

#logo {
  width: 80px;
  height: auto;
  float: left;
  padding-left: 15px;
}

#desktop {
  display: flex;
  flex-direction: row;
  margin-right: 5px;
}

.mobile {
  position: absolute;
  right: -300px;
  top: 0px;
  width: 300px;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  text-align: center;
  height: 100%;
  z-index: -2;
  background-color: rgba(256, 256, 256, 0.9);
  
  
}

.mobile li {
  padding: 20px 0;
  position: relative;
  top: 0;
  transition: top ease 0.3s;
}

.mobile li:hover {
  cursor: pointer;
  top: -10px;
}

.toggleBars,
.toggleX {
  align-items: center;
  cursor: pointer;
  display: none;
}
.toggleBars .fa,
.toggleX {
  margin: 15px;
}
.navBtn {
  margin: 0px 10px;
}

#myVideo {
    position:fixed;
    right:0;
    bottom:0;
    min-width:100%;
    min-height:100%;
    z-index: -1000;
    
}
.splash {
  grid-area: splash;
  width: 100%;
/*  background: url(/img/trees1r.jpg) no-repeat center -100px fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;*/
}

.splashTitle {
  padding: 300px 0 300px 0;
  font-size: 100px;
  font-family: "Work Sans", sans-serif;
  color: white;
  text-shadow: 1px 1px 1px grey;
  text-align: center;
}

.pageTitle {
    height:100px;
    background-color:#5382d4;
    color:white;
    display: flex;
  justify-content: center;
  align-items: center;
}
.articleContainer {
  grid-area: articleContainer;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: white;
}

article {
  
    margin: 20px 0px;
  padding: 0px 20px;
  width: 33.3%;
  border-left: 1px solid #ededed;
  border-right: 1px solid #ededed;
}
.vote {
    width:100%;
    padding:0 20%;
}
article h1 {
  text-align: center;
}

article a:hover,
article a:active {
  color: green;
}

article p {
  margin: 10px 0px;
  text-align: justify;
  text-justify: inter-character;
}

article img {
  width: 150px;
  padding: 5px 5px 15px 25px;
  float: right;
}

/*FOOTER///////////////////////////////////////////////////////////////*/
footer {
  grid-area: footer;
  background-color: #5382d4;
  padding: 10px 0;
 
}
#footerMenu {
  width: 150px;
  margin: auto;
  text-align: center;
}

#footerMenu a {
  float: none;
  clear: both;
  padding: 10px;
  display: block;
  color: white;
}

#footerMenu a:hover {
  text-decoration: underline;
}

#socialMedia {
  width: 225px;
  margin: auto;
  display: flex;
  flex-direction: row;
}
.icon {
  width: 45px;
  height: 45px;
  margin: 15px;
  background-image: url("../img/socialmedia.png");
  background-size: 200px auto;
  background-repeat: no-repeat;
}

.facebook {
  background-position: -16px -16px;
}
.twitter {
  background-position: -77px -16px;
}
.google {
  background-position: -16px -77px;
}



input[type=button], input[type=submit], input[type=reset] {
  background-color: var(--bluecolor);
  border: none;
  color: white;
  padding: 16px 100px;
  text-decoration: none;
  display:block;
  width:50%;
  margin: 4px auto;
  cursor: pointer;
}

/*////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////
MEDIA QUERIES
/////////////////////////////////////////////////////////*/

@media only screen and (max-width: 900px) {
  .splashTitle {
    font-size: 65px;
  }

  article img {
    width: 100%;
    padding: 0;
    margin: 0 0 10px 0;
    float: none;
  }
}

@media only screen and (max-width: 600px) {
  body.active {
    right: 300px;
  }
  .showcase.active {
    right: 300px;
  }
  .toggleBars {
    display: block;
  }
  .toggleBars.active {
    cursor: pointer;
    display: none;
    transition: 0.5s;
  }

  .toggleX.active {
    cursor: pointer;
    display: block;
    transition: 0.5s;
  }

  .splashTitle {
    font-size: 45px;
  }
  
  .mobile.active {
      right:0;
    display: flex;
    
  }
  

  .articleContainer {
    flex-direction: column;
   padding: 0 15px;
  }

  article {
    width: 100%;
    padding: 20px 0;
    margin: 0;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid #ededed;
  }
  
  .vote {
      width:100%;
      padding:0;
  }
  #desktop {
    display: none;
  }
  
}
