@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

html, body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    color: #1d1d1d;
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 500;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

.albums {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.heading {
    font-weight: 700;
    font-size: 25px;
}

.album-photos {
    text-align: center;
    margin-bottom: 15px;
}

.tags {
    display: flex;
    gap: 10px;
    margin: 0 0 20px 50px;
}

.album-bg {
    background: rgb(247, 247, 247);
}

.people-bg {
    background: rgb(205, 232, 255);
}

.photos-bg {
    background: rgb(255, 255, 255);
}

.outer{
    padding: 1.2em;
}

.album-cover {
    width: 300px;
    height: 200px;
    margin: 7px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.1s;
}

.album-cover:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.50);
    transform: translate(0px) scale(1.03);
}

.album-cover img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.album-cover .album-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 12px;
    background: rgba(0,0,0,0.4);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.album-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    margin: 0 24px 24px 24px;
}
.image-grid img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.1s;
}

.image-grid img:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.50);
    transform: translate(0px) scale(1.03);
}

.people {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.people-cover img{
    width: 150px;
    height: 150px;
    border-radius: 100%;
}

.people-cover {
    justify-content: center; /* vertical center if you set a height */
    margin: 10px;
    gap: 10px;
    transition: transform 0.1s;
}

.people-cover:hover {
    transform: translate(0px) scale(1.03);
}

.album-radio .checkmark {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    z-index: 2;
}
.album-radio .white-circle {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 2px #aaa;
    position: relative;
}
.album-radio .blue-dot {
    display: none;
    width: 16px;
    height: 16px;
    background: #2196f3;
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 8px;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    box-shadow: 0 2px 8px #eee;
    padding: 0.5em 2em;
}

.nav-choice {
    text-decoration:none;
    color:#333;
    font-weight:500;
    transition: color 0.2s, font-weight 0.2s;
}

.nav-choice:hover {
    font-weight: 700;
    color: #2196f3;
}

.selected {
    font-weight: 700;
    color: #2196f3;
}

.create-button{
    display: inline-block;
    background: #2196f3;
    color: #fff;
    padding: 0.5em 1em;
    border-radius: 2em;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9em;
    text-decoration: none;
    box-shadow: 0 2px 8px #e3e3e3;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
    cursor: pointer;
}

.create-button:hover {
    background: #1769aa;
    color: #fff;
    box-shadow: 0 4px 16px #b3d1f7;
    transform: translate(0px) scale(1.04);
}

.page-options{
    display:flex;
    gap:2em;
    align-items:center;
}

.logo {
    text-decoration:none; 
    font-weight:700;
    font-size:1.2em;
}

.button{
    display: inline-block;
    background: #2196f3;
    color: #fff;
    padding: 0.75em 2em;
    border-radius: 2em;
    font-weight: 600;
    font-size: 1.1em;
    text-decoration: none;
    box-shadow: 0 2px 8px #e3e3e3;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
    margin: 15px;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.button:hover {
    background: #1769aa;
    color: #fff;
    box-shadow: 0 4px 16px #b3d1f7;
    transform: translate(0px) scale(1.04);
}

footer {
    background-color: #333;
    color: #fff;
    padding: 15px;
    text-align: center;
    margin-top: auto;
}

.photo-box {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 50px;
    background: #e4e4e4;
}

.info-box {
    background-color: #ffffff;
    border-radius: 25px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: flex;
    gap: 20px;
    flex-direction: column;
    width: 310px;
}

.photo-title {
    min-width: 400px;
    gap: 10px;
}

input {
    border-radius: 15px;
    font: inherit;
    outline: none;
    border: 2px solid #707070;
    transition: border-color 0.2s;
}

input:focus {
    border-color: #2196f3;
    border-width: 3px;
}

.form-box input {
    width: 300px;
    margin: 10px;
    padding: 10px;
}

.form-box {
    background-color: #ffffff;
    width: 500px;
    border-radius: 25px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.title-panel {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 5px;
    margin: 20px;
}

.centre-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 3em;
}

.heading-panel{
    margin: 20px;
}

.imageMsg {
    text-align: center;
    color: #888; 
    font-size: 1.2em;
    margin: 2em 0;
}

.center-btn {
    justify-content: center;
    width: 100%;
}

.upload-form{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 50px;
    margin-bottom: 50px;
}

.select-box {
    margin: 20px;
    transition: transform 0.1s;
}

.select-box:hover {
    transform: translate(0px) scale(1.04);
}

.previewBg {
    display: inline-block;
    width: 100%;
    background: rgb(247, 247, 247);
    text-align: center;
    padding: 15px 0 15px 0;
    margin: 30px 0 30px 0;
}

.person-select {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 14px;
    min-height: 80px;
    background: #f6f6f6;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    gap: 10px;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.person-select:hover {
    background: #ecf6ff;
}

.person-select input[type="checkbox"] {
    display: none;
}

.person-select img {
    width: 50px;
    border-radius: 100%;
}

.identify-box {
    background-color: #ffffff;
    width: 500px;
    border-radius: 25px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: flex;
    justify-content: center;
    text-align: center;
}

.people-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin: 20px;
}

.featuredPeople {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
}

.personBox {
    gap: 10px;
    background-color: #f6f6f6;
    padding: 10px;
    border-radius: 8px;
    transition: box-shadow 0.2s, transform 0.1s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.personBox:hover {
    background-color: #f6f6f6;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translate(0px) scale(1.03);
}

.personBox img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 100%;
}

.personIcon {
    margin: 13px;
    font-size: 1.5em;
}

.icon {
    display: inline-block;
    color: #2196f3;
    font-weight: 700;
    font-size: 1.5em;
    text-decoration: none;
    transition: color 0.2s, transform 0.1s;
    margin: 15px;
    cursor: pointer;
    border: none;
}

.icon:hover{
    color: #1769aa;
    transform: translate(0px) scale(1.04);
}

.icon-label {
    cursor: pointer;
    margin-right: 15px;
}

.full-icon{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.lightbox-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 50px;
    height: 100vh;
}

.make-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.center-flx-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-container input[type="password"] {
    padding: 15px;
    font-size: 2em;
    letter-spacing: 0.5em;
    text-align: center;
    width: 80%;
    margin-bottom: 1em;
}

.login-container {
    max-width: 350px;
    margin: 80px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    padding: 2em 2em 1.5em 2em;
    text-align: center;
}

.login-container h2 {
    margin-bottom: 1em;
}

.login-container .error {
    color: #d32f2f;
    margin-bottom: 1em;
}

.nav-person {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    transition: transform 0.1s;
}

.nav-person img {
    border-radius: 100%;
    width: 35px;
}

.nav-person:hover {
    transform: translate(0px) scale(1.02);
}

.nav-divider {
    display: inline-block;
    width: 1px;
    height: 24px;
    background: #ccc;
    vertical-align: middle;
}

.selected-btn {
    background: #1769aa;
}

.share-section{
    background: #e3f2fd;
    border-radius: 12px;
    padding: 18px 20px;
    margin: 28px 0;
    text-align: center;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(33,150,243,0.07);
}

.share-title {
    font-weight: 600;
    font-size: 1.15em;
    margin-bottom: 10px;
}

#enlargedImage {
    max-width: 100%;
    max-height: 400px; /* adjust as needed */
    border-radius: 12px; /* optional */
}

