/** All Pages **/

body, html {
    background-color:  #2D2C8A;
	color:  antiquewhite;
    font-family: sans-serif;
}

.nav {
    grid-area: nav;
    top: 0;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.nav img {
    width: 25vw; 
}

nav ul {
    list-style: none;
    float: right;  
    margin-top: 50px;
}

nav li {
    display: inline; 
    margin-right: 10px;
    font-weight: bold;
    font-size: 20px;
    color: #FACF46;
    cursor: pointer;
}

nav li:hover {
    opacity: 0.8;
}

a {
    color:  #FACF46;
    text-decoration:  none;
    font-size: 20px;
    font-weight: bold;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    width: 100%;
}

.code {
    background-color: #332929;
    opacity: .9;
    width: auto;
    text-align: center;
    padding: 5px 10px;
    border-radius: 5px;
    color: whitesmoke;
    line-height: 1.5em;
    box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.2), 0 5px 10px 0 rgba(0, 0, 0, 0.19);
}

h3 {
    font-weight: bold;
}

button {
    border-radius: 5px;
    background-color: #FACF46;
    border-style: none;
    padding: 5px 10px;
    font-size: 20px;
    font-weight: bold;
    color: #2D2C8A;
    margin-right: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.2), 0 5px 10px 0 rgba(0, 0, 0, 0.19);
  }

button:hover {
    opacity: 0.8;
}

footer {
    grid-area: footer;
    position:  relative;
	bottom:  0;
    margin:  auto;
	width:  100%;
	text-align:  center;
}

footer a {
	font-weight:  bold;
	font-size:  18px;
}

footer a:hover {
    opacity: 0.8;
}

/** Index Page **/

.index {
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
    grid-template-areas: 
    "nav nav nav"
    ". carousel ."
    ". howpi ."
    ". advert ."
    "footer footer footer";
}

.howpi img {
    width: 40vw; 
}

.advert {
    color: #FACF46;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}


/** Download Page **/

.download {
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-areas: 
    "nav nav"
    "left right"
    "footer footer";
}

.left {
    grid-area: left;
    text-align: center;
}

.right {
    grid-area: right;
    text-align: center; 
}

.twister {
  color: #FACF46;
  font-size: 18px;
  font-weight: bold;
}

.twister img {
    width: 25vw;
}

.twister p {
    cursor: pointer;
}

.twister p:hover {
    opacity: 0.8;
}

.box {
    border-style: solid;
    border-color: #8789d9;
    padding: 20px;
    margin-left: 50px;
    margin-right: 50px;
}

.boxian {
    border-style: solid;
    border-color: #8789d9;
    padding: 15px;
    margin-left: 50px;
    margin-right: 50px;
}

.extrapad {
    padding: 22px !important;
}

/** Twister OS Download Page **/

.twisteros {
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas: 
    "nav nav"
    "left right"
    "footer footer";
}

.current-release {
    width: 25%;
    margin-left: 75px;
  }
    
    @media only screen and (min-width: 1680px) {
        .current-links {
            float: right;
            margin-right: 50px;
            margin-top: -100px;
        }

        .PatchLinks li {
            float: left;
            margin-left: 50px;
            margin-right: 125px;
            margin-top: 10px;
        }

    }

    @media only screen and (max-width: 1679px) {

        .current-release {
            margin-bottom: 50px;
        }
        
        .current-links.ui-downloads-page  {
            display: flex;
            justify-content: center;
        }


        .PatchLinks {
            text-align: center;
        }

        .PatchLinks ul {
            display: inline-block;
            margin-bottom: 50px;
        }

        .PatchLinks li {
            float: left;
        }


    }

    @media only screen and (max-width: 1000px) {

        .current-release {
            margin: 0 auto;
        }
    
    }


    @media only screen and (max-width: 600px) {

        .current-links.ui-downloads-page {
            display: block;
            margin: 0 auto;
         }

        .PatchLinks {
            margin-bottom: 50px
        }

        .PatchLinks ul {
            margin-right: 25%;
        }

        button, span.current-link-items {
            margin-left: auto;
            margin-right: auto;
            margin-top: 20px;
            display: block;
        }

    }


    @media only screen and (max-width: 450px) {
        .PatchLinks ul {
            margin-left: -10%;
        }
    }

    @media only screen and (max-width: 450px) {
        .PatchLinks ul {
            margin-left: -20%;
        }
    }

    .current-links-wrapper {
        text-align: center;
    }

    .PatchLinks {
        text-align: center;
        display: grid;
    }

    .PatchLink {
      list-style: none;
      width: 100%;
    }
  
    .ChangelogLink {
      color:  #FACF46;
      cursor: pointer;
      font-weight: bold;
    }

    .btn {
      margin-top: -2px;
    }
 
    .resize {
        width: 30%;
        margin-top: 50px;
      }

    .version {
        text-align: center;
    }
  
    .popup {
      z-index: 9;
      position: fixed;
      top:50%;
      left:50%;
      transform:translate(-50%, -50%);
      display:none;
      background:#332929;
      color:antiquewhite;
      padding:20px;
      border-radius: 5px;
      box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.2), 0 5px 10px 0 rgba(0, 0, 0, 0.19);
      line-height: 1.8em;
    }
    
    .close {
      color:  #2D2C8A;
      font-weight: bold;
      text-align: center;
      background-color: #FACF46;
      width: 100px;
      padding: 5px;
      border-radius: 5px;
      margin: auto;
    }
  
    .close:hover {
        opacity: 0.8;
    }

/** Twister UI Download Page **/

.twisterui {
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas: 
    "nav nav"
    "left right"
    "footer footer";
}

.installui a:hover {
    opacity: 0.8;
}


.current-link-items {
    margin-right: 50px;
    font-size: 20px;
    font-weight: bold;
}


/** About Page **/

.about {
    height: 100vh;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-areas: 
    "nav nav"
    "blurb blurb"
    "footer footer";
}

.blurb {
    width: 60%;
    line-height: 1.5em;
    text-align: justify;
}

ul {
    list-style: none;
    
}

ul li {
    display: inline;
    margin-left: 25px;
    margin-right: 25px;
}

.sites {
    margin-left: auto;
    margin-right: auto;
    width: 80%;
}

/** FAQ Page **/

.faq {
    height: 100vh;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-areas: 
    "nav nav"
    "questions questions"
    "footer footer";
}

.faqheader {
    text-align: center; 
    margin-bottom: 75px; 
    margin-top: 50px; 
    font-size: 24px; 
    font-weight: bold;
}

.questions {
    width: 60%;
    text-align: justify;
}

.questions h3 {
    color: #c1c2eb;
    font-size: 24px;
    width: auto;
}

.here:hover {
    opacity: 0.8;
}


/** Image Gallery **/

.gallery-container {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}


div.gallery {
    
    margin-left: 100px;
    margin-top: 100px;
  }

div.galleryuser {
    margin-bottom: 100px;
}
  
  div.gallery img {
    width: 100%;
    height: auto;
  }
  
  div.desc {
    padding: 15px;
    text-align: center;
    font-weight: bold;
  }
  
  * {
    box-sizing: border-box;
  }
  
  .responsive {
    padding: 0 6px;
    float: left;
    width: 24.99999%;
  }
  
  @media only screen and (max-width: 700px) {
    .responsive {
      width: 49.99999%;
      margin: 6px 0;
    }
  }
  
  @media only screen and (max-width: 500px) {
    .responsive {
      width: 100%;
    }
  }
  
  .clearfix:after {
    content: "";
    display: table;
    clear: both;
  }