:root {
    --overlay-color: rgba(82, 52, 36, 0.5);
    --def-color: rgb(82, 52, 36);
}

hr {
    color: var(--def-color);
}

body {
    background-color: #3b3b3b;
    background-image: url('./wood.jpg');
    background-size: 2000px;
    background-attachment: fixed;
    color: white;
    font-family: 'Share Tech', serif;
    font-weight: 600;
    font-style: normal;
}

h1 {
    color: cadetblue;
    font-family: 'Courier New', Courier, monospace;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding-top: 50px;
}

@media (min-width: 769px) {
    .header {
        font-size: 30px;
    }

    .text {
        font-size: 25px;
    }

    .flex-bar {
        padding: 10px;
        width: 70%;
        height: 20px;
        text-align: center;
        display: flex;
        flex-direction: row;
        justify-content: center;
        position: relative;
    }

    .lightbox {
        display: none;
        position: fixed;
        top: 0px;
        left: 0px;
        z-index: 1;
        padding: 10px;
        background-color: rgba(0, 0, 0, 0.7);
        background-repeat: repeat;
        width: 100%;
        height: 100%;
        overflow: auto;
    }

    .lightboxcaption {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-top: 20px;
        padding: 20px;
        color: white;
        position: absolute;
        text-align: center;
    }

    .lightboxtext {
        width: 40%;
        background-color: rgba(0, 0, 0, 0.8);
        padding: 20px;
        border-radius: 10px;
    }

    .lightboximage {
        margin-left: 10px;
        margin-right: auto;
        padding-top: 5%;
        cursor: default;
        max-height: 700px;
        border-radius: 10px;
    }

    .lightboxx {
        font-size: 50px;
        color: white;
        margin-left: auto;
        margin-right: 10px;
        padding-top: 5%;
        cursor: pointer;
    }
}

.flex-item {
    padding: 10px;
    margin: 10px;
    width: 70%;
    text-align: center;
    border-radius: 10px;
    background-color: var(--overlay-color);
}

@media (max-width: 768px) {
    .container {
        padding-left: 0px;
    }

    .lightbox {
        display: none;
        position: fixed;
        top: 0px;
        left: 0px;
        margin-left: -20px;
        z-index: 1;
        padding: 10px;
        background-color: rgba(0, 0, 0, 0.7);
        background-repeat: repeat;
        width: 100%;
        height: 100%;
        overflow: auto;
    }

    .lightboxcaption {
        margin: 20px;
        padding: 20px;
        color: white;
        position: absolute;
        text-align: center;
        text-wrap: wrap;
        background-color: rgba(0, 0, 0, 0.8);
        border-radius: 10px;
    }

    .lightboximage {
        margin-left: 0px;
        margin-right: auto;
        margin-top: 25px;
        cursor: default;
        max-width: 75vw;
        border-radius: 10px;
    }

    .lightboxx {
        font-size: 25px;
        color: white;
        margin-left: auto;
        margin-right: 10px;
        padding-top: 5%;
        cursor: pointer;
    }
}

.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 2px dotted black;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    border-radius: 5px;
    position: absolute;
    z-index: 1;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

.icon {
    height: 90px;
    margin-top: -60px;
    margin-right: 20px;
    margin-left: 20px;
}

.button {
    margin-top: -5px;
    margin-left: 20px;
    margin-right: 20px;
    padding: 5px;
    width: 75px;
    background-color: #cecfc7;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    height: 100%;
    transition: 0.5s;
}

.button:hover {
    background-color: rgb(170, 170, 170);
    transition: 0.5s;
}

a {
    text-decoration: underline;
    color: white;
}

a:hover {
    text-decoration: none;
}

#info2 {
    display: none;
}

.margin20 {
    margin: 20px;
}

.movein {
    position: relative;
    top: 0px;
    animation: move 1.5s;
    -moz-animation: move 1.5s;
    -webkit-animation: move 1.5s;
}

@keyframes move {
    from {
        top: 500px;
    }

    to {
        top: 0px;
    }
}

.fadein {
    scale: 1;
    opacity: 1;
    animation: size 1s;
    -moz-animation: size 1s;
    -webkit-animation: size 1s;
}

@keyframes size {
    from {
        scale: 2;
        opacity: 0;
    }

    to {
        scale: 1;
        opacity: 1;
    }
}

.footer {
    font-size: 20px;
}

.text li {
    margin: 20px 0px;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    justify-content: center;
    padding-left: 0px;
}

.griditem {
    width: 30%;
    height: 30%;
    margin: 5px;
}