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

:root {
    /* original colors
    --horizons-bg: #F6EFE1;
    --horizons-orange: #FFA936;
    --horizons-pink: #F86E95;
    --horizons-blue: #46467C;
    --button-green: #00ba00;
    --font-gray: #565656;
    --button-red:#ba0000;
    --transparent-wb-half: #ffffff80;
    --transparent-wb-0_8: #ffffffcc;
    --transparent-wb-0_1: #0000001a;
    --bg-wb-smth: #cfcece;
    */
    --horizons-bg: light-dark(#F6EFE1, #000);
    --horizons-orange: light-dark(#FFA936, #212121);
    --horizons-pink: #F86E95;
    --horizons-blue: light-dark(#46467C, #7a7ade);
    --button-green: #00ba00;
    --font-gray: light-dark(#565656, white);
    --button-red:#ba0000;
    --transparent-wb-half: #ffffff80;
    --transparent-wb-0_8: #ffffffcc;
    --transparent-wb-0_1: #0000001a;
    --bg-wb-smth: light-dark(#cfcece,  #706f6f);
    --web-nav: #46467C;
    color-scheme: light dark;
    --card-wb: light-dark(white, rgb(86, 86, 86));
    --wb: light-dark(white, black);
}
/*
z-indexes:
nav menu: 98
login menu: 99
add project menu: 97
*/
body {
    background-color: var(--horizons-bg) ;
    margin: 0;
    padding-bottom: 0;
}
html, body{
    overflow: hidden;
}
a {
    text-decoration: none;
}
/* UNDERLINE ANIM PART COPIED OFF https://www.30secondsofcode.org/css/s/hover-underline-animation/ */
.underline-anim {
    margin-top: 13;
    display: inline-block;
    position: relative;
}
.underline-anim::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 3px;
    bottom: 4px;
    left: 0;
    background-color: #00e;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}
.underline-anim:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
#hero {
    background-color: var(--horizons-orange);
    height: 300px;
    padding-top: 100px;
}
#nav {
    display: flex;
    height: 350px;
    padding-top: 100px;
}
/*#nav {
    display: stick;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    font-size: 25px;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    height: 40px;
    width: fit-content;
    padding: 10px 30px;
    border-radius: 20px;
    margin-left: auto;
    margin-right: auto;
    justify-content: space-between;
    gap: 60px;
    position: fixed;
    inset: 10px 0 ;
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    transform-origin: center;
    transition: all 0.4s ease;
    transform-origin: center;
}*/
#nav {
    position: fixed;
    display: flex;
    inset: 0;
    top: 10px;
    left: 50%;
    z-index: 98;
    font-size: 25px;
    background-color: var(--transparent-wb-0_8);
    backdrop-filter: blur(10px);
    height: 40px;
    width: 850px;
    padding: 10px 30px 5px 30px;
    border-radius: 20px;
    margin-left: auto;
    margin-right: auto;
    justify-content: space-between;
    gap: 60px;
    position: fixed;
    inset: 10px 0 ;
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.8s ease;
    transform-origin: center;
    font-size: 25px;
    vertical-align: middle;
}
#nav.scrolled {
    background-color: var(--transparent-wb-0_8);
    border-radius: 15px;
    width: 650px;
    height: 40px;
    box-shadow: 0 5px 20px var(--transparent-wb-0_1);
}
#nav-links {
    display: flex;
    gap: 40px;
}
#nav-links a {
    font-family: 'Space Grotesk';
    font-weight: 800;
    color: #00e;
}
#nav-title {
    text-decoration: underline wavy;
    font-family: 'Space Grotesk';
    font-weight: 800;
    text-underline-offset: 5px;
    transition: 0.4s ease;
    color: #00e;
}
#hero-main{
    display: flex;
    justify-content:flex-start;
    align-items: center;
    padding-left: 20vw;
}
#hero-title {
    font-family: 'Bricolage Grotesque';
    font-weight: bolder;
    font-size: 70px;
    color: var(--horizons-blue);
}
#projects, .cards, .e-cards {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: start;
    margin-left: 5vw;
    margin-right: 5vw;
    overflow-x: scroll;
}
.section-title {
    font-family: 'Space Grotesk';
    font-weight: bolder;
    font-size: 30px;
    margin-left: 5vw;
}
.card, .e-card {
    background-color: var(--card-wb);
    width: 300px;
    height: auto;
    border-radius: 30px;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 10px;
}
.project-title, .event-title {
    font-family: 'Space Grotesk';
    font-weight: bold;
    font-size: 25px;
    margin-bottom: 0px;
}
.project-type {
    display: flex;
    flex-direction: row;
    justify-content: start;
    gap: 10px;
    margin-bottom: 0px;
}
.project-html {
    background-color: red;
    color: white;
    font-family: 'Bricolage Grotesque';
    font-weight: bolder;
    padding: 5px 15px;
    border-radius: 20px;
}
.project-css {
    background-color: #264EE4;
    color: white;
    font-family: 'Bricolage Grotesque';
    font-weight: bolder;
    padding: 5px 15px;
    border-radius: 20px;
}
.project-info, .event-info {
    margin:0px;
    font-family: 'Space Grotesk';
    font-weight: 700;
    color: var(--font-gray);
    width: 300px;
    word-wrap: break-word;
}
.event-status {
    font-family: 'Space Grotesk';
    font-weight: 700;
    color: var(--font-gray);
    font-size: 18px;
}
.status-active {
    font-style: italic;
    color: green;
}
.status-ended {
    font-style: italic;
    color: red;
}
.project-buttons, .event-buttons {
    display: flex;
    flex-direction: row-reverse;
    gap: 20px;
}
.project-edit, .event-edit {
    background-color: var(--button-green);
    border: none;
    border-radius: 10px;
    padding: 15px 25px;
    font-family: 'Space Grotesk';
    font-weight: bold;
    font-size: 18px;
    color: white;
    transition: all 0.3s ease;
}
.project-edit:hover, .event-edit:hover {
    transform: scale(1.2);
}
.project-delete, .event-delete {
    background-color: var(--button-red);
    border: none;
    border-radius: 10px;
    padding: 0px 15px;
    font-family: 'Space Grotesk';
    font-weight: bold;
    font-size: 18px;
    color: white;
    transition: all 0.3s ease;
}
.project-delete:hover, .event-delete:hover {
    transform: scale(1.2);
}