#enlargedBg {
    position: fixed;
    left: 0;    
    top: 0;
    height: 100vh; /* or 100vh for full screen */    
    width: 100vw; /* or 100vh for full screen */
    background: rgba(40, 40, 40, 0.95);
    z-index: 1000; /* higher than other content */
}

.image-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.bottom-bar {
    display: flex;
    flex-direction: row;
    background-color: white;
    justify-content: center;
    align-items: center;
    border-radius: 12px; /* optional */
}

.others-box {
    background: #e3f2fd;
    border-radius: 12px;
    padding: 18px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 18px auto 0px;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
    width: fit-content;
    gap: 15px;
}

.included {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.other {
    background-color: #f6f6f6;
    padding: 10px;
    border-radius: 8px;
    transition: box-shadow 0.2s, transform 0.1s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    text-align: center;
}

.other:hover {
    background-color: #f6f6f6;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translate(0px) scale(1.03);
}

#share-link {
        border: none;
        background: transparent;
        font-size: 1em;
        width: 320px;
        outline: none;
    }

#hamburger {
    display: none;
    margin: 0;
}

#nav-full {
    position: fixed;
    left: 0;    
    top: 0;
    height: 100vh;   
    width: 100vw;
    background: rgb(40, 40, 40);
    z-index: 2000;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 25px;
}

.full-nav-choice {
    text-decoration:none;
    color: #2196f3;
    font-weight:500;
    transition: color 0.2s, font-weight 0.2s;
    font-size: 3em;
}

.full-nav-choice:hover {
    font-weight: 700;
    color: #d0d0d0;
}

.x-mark {
    font-size: 2em;
}

.full-selected {
    font-weight: 700;
    color: #d0d0d0;
}

