.team {
    main {
        position: relative;
        height: 400px;
        width: 100%;
        overflow: hidden;

        .overlay {
            position: absolute;
            top: 0;
            z-index: -1;
            width: 100%;
            height: 100%;
            background: rgba(black, 0.6);
        }

        img {
            position: absolute;
            width: 100%;
            height: inherit;
            top: 0;
            z-index: -2;
        }

        .container {
            height: 100%;
        }
    }

    .about-us {
        margin: 5rem 0;

        .container {
            display: flex;
            flex-direction: column;

            .title {
                text-align: right;
            }

            .content {
                display: flex;
                justify-content: flex-end;
                align-items: center;

                .logo {
                    display: flex;
                    margin-right: 8em;
                    justify-content: center;
                    align-items: center;
                    width: 300px;

                    img {
                        width: 300px;
                    }
                }
                
                .paragraphs {
                    max-width: 43rem;
                }
            }
        }
    }

    .history {

        .container {
            display: flex;
            flex-direction: column;

            .title {
                text-align: left;
            }
            
            .content {
                display: flex;
                justify-content: flex-start;
                align-items: center;

                .logo {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    width: 300px;

                    img {
                        width: 300px;
                    }
                }
                
                .paragraphs {
                    margin-right: 8em;
                    max-width: 43rem;
                }
            }
        }
    }

    .members {
        margin: 10rem 0;

        .container {

            .title {
                text-align: center;
            }

            .grid {
                display: flex;
                flex-wrap: wrap;
                justify-content: center;

                .team-panel {
                    margin: 2rem 1rem 0 1rem;
                    width: 350px;
                    padding: 2rem;
                    background: lighten(black, 20%);
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    border-radius: 10px;
    
                    .pfp {
                        width: 200px;
                        height: 200px;
                        margin-bottom: 2rem;
                        border-radius: 50%;
                        overflow: hidden;
    
                        img {
                            width: 200px;
                            height: 200px;
                        }
                    }
    
                    .name {
                        font-weight: 500;
                        text-align: center;
                    }
    
                    .roles {
                        margin: 1rem 0;
                        display: flex;
                        font-size: 1rem;
    
                        .role {
                            color: $brand-color;
                            padding: 5px 1rem;
                            border: 2px solid $brand-color;
                            border-radius: 20px;
                            text-align: center;
                            margin: 10px;
                        }
                    }
    
                    .socials {
    
                        .social {
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            
                            a {
                                margin-left: 10px;
                                color: $brand-color;
                                transition: 0.2s ease-out;
    
                                &:hover {
                                    color: lighten($brand-color, 40%);
                                }
                            }

                            &.twitch {
                                margin-top: 0.7rem;
                            }
                        }
                    }
                }
            }
        }
    }
}

@media only screen and (max-width: 1200px) {
    .team {
        main {
            height: 250px;

            .main {
				margin: 0;
                font-size: 2rem;
            }
        }

        .about-us {
            .container {
                .title {
                    text-align: center;
                }

                .content {
                    flex-direction: column;

                    .logo {
                        margin-right: 0;
                    }
                }
            }
        }

        .history {
            .container {
                .title {
                    text-align: center;
                }

                .content {
                    flex-direction: column-reverse;

                    .paragraphs {
                        margin-right: 0;
                    }
                }
            }
        }
    }

    .members {
        .team-panel {
            .roles {
                flex-direction: column;
            }
        }
    }
}