#login{
    position: fixed;
    inset: 0;
    z-index: 99;
    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;
    width: fit-content;
    height: fit-content;
    gap: 20px;
    padding-top: 40px;
}
#email, #password, #confirm-password, #newEmail, #newPassword, #newConfirmPassword {
    padding: 10px;
    font-size: 20px;
    border-radius: 10px;
    border: none;
    font-family: 'Space Grotesk';
}

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

.login-title{
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    border-radius: 10px;
    background-color: #946FFF;
    color: white;
    border: 2px solid white;
    padding-bottom: 5px;
}

#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;
#warn {
    font-family: 'Space Grotesk';
    color: #FFCC00;
    width: 350px;
    font-weight: bold;
    font-size: larger;
}
#type-switch {
    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;
}

/* UNDERLINE ANIM PART COPIED OFF https://www.30secondsofcode.org/css/s/hover-underline-animation/ */
.underline-anim-white {
    display: inline-block;
    position: relative;
}
.underline-anim-white::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--wb);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}
.underline-anim-white:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
.s-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.add {
    margin-right: 5vw;
    height: 50px;
    width: 200px;
    font-size: 20px;
    font-weight: bolder;
    color: var(--wb);
    font-family: 'Space Grotesk';
    background-color: #8585ea;
    border: solid 2px #5151faff;
    border-radius: 15px;
    transition: all 0.3s ease;
}
.add:hover {
    transform: scale(1.1);
}
.m-card {
    background-color: var(--card-wb);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: auto;
    border-radius: 30px;
}
.m-name {
    font-family: 'Space Grotesk';
    font-size: 20px;
    font-weight: bolder;
    margin: 0;
}
.m-email {
    font-family: 'Space Grotesk';
    font-size: 15px;
    font-weight: bolder;
    margin: 0;
}
.active {
    border: 3px solid #FFA936;
}
#members {
    display: flex;
    flex-direction: row;
    gap: 10px;

}
#m-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 500px;
    width: 40%;
    justify-content: center;
    overflow-y: scroll;
}
#m-info {
    background-color: var(--card-wb);
    width: 53%;
    height: 500px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-left: 40px;
    padding-right: 40px;
    overflow-y: scroll;
}
#mi-name {
    font-family: 'Space Grotesk';
    font-weight: bolder;
    font-size: 30px;
    margin-bottom: 0;
}
#mi-email {
    font-family: 'Space Grotesk';
    font-weight: bolder;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 0;
}
#mip-list {
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    height: 250px;
    gap: 20px;
}
#mip-header {
    font-family: 'Space Grotesk';
    font-weight: bolder;
    font-size: 20px;
    margin-bottom: 0;
}
.mip-card {
    background-color: var(--bg-wb-smth);
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 20px;
}
.mip-name {
    margin-top: 20px;
    font-family: 'Space Grotesk';
    font-weight: 700;
    margin-bottom: 3px;
}
.mip-desc {
    font-family: 'Space Grotesk';
    font-weight: 700;
    color: var(--font-gray);
}
#f-title {
    font-family: 'Space Grotesk';
    font-weight: 700;
    font-size: 20px;
}
#f-info {
    width: 100%;
    height: 100px;
    font-size: 15px;
    font-family: 'Space Grotesk';
}
#f-hint {
    font-style: italic;
    color: #cfcece;
    font-family: 'Space Grotesk';
}
#pa-menu, #ea-menu { 
    width: 40vw;
    height: 60vh;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 97;
    background: var(--wb);
    border-radius: 20px;
    border: 2px solid #5151faff;
    padding: 20px;
    overflow-y: scroll;
    visibility: hidden;
}
#pam-title, #eam-title {
    margin: 0;
    font-family: 'Space Grotesk';  
    font-weight: bolder;
    font-size: 30px;
}
#pa-form, #ea-form {
    font-family: 'Space Grotesk';  
    font-weight: bold;
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
    font-size: 18px;
}
.paf-group, .eaf-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
    height: 20px;
    align-items: center;
}
#pa-form input, textarea {
    width: 100%;
    height: 100%;
    font-size: 18px;
}
#ea-form input, textarea {
    width: 100%;
    height: 100%;
    font-size: 18px;
}
#pa-form label {
    width: 40%;
    height: auto;
}
#special {
    display: flex;
    flex-direction: row;
    gap: 300px;
    height: 20px;
    align-items: center;
}
#special-label {
    width: 45%;
}
.labels {
    width: 30%;
    height: 100%;
}
#ea-form input[type="checkbox"] {
    width: fit-content;
    height: fit-content;
    margin-left: 40px;
    transform: scale(1.5);
}
/*
#img-preview {
    background-color: lightgray;
    width: 100%;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}*/
#p-img-prev {
    max-width: 60%;
    height: auto;
    display: block;
    align-self: center;
}
.e-img-prev {
    max-width: 60%;
    height: auto;
    display: block;
    align-self: center;
}
#paf-special, #eaf-special {
    display: flex;
    flex-direction: column;
}
#e-status {
    font-size: 18px;
}
#e-status option {
    -webkit-padding-start: 10px 20px;
    padding: 10px 20px;
}
#paf-buttons, #eaf-buttons {
    height: 50px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: end;
    gap: 20px;
}
#paf-submit, #paf-cancel, #eaf-submit, #eaf-cancel {
    height: 100%;
    width: 100px;
    border: 2px none;
    border-radius: 15px;
    font-size: medium;
    font-weight: bold;
    font-family: 'Space Grotesk';
}
#paf-submit, #eaf-submit {
    background-color: #946FFF;
    color: var(--wb);
}
#paf-cancel, #eaf-cancel {
    background-color: lightgray;
}
.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;
    }
}