/* 
---------------------------------------------
COUNCIL GALLERY
--------------------------------------------- 
*/

.council {
    margin-top: 4rem;
    background: #2e3267;
    box-shadow: inset 0 0 3rem rgba(0, 0, 0, 0.5);
}

.council__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.council__member {
    background: #424890;
    padding: 2rem;
    border: 1px solid transparent;
    border-radius: 2rem;
    transition: 400ms ease;
    position: relative;
    overflow: hidden;
}

.council__member:hover {
    background: transparent;
    border-color: #6c63ff;
}

.council__member-info * {
    text-align: center;
    margin-top: 1.4rem;
}

.council__member-info p {
    color: rgba(255, 255, 255, 0.7);
}

.council__member-class {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -100%;
    display: flex;
    flex-direction: column;
    background: #6c63ff;
    border-radius: 1rem 0 0 1rem;
    box-shadow: -2rem  0 2rem rgba(0, 0, 0, 0.5);
    transition: 400ms ease;
}

.council__member:hover .council__member-class {
    right: 0;
}

.council__member-class p {
    padding: 1rem;
}

/* 
---------------------------------------------
MEDIA QUERIES (TABLET)
--------------------------------------------- 
*/

@media screen and (max-width: 1024px) {
    .council {
        margin-top: 6rem;
    }

    .council__container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .council__member {
        padding: 1rem;
    }

 /* 
 ---------------------------------------------
 NAVBAR (TABLET)
 --------------------------------------------- 
 */

 nav button {
    display: inline-block;
    background: transparent;
    font-size: 1.8rem;
    color: var(--color-white);
    cursor: pointer;
 }

 nav button#close-menu-btn {
    display: none;
 }

 .nav__menu {
    position: fixed;
    top: 5rem;
    right: 5%;
    height: fit-content;
    width: 18rem;
    flex-direction: column;
    gap: 0;
    display: none;
 }

 .nav__menu li {
    width: 100%;
    height: 5.8rem;
    animation: animateNavItems 400ms linear forwards;
    transform-origin: top right;
    opacity: 0;
 }

 .nav__menu li:nth-child(2) {
    animation-delay: 200ms;
 }

  .nav__menu li:nth-child(3) {
    animation-delay: 400ms;
 }

  .nav__menu li:nth-child(4) {
    animation-delay: 600ms;
 }

 @keyframes animateNavItems {
    0% {
        transform: rotateZ(-90deg) rotateX(90deg) scale(0.1);
    }

    100% {
        transform: rotateZ(0) rotateX(0) scale(1);
        opacity: 1;
    }
 }

 .nav__menu li a {
    background: var(--color-primary);
    box-shadow: -4rem 6rem 10rem rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
 }

 .nav__menu li a:hover {
    background: var(--color-bg2);
    color: var(--color-white);
 }


/* 
---------------------------------------------
MEDIA QUERIES (PHONE)
--------------------------------------------- 
*/

@media screen and (max-width: 600px) {
    .council {
        margin-top: 3rem;
    }

    .council__container {
        grid-template-columns: 1fr 1fr;
        gap: 0.7rem;
    }

    .council__member {
        padding: 0;
    }
    
    .council__member p {
        margin-bottom: 1.5rem;
    }
}
}