/*
    CSS file created by Lars Skjærbæk
*/

body {
    width: 90%;
    margin: auto;
    
}

#header {
    width: 100%;
    margin: auto;
    padding-top: 5px;
    padding-bottom: 5px;
    background-color: #E4B7A1;
    color: black;
    text-align: center;
}

#nav {
    width: 100%;
    margin: auto;
    padding-top: 2px;
    padding-bottom: 2px;
    background-color: #A97956;
    text-align: center;
}

#section {
    float: left;
    text-align: left;
    width: 56%;
    margin: 2%;
}

#aside {
  float: left;
  text-align: center;
  width: 36%;
  margin: 2%;
}

#footer {
    float: left;
    width: 100%;
    margin: auto;
    padding-top: 1px;
    padding-bottom: 1px;
    background-color: #A97956;
    color: black;
    text-align: center;
}

#menu {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #A97956;
}

.menuPunkt {
    float: left;
}

.menuPunkt a {
    display: block;
    color: black;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    background-color: #A97956;
}

.menuPunkt a:hover {
    background-color: #E4B7A1;
}

/* mobil optimeret design */
@media screen and (max-width: 800px) {

    #section {
      width: 100%;
      margin: auto;
    }

    #aside {
      width: 100%;
      margin: auto;
    }
    }
    div.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

div.gallery-item {
  margin: 5px;
  border: 1px solid #ccc;
  width: calc(50% - 20px);
}

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

div.gallery-item img {
  width: 100%;
  height: auto;
}

div.gallery-item div.desc {
  padding: 15px;
  text-align: center;
}
.gallery-item {
    position: relative;
    width: 220px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    display: block;
}


.overlay {
    position: absolute;
    top: -100%;               
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    transition: top 0.4s ease; /* animation */
}

/* Hover-effekt */
.gallery-item:hover .overlay {
    top: 0;   /* ruller ned over billedet */
}
#section p {
    font-size: 20px;
}