.share-link-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px #b3d1f7;
    padding: 0.5em 0.7em;
}

.main-image {
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    max-width: 500px;
    max-height: 500px;
}

.image-container {
    display: inline-block;
    position: relative;
}
.person-overlay-container {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.person_identifier {
    width: 100%;
    height: 100%;
    border-radius: 100%;
    background-color: rgba(0,0,0,0.40);
    box-shadow: 0 2px 8px rgba(0,0,0,0.50);
    transition: box-shadow 0.2s, background-color 0.1s, transform 0.1s;
    transform: translate(0px) scale(1.2);
}

.person_identifier:hover {
    background-color: rgba(0,0,0,0.50);
    box-shadow: 0 4px 16px rgba(0,0,0,0.60);
    transform: translate(0px) scale(1.22);
}

.nametag {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    font-size: 1em;
    padding: 2px 8px;
    border-radius: 6px;
    margin-top: 2px;
    white-space: nowrap;
    pointer-events: auto;
    z-index: 1;
}

#person-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(40, 40, 40, 0.95);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#person-modal {
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 2em;
    border-radius: 12px;
    overflow-y: auto;
    position: relative;
}

.person-option {
    cursor: pointer;
    background-color: #2196f3;
    padding: 5px 10px;
    border-radius: 15px;
    margin: 5px;
    color: white;
    transition: background-color 0.2s, font-weight 0.2s;
    font-size: 1.2em;
}

.selectedIdentify {
    font-weight: 700;
    background-color: #1769aa;
}

.person-option:hover {
    font-weight: 700;
    background-color: #1769aa;
}

#close-person-modal {
    position:absolute;
    top:0.5em;
    right:0.5em;
    font-size:1.5em;
    background:none;
    border:none;
    cursor:pointer;
}

.nametag {
    background-color: white;
    border-radius: 25px;
    width: auto;
}

.identify-featured {
    margin: 10px;
}

.featured-grid {
    margin-top: 5px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 90%;
    flex-wrap: wrap;
    gap: 5px;
}

.other-nametag {
    background-color: rgb(104, 104, 104);
    color: white;
    border-radius: 25px;
    padding: 4px 10px;
    gap: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@media (max-width: 730px) {
    .logo {
        font-weight:700;
        font-size:1em;
    }
    
    .nav-person div {
        display: none;
    }

    .nav-person img {
        width: 30px;
    }

    .nav-choice {
        font-size: 0.9em;
    }

    .create-button{
        padding: 0.5em 0.9em;
        font-size: 0.8em;        
    }

    .button{
        padding: 0.65em 1.80em;
        font-size: 1em;
    }

    .heading {
        font-size: 20px;
    }

    footer {
        font-size: 0.9em;
    }

    .para {
        font-size: 0.9em;
    }

    .imageMsg {
        font-size: 1em;
    }

    .album-title {
        font-size: 2.3em;
    }

    .share-title {
        font-size: 1em;
    }

    #share-link {
        font-size: 0.9em;
        width: 270px;
    }

    .icon {
        font-size: 1.3em;
    }

    .image-grid {
        gap: 14px;
    }
    .image-grid img {
        width: 100px;
        height: 100px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    }

    .people-cover img{
        width: 100px;
        height: 100px;
        border-radius: 100%;
    }

    .album-cover {
        width: 225px;
        height: 150px;
    }

    .photo-box {
        flex-direction: column;
    }

    .main-image {
        max-width: 350px;
        max-height: 350px;
        border-radius: 25px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    }

    .lightbox-row {
        flex-direction: column;
        gap: 30px;
    }

    #enlargedImage {
        max-width: 70%;
        max-height: 250px;
    }

    .info-box {
        width: 90%;
    }

    .x-mark {
        font-size: 2em;
    }
}

@media (max-width: 570px) {
    .nav-choice {
        display: none;
    }

    .logout {
        display: none;
    }

    #hamburger {
        display: inline;
    }

    .nav-divider {
        display: none;
    }

        .x-mark {
        font-size: 2em;
    }

    .form-box {
        width: 80%;
        padding: 20px;
    }

    .form-box input {
        width: 90%;
    }

    .icon-label {
        display: none;
    }
}

@media (max-width: 430px) {
    .title-panel {
        margin: 0;
    }

    #share-link {
        width: 60%;
    }

    .bottom-bar .icon {
        font-size: 1em;
    }

    .icon-label {
        font-size: 0.8em;
    }

    #selectPhotosBtn {
        width: 300px;
        height: auto;
    }
}