/* ============================================
   FEATURES / ABOUT SECTION - DESKTOP FIRST (Original Style)
   ============================================ */

.features {
    padding: 1vw;
    display: flex;
    justify-content: center;
    margin-top: -10vw;
    height: 30vw;
    background: transparent;
}

.about-box {
    background: transparent;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 60vw;
    height: 30vw;
}

/* ============================================
   ABOUT SERVER CARD
   ============================================ */

.about-server {
    background: var(--boxcolor);
    width: 40vw;
    height: auto;
    min-height: 25vw;
    overflow: visible;
    transition: ease 500ms;
    box-shadow: 0 0 1px lightblue;
}

.about-server:hover {
    transition: ease 500ms;
    transform: translateY(-0.5vw);
}

.about-server .img {
    background: transparent;
    height: 15vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-server img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: ease 500ms;
    opacity: 1;
}

.about-server img:hover {
    transform: scale(110%);
    backface-visibility: hidden;
    transition: ease 500ms;
    border: lightblue 0.01px solid;
}

.about-content {
    padding: 1vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
}

.about-content h4 {
    font-family: var(--pixelfont);
    color: yellowgreen;
    font-size: 1.5vw;
    margin: 0 0 0.5vw 0;
    text-shadow: 0 0 2px black;
    line-height: 1.4;
}

.about-content p {
    margin: 0;
    color: aliceblue;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 100;
    text-align: justify;
    font-size: 1vw;
    line-height: 1.6;
}

/* ============================================
   ABOUT TEAM CARD
   ============================================ */

.about-team {
    background: var(--boxcolor);
    border: aliceblue 2px 2px;
    width: 15vw;
    height: 25vw;
    margin-left: 0.5vw;
    overflow: visible;
    box-shadow: 0 0 1px lightblue;
    transition: ease 500ms;
    display: flex;
    flex-direction: column;
}

.about-team:hover {
    transition: ease 500ms;
    transform: translateY(-0.5vw);
}

.about-team .img {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 1;
    transition: ease 500ms;
}

.about-team .img:hover {
    border: lightblue 0.01px solid;
}

.about-team .img:hover img {
    transform: scale(150%);
    transition: ease 500ms;
}

.about-team img {
    width: auto;
    height: 15vw;
    transition: ease 500ms;
}

.about-team a {
    padding: 2vw 1vw;
    font-family: var(--pixelfont);
    color: lightblue;
    font-size: 2vw;
    text-shadow: 0 0 2px black;
    opacity: 80%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: ease 500ms;
    line-height: 1.4;
}

.about-team a:hover {
    color: var(--maincolor);
    transition: ease 500ms;
    letter-spacing: 0.1vw;
}

/* ============================================
   ADDONS SECTION
   ============================================ */

.about-addons {
    display: grid;
    grid-template-rows: auto auto auto;
    background: transparent;
    height: 50vw;
    align-items: center;
    justify-content: center;
}

.addons-box {
    background: transparent;
    height: 7vw;
    width: 55vw;
    display: grid;
    grid-template-columns: auto auto auto;
    justify-content: center;
    align-items: center;
}

.addons-inside {
    background: transparent;
    background-size: cover;
    height: 6vw;
    width: 16vw;
    margin: 0.5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 1px lightblue;
    overflow: hidden;
    transition: ease 300ms;
    opacity: 0.5;
}

.addons-inside:hover {
    transform: scale(110%);
    transition: all ease 300ms;
    border: lightblue 0.01px solid;
    opacity: 1;
}

.addons-inside p {
    font-family: var(--pixelfont);
    color: lightblue;
    font-size: 0.8vw;
    text-align: center;
    padding: 0.5vw;
}

/* Animated show/hide for boxes 3+ */
.about-addons .addons-box:nth-child(n + 3) {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    overflow: hidden;
    transition:
        max-height 500ms ease,
        opacity 500ms ease,
        transform 500ms ease;
}

.about-addons.expanded .addons-box:nth-child(n + 3) {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

/* Button styling */
#addons-toggle {
    display: block;
    margin: 0.4rem auto 0;
    padding: 1vw 1.1rem;
    background: var(--boxcolor);
    box-shadow: 0 0 1px lightblue;
    border: lightblue 0.01px solid;
    color: lightblue;
    cursor: pointer;
    font: inherit;
    font-family: var(--pixelfont);
    transition: all ease 500ms;
}

#addons-toggle:hover {
    padding: 1vw 20vw;
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    .features {
        padding: 1vw;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 10vw;
        height: auto;
        background: transparent;
    }

    .about-box {
        display: grid;
        grid-template-rows: auto auto;
        justify-content: center;
        align-items: center;
        background: transparent;
        height: auto;
    }

    .about-server {
        height: auto;
        width: 85vw;
    }

    .about-server .img {
        background: transparent;
        height: 40vw;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .about-server img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: ease 500ms;
        opacity: 1;
    }

    .about-server img:hover {
        transform: scale(110%);
        height: 20vw;
        backface-visibility: hidden;
        transition: ease 500ms;
        border: lightblue 0.01px solid;
    }

    .about-content {
        padding: 3vw;
    }

    .about-content h4 {
        font-family: var(--pixelfont);
        color: yellowgreen;
        font-size: 4vw;
        margin-top: 1px;
        text-shadow: 0 0 2px black;
    }

    .about-content p {
        margin-top: -10px;
        color: aliceblue;
        font-family: Arial, Helvetica, sans-serif;
        font-weight: 100;
        text-align: justify;
        font-size: 3.2vw;
        margin-top: 5px;
        line-height: 1.5;
    }

    .about-team {
        display: none;
    }

    #addons-toggle {
        display: none;
    }

    #addons-toggle:hover {
        padding: 1vw 20vw;
    }

    .about-addons {
        display: none;
    }
}
