:root {
    --text: hsl(0, 0%, 89%);
    --bg: #131618;
    --bg2: #242729;
    --link: #4e9ab4;
    --nav: #1a1c1d
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: sans-serif;
    display: flex;
    min-height: 100vh;
    flex-direction: column
}

main {
    flex: 1;
    display: block
}

p,ul {
    line-height: 1.6
}

h1 {
    font-size: 2rem
}

a {
    color: var(--link);
    text-decoration-color: #3e5b65;
    text-decoration-thickness: 2px
}

a:hover {
    color: #82a3c4;
    text-decoration-color: #82a3c4
}

td {
    border-width: 1px;
    border-color: #283037;
    border-style: solid
}

nav {
    padding-top: .8rem;
    background: var(--nav);
    padding-bottom: .3rem;
    border-bottom: 2px solid #1f2223;
    position: sticky;
    top: 0;
    z-index: 1
}

.navcontent {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 124ch;
    margin: 0 auto
}

nav a:not(:first-child):not(.btn) {
    margin-left: 1rem;
    color: #bfbfbf;
    text-decoration: none;
    position: relative
}

nav a:not(:first-child):not(.btn)::after {
    content: '';
    position: absolute;
    background: var(--link);
    height: 3px;
    width: 100%;
    left: 0;
    bottom: -.2rem;
    scale: 0 1;
    transition: scale 250ms
}

nav a:not(:first-child):not(.btn):hover::after {
    scale: 1 1
}

section h2 {
    font-size: 1.2em;
    margin-bottom: 1px
}

section {
    padding: 0 1em;
    max-width: 120ch;
    margin: 0 auto
}

.blogroll {
    max-width: 108ch;
    margin: 0 auto
}

.blogroll a {
    text-decoration: none
}

.head {
    font-size: 1.8rem
}

.about {
    background-color: #202427;
    background-image: url(/twiga.png);
    background-size: 196px,196px;
    background-position: 80% 75%;
    background-repeat: no-repeat;
    max-width: 100%;
    padding: 1px;
    box-shadow: inset 0 11px 8px -10px #262626,inset 0 -11px 8px -10px #262626
}

.about h2 {
    margin-top: 12px;
    font-size: 3rem;
    text-shadow: 5px 5px #191b1f
}

.project {
    max-width: 90%
}

.project hr {
    margin-top: -15px;
    margin-bottom: 15px;
    width: 20%;
    margin-left: 0;
    border: 0;
    border-bottom: 2px solid #373d43
}

.inproject {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between
}

.inproject p {
    margin-top: -7px
}

.inproject img {
    margin-top: -75px;
    transform: rotate(-9deg)
}

.end {
    display: flex;
    padding-top: 1rem;
    padding-bottom: 1rem;
    gap: 1.2rem
}

.contact {
    background-color: #014e4f;
    margin: 0 auto;
    margin-top: 12px;
    border: 3px solid #013132;
    padding: 12px;
    border-radius: .25rem
}

.contact h2 {
    margin-top: -2px
}

.donate {
    background-color: #014f23;
    margin: 0 auto;
    margin-top: 12px;
    border: 3px solid #0d3201;
    padding: 12px;
    border-radius: .25rem
}

.donate h2 {
    margin-top: -2px
}

.services .desc {
    margin-top: -4px
}

.showcase {
    display: flex;
    flex-wrap: wrap;
    justify-content: center
}

.showcase a {
    color: #fff;
    text-decoration: none
}

.inner {
    padding: .3rem;
    border-radius: 5px;
    background-color: rgba(0,0,0,.6)
}

.desc {
    color: #879096;
    margin-top: 3px;
    font-size: 11pt
}

.memberbox {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    max-width: 40%;
    margin: auto;
    font-size: 1.2em
}

.memberbox h1 {
    font-size: 4em
}

footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-image: url(/twiga.png);
    background-size: 60px,60px;
    background-position: 100% 100%,100% 0;
    background-repeat: no-repeat;
    background-color: var(--nav);
    padding: 1rem;
    margin-top: 12px;
    border-top: 1px solid #1f2223
}

footer h1 {
    font-size: 20pt
}

footer a {
    padding-right: 8px;
    color: #fff;
    text-decoration: none;
    padding-left: 12px
}

footer a:hover {
    text-decoration: underline
}

.button {
    text-decoration: none;
    font-weight: 600;
    color: var(--text);
    padding: 7px;
    background-color: #0d3201;
    text-align: center;
    cursor: pointer;
    transition-duration: .4s;
    border-radius: .2rem;
    display: inline-block
}

.button:hover {
    background-color: var(--link);
    color: var(--bg)
}

.latest {
    background: var(--bg2);
    display: flex
}

.latest h2,.latest p {
    margin: 8px 0
}

.latest h2 {
    font-size: 1.6em
}

.latest a {
    color: #fff;
    text-decoration: none
}

.latest a:hover {
    color: #bbb
}

.latest section {
    background: #0f0f10;
    border: 4px solid #1a1a1a;
    flex-grow: 1;
    max-width: 96ch;
    margin: 10px auto;
    border-radius: .25rem
}

.blogtitle {
    background: var(--bg2);
    padding: 1rem
}

.blogtitle h1,.blogtitle p {
    margin: 8px 0
}

.blogtitle h1 {
    font-size: 2.4rem
}

.blogtitle a {
    color: #fff;
    text-decoration: none
}

.buttons {
    display: flex
}

summary {
    cursor: pointer
}

@media(max-width: 900px) {
    .about {
        background-image:none
    }

    .inproject img {
        margin-top: 0;
        justify-content: center
    }

    .inproject {
        flex-direction: column;
        align-items: center;
        justify-content: center
    }

    .about {
        border: none;
        padding: 2px
    }

    .latest {
        background: #0d0d13
    }

    .latest section {
        border: none
    }

    nav {
        padding-left: 1em
    }
}

@media screen and (prefers-reduced-motion:reduce) {
    * {
        animation: none!important
    }
}



div.gallery {
  border: 1px solid #8a8a8a;
  aspect-ratio: 3 / 2;
}

div.gallery:hover {
  border: 1px solid #777;
}

div.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

div.desc {
  padding: 15px;
  text-align: center;
}

* {
  box-sizing: border-box;
}

.responsive {
  padding: 0 6px;
  float: left;
  width: 25%;
}

.gridd {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: masonry;
}

@media only screen and (max-width: 700px) {
  .responsive {
    width: 50%;
    margin: 6px 0;
  }
}

@media only screen and (max-width: 500px) {
  .responsive {
    width: 100%;
  }
}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}




#myImg {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

#myImg:hover {opacity: 0.7;}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation */
.modal-content, #caption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
}