@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Space+Grotesk:wght@300..700&display=swap');

*, *::before, *::after{
    box-sizing: border-box;
}

body {
    background-color: white ;
    margin: 0;
    padding-bottom: 0;
}

html, body{
    overflow: auto;
    font-family: 'Bricolage Grotesque', sans-serif;
}

#mainWrapper{
    width: 100%;
    min-height: 100vh;
    overflow: visible;
}

.main{
    width: 100%;
    padding: 40px 0 80px;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.projects, .events, .members{
    margin-right: 5vw;
    margin-left: 5vw;
}

/* nav */
#nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 40px;
    backdrop-filter: blur(100px);
    transition: all 0.5s ease;
    z-index: 1000;
}

#nav.scrolled{
    position: fixed;
    right: 0;
    left: 0;
    top: 20px;
    width: calc(100% - 60px);
    margin: 0 auto;
    border-radius: 50px;
    padding: 15px 25px;
    box-shadow: 0 5px 10px black;
}

#nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

#nav-links a {
    font-family: 'Space Grotesk';
    font-weight: 500;
    color: #000000;
    text-decoration: none;
}

.createbtns{
    display: flex;
    gap: 10px;
}

#new-announcement, #new-meeting {
    background-color: rgb(38, 38, 38);
    border: none;
    color: white;
    padding: 10px 10px;
    border-radius: 14px;
    font-weight: 500;
}

#nav-title {
    text-decoration: none;
    color: #000000;
    font-size: 1.3rem;
    font-weight: 600;
    transition: 0.4s ease;
}

/* login page */
#login{
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    grid-template-columns: 45% 55%;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(90deg, rgb(119, 119, 119), #c0c0c0);
    font-family: 'Bricolage Grotesque', sans-serif;
    overflow: hidden;
}

#login-wrapper{
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 40px;
    background: white;
    border-radius: 0 50px 50px 0;
}

#login-visual{
    width: 100%;
    height: 100%;
}

.login-title{
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

#login-form, #signup-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: min(420px, 100%);
}

.inputicon svg{
    width: 22px;
    height: 22px;
    display: block;
    color: white;
    margin: 0;
}

.inputicon span{
    display: grid;
    place-items: center;
    width: auto;
    height: auto;
    margin: 0;
    color: white;
    font-size: 1.5rem;
    line-height: 1;
    font-family: 'Bricolage Grotesque', sans-serif;
}

.inputicon{
    display: grid;
    place-items: center;
    background: black;
    color: white;
    width: 50px;
    height: 50px;
    margin: 0;
}

.passwordViewBtn{
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    padding: 0;
    background: white;
    color: black;
    border: none;
}

.eyeclosed{
    display: none;
}

#login-submit, #signup-submit{
    margin-top: 20px;
    height: 50px;
    border-radius: 100px;
    border: none;
    color: white;
    background-color: #000000;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.9rem;
    width: 200px;
    transition: all 0.3s ease;
    cursor: pointer;
}

#login-submit:hover, #signup-submit:hover{
    transform: translateY(2px);
    box-shadow: 0 5px 5px rgb(109, 109, 109);
}

#type-switch{
    margin: 0;
    padding-top: 10px;
    font-family: inherit;
    font-size: 1rem;
    color: #585858;
    cursor: pointer;
}

#type-switch:hover{
    color: #000000;
}

.formfield{
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 50px;
    align-items: stretch;
    width: 100%;
    height: 50px;
    overflow: hidden;
    border-radius: 20px;
    background-color: white;
    transition: all 0.3s ease;
}

.formfield input{
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 10px;
    outline: none;
    border: 2px solid white;
    border-radius: 0;
    color: #000000;
    font-family: inherit;
    font-size: 1rem;
}

.formfield:has(input:focus){
    outline: 2px solid #000000;
}

.backbtn{
    position: fixed;
    top: 30px;
    left: 30px;
    color: #000000;
    transition: all 0.3s ease;
}

.backbtn svg{
    width: 30px;
    height: 30px;
}

.backbtn:hover{
    transform: scale(1.15);
}

.backbtn:active{
    transform: scale(0.95);
}

/* hero */
#hero{
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: left;
}

#hero-main{
    padding: 8vw;
}

#hero-title{
    margin: 0;
    font-size: 4rem;
    font-weight: 500;
}

/* buttons and header */
.section-header{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    padding: 20px;
    padding-left: 5px;
    border-bottom: 1px solid black;
}

.section-title{
    margin: 0;
    font-size: 1.9rem;
    font-weight: 600;
}

.add{
    padding: 6px 12px;
    background: white;
    border: 1px solid black;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add:hover{
    box-shadow: 0 5px 5px black;
    transform: translateY(-2px);
}

.add:active{
    transform: translateY(1px);
    box-shadow: 0 3px 3px black;
}

.project-buttons, .event-buttons{
    display: flex;
    gap: 10px;
}

.project-edit, .project-delete, .event-edit, .event-delete{
    background-color: white;
    border: 1px solid black;
    padding: 6px 15px;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 600;
}

/* projects section */
.project-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.project-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.projectcard, .e-card{
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid black;
    padding: 20px;
}

.project-title{
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.project-type{
    display: flex;
    gap: 8px;
}

.project-lang, .project-category {
    padding: 5px 10px;
    border: 1px solid black;
    border-radius: 20px;
    font-size: 0.8rem;
}

.project-info, .event-info{
    margin: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid black;
}

.project-img, .event-img{
    display: block;
    width: 100%;
    height: auto;
    border: 0.5px solid black;
    align-self: center;
}

.project-info a{
    text-decoration: none;
    color: rgb(77, 77, 77);
    transition: all 0.3s ease;
}

.project-info a:hover{
    text-decoration: underline;
}

.project-email {
    margin: 0;
}

.project-buttons{
    margin-bottom: 10px;
}

/* events section */
.e-cards{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.e-card{
    display: flex;
    flex-direction: column;
    border: 1px solid black;
    padding: 20px;
}

.ehead{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 1px solid black;
    padding-bottom: 15px;
}

.event-title{
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    align-self: center;
}

.status-active{
    border: 1px solid white;
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 0.8rem;
    background-color: rgb(78, 179, 78);
    color: white;
}

.status-ended{
    border: 1px solid white;
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 0.8rem;
    background-color: rgb(255, 0, 78);
    color: white;
}

.event-id {
    margin: 0;
}

/* add event and project popups */
#pa-menu, #ea-menu, #pe-menu, #ee-menu{
    position: fixed;
    top: 53%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(600px, 70vw);
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    background: white;
    border: 1px solid black;
    z-index: 1000;
    visibility: hidden;
}

#pam-title, #eam-title, #pem-title, #eem-title{
    margin: 0 0 20px;
    padding-bottom: 10px;
    font-size: 2rem;
    font-weight: 600;
    border-bottom: 1px solid black;
}

#pa-form, #ea-form, #pe-form, #ee-form{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.paf-group, .eaf-group, .pef-group, .eef-group{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.labels, #special-label, label{
    font-size: 1.1rem;
    font-weight: 500;
}

.eaf-group input, .paf-group input, .pef-group input, .eef-group input{
    width: 100%;
    height: 30px;
    padding: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    border: 1px solid black;
}

#paf-special, #eaf-special, #pef-special, #eef-special{
    display: flex;
    flex-direction: column;
}

#p-desc, #e-desc, #pe-desc, #ee-desc{
    width: 100%;
    min-height: 120px;
    padding: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    border: 1px solid black;
}

#p-img-preview, .e-img-preview, .pe-img-preview, .ee-img-preview{
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid black;
}

.special, #paf-special, #pef-special, #eef-special{
    display: flex;
    align-items: left;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid black;
    border-top: 1px solid black;
}

.e-special {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: safe;
    padding: 20px 0;
}

#paf-buttons, #eaf-buttons, #pef-buttons, #eef-buttons{
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

#paf-submit, #paf-cancel, #eaf-submit, #eaf-cancel, #pef-submit, #pef-cancel, #eef-submit, #eef-cancel{
    padding: 10px 30px;
    outline: none;
    border: 1px solid black;
    background-color: white;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

#paf-submit:hover, #paf-cancel:hover, #eaf-submit:hover, #eaf-cancel:hover, #pef-submit:hover, #pef-cancel:hover, #eef-submit:hover, #eef-cancel:hover{
    transform: translateY(2px);
    box-shadow: 0 5px 5px rgb(109, 109, 109);
}

#paf-submit:active, #paf-cancel:active, #eaf-submit:active, #eaf-cancel:active, #pef-submit:active, #pef-cancel:active, #eef-submit:active, #eef-cancel:active{
    transform: translateY(1px);
    box-shadow: 0 2px 5px black;
}

.slideIn {
   animation: slideIn 0.5s ease forwards;
}

.slideOut {
   animation: slideOut 0.5s ease forwards;
}

@keyframes slideIn {
   from {
       transform: translate(-50%, calc(-50% + 50px));
       opacity: 0;
       visibility: visible;
   }
   to {
       transform: translate(-50%, -50%);
       opacity: 1;
       visibility: visible;
   }
}
@keyframes slideOut {
   from {
       transform: translate(-50%, -50%);
       opacity: 1;
       visibility: visible;
   }
   to {
       transform: translate(-50%, calc(-50% + 50px));
       opacity: 0;
       visibility: hidden;
   }
}

/* member list */
.membergrid{
    display: grid;
    grid-template-columns: 40% minmax(0, 60%);
    border: 1px solid black;
    min-height: 600px;
    align-items: stretch;
}

#m-list{
    display: flex;
    flex-direction: column;
    border: 1px solid black;
    padding: 10px;
}

.membercard{
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid black;
}

.membercard.active{
    background: black;
    color: white;
}

.m-name{
    margin: 0;
    font-size: 1.3rem;
    font-family: inherit;
    font-weight: 600;
}

.m-email{
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
}

#m-info{
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

.m-info-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid black;
}

#mi-name{
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
}

#mi-email{
    margin: 0;
    font-size: 1rem;
}

.m-info-main{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#mip-header{
    margin-top: 15px;
    margin-bottom: 0;
    font-size: 1.3rem;
    font-weight: 500;
    font-family: inherit;
}

#mip-list{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mip-card{
    padding: 10px;
    border: 1px solid black;
}

.mip-name{
    margin: 0 0 12px;
    font-size: 1.2rem;
    font-weight: 500;
}

.mip-desc{
    margin: 0;
    font-size: 0.9rem;
}

.mip-desc a{
    text-decoration: none;
    color: #686868;
}

#messager{
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid black;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#f-title{
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    margin-top: 15px;
}

#f-info{
    display: block;
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid black;
}

#f-hint{
    font-size: 0.9rem;
    margin: 0;
}

/* footer */
#footer{
    padding:  25px 0 15px;
    border-top: 1px solid black;
}

.footer-wrapper{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-main{
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 0 30px;
}

.footerhead{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footerhead p{
    margin: 0;
}

#footerTitle{
    text-decoration: none;
    color: #000000;
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 600;
}

#homeLink{
    text-decoration: none;
    color: #000000;
}

.quick-links{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#linkTitle{
    margin: 0;
    font-size: 1.2rem;
    font-family: inherit;
    font-weight: 600;
}

#quickLinks{
    display: flex;
    flex-direction: row;
    gap: 20px;
}

#quickLinks a{
    text-decoration: none;
    color: #000000;
}

.footerbottom{
    display: flex;
    align-items: center;
    border-top: 1px solid black;
    padding: 0 25px;
}

/* Add announcement */
#a-menu, #me-menu {
    position: fixed;
    top: 53%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(600px, 70vw);
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    background: white;
    border: 1px solid black;
    z-index: 1000;
    visibility: hidden;
}

#am-title, #mem-title {
    margin: 0px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    border-bottom: 1px solid black;
}

#am-subtitle, #mem-subtitle {
    margin: 0 0 0px;
    padding: 20px 0px;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 1px solid black;
}

#a-menu input, #me-menu input {
    width: 100%;
    font-family: 'Space Grotesk';
    padding: 10px;
    margin: 0px 0 20px;
}

#a-menu hr, #me-menu hr {
    border: none;
    margin: 0;
    border-bottom: 1px solid black;
}

#past-anns, #past-meetings {
    margin: 0px;
}

#pa-sub, #me-sub {
    border: none;
    border-bottom: 1px solid black;
    padding: 0 0 16px;
    margin-bottom: 0px;
}

.pa-card, .me-card {
    border: none;
    border-bottom: 1px solid black;
}

#pa-holder, #me-holder {
    max-height: 40vh;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.a-buttons, .me-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

.a-submit, .a-cancel, .me-submit, .me-cancel {
    padding: 10px 30px;
    outline: none;
    border: 1px solid black;
    background-color: white;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.a-submit:hover, .a-cancel:hover, .me-submit:hover, .me-cancel:hover {
    transform: translateY(2px);
    box-shadow: 0 5px 5px rgb(109, 109, 109);
}

.a-submit:active, .a-cancel:active, .me-submit:active, .me-cancel:active  {
    transform: translateY(1px);
    box-shadow: 0 2px 5px black;
}

.pann-info-row, .me-info-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.pann-delete, .me-delete {
    height: fit-content;
    padding: 10px 10px;
    width: fit-content;
    outline: none;
    border: 1px solid black;
    background-color: white;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.9rem;;
    transition: all 0.3s ease;
}

code {
    background-color: rgb(221, 220, 220);
    padding: 5px;
    border-radius: 2px;
}

#me-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mef-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mef-group input {
    width: 100%;
    min-height: 40px;
    padding: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    border: 1px solid black;
    outline: none;
    background: white;
}

.mef-group input:focus,
#me-desc:focus {
    outline: 2px solid black;
    outline-offset: 2px;
}

#mef-special {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}

#me-desc {
    width: 100%;
    min-height: 120px;
    padding: 10px;
    resize: vertical;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    border: 1px solid black;
    outline: none;
}

#me-menu #me-holder {
    max-height: 30vh;
}

.me-card {
    padding: 12px 0;
}

.me-msg {
    overflow-wrap: anywhere;
}