:root {
    --border: rgb(201, 201, 201);
}

body {
    background-color: #240505;
    background-image: url('./nebula.jpg');
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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;
}

.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;
}

.scroll-shadows {
    overflow: auto;
    background:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(255, 255, 255, 0)) center top,
        linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.3) 70%) center bottom,
        radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0)) center top,
        radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0)) center bottom;
    background-repeat: no-repeat;
    background-size: 100% 40px, 100% 40px, 100% 20px, 100% 20px;
    background-attachment: local, local, scroll, scroll;
}

.tint {
    background-color: rgba(0, 0, 0, 0.5);
}

.arrowup {
    width: 0px;
    height: 0px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid black;
    position: absolute;
    display: none;
}

.arrowdown {
    width: 0px;
    height: 0px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid black;
    margin-top: 15px;
    position: absolute;
}

.members {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
    position: relative;
}

.member {
    padding: 10px;
    margin: 10px;
    width: 200px;
    text-align: center;
}

#buttons {
    height: 30px;
    margin-top: -5px;
    margin-left: 20px;
    margin-right: 20px;
    width: 75px;
    background-color: #502b2b;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#buttons:hover {
    background-color: #be9baa;
    transition: 0.5s;
}

#info2 {
    display: none;
}

#backbutton {
    height: 30px;
    margin-top: -5px;
    margin-left: 20px;
    margin-right: 20px;
    width: 75px;
    border: none;
    cursor: pointer;
    position: absolute;
    left: -20px;
}

@media (min-width: 769px) {
    .interests {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        list-style: none;
        padding: 0px;
    }

    .flex-bar {
        padding: 10px;
        width: 70%;
        height: 20px;
        text-align: center;
        border: 1px solid var(--border);
        display: flex;
        flex-direction: row;
        justify-content: center;
        background-color: rgba(0, 0, 0, 0.5);
        position: relative;
    }

    .flex-item {
        padding: 10px;
        margin: 10px;
        width: 70%;
        text-align: center;
        border: 1px solid var(--border);
        background-color: rgba(0, 0, 0, 0.5);
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .interest {
        padding: 10px 10px 20px 0px;
        margin: 10px;
        width: 35%;
        max-height: 250px;
        list-style: none;
    }

    #membericon {
        height: 150px;
        border: 1px solid var(--border);
    }

    #name {
        font-size: 15px;
    }

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

    .header {
        font-size: 22px;
    }

    .text {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .interests {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        list-style: none;
        padding: 0px;
    }

    .flex-bar {
        padding: 10px;
        margin-left: -15px;
        width: 80%;
        height: 20px;
        text-align: center;
        border: 1px solid var(--border);
        display: flex;
        flex-direction: row;
        justify-content: center;
        background-color: rgba(0, 0, 0, 0.5);
        position: relative;
    }

    .flex-item {
        padding: 10px;
        margin: 10px 10px 10px -10px;
        width: 80%;
        text-align: center;
        border: 1px solid var(--border);
        background-color: rgba(0, 0, 0, 0.5);
        display: flex;
        flex-direction: column;
    }

    .interest {
        list-style: none;
    }

    #membericon {
        height: 150px;
        border: 1px solid var(--border);
    }

    #name {
        font-size: 15px;
    }

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

    .header {
        font-size: 22px;
    }

    .text {
        font-size: 20px;
    }
}