html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

#body {
    background-color:#253754;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 8fr;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#extras {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1fr 4fr 1fr;
    grid-template-rows: 1fr;
}

#user {
    grid-column: 3;
    grid-row: 1;
    justify-self: center;
    align-content: space-evenly;
}


#documents-main {
    background: url("./Assets/Mentori-background.svg") no-repeat center center;
    background-size: cover;
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

#documents-main-create-section {
    padding: 20px;
    border-bottom: 1px solid #ccc;
}

#documents-main-create-section-general-name {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

#documents-main-create-section-create-celula-animal-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 3fr 1fr;
    grid-row-gap: 5%;
    width: 200px;
    height: 120px;
    border-radius: 10px;
}

#documents-main-create-section-create-celula-animal-make {
    grid-row: 1;
    grid-column: 1;
    background-color: #e0e0e0;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
    border-color: black;
}

#documents-main-create-section-create-celula-animal-extras{
    grid-row: 2;
    grid-column: 1;
    border-color: black;
    border-radius: 12px;
}

#documents-main-create-section-create-celula-animal-make:hover {
    transform: scale(1.05);
    background-color: #d0d0d0
}

#documents-main-projects-section {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#documents-main-projects-section-preferences {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #555;
}

#documents-main-projects-section-projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    overflow-y: auto;
    padding-bottom: 40px;
    align-content: space-evenly;
}

.project-card {
    background: #fafafa;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    aspect-ratio: 1 / 1;
    width: 100%;
}

.project-card:hover {
    transform: scale(1.03);
}

.project-thumbnail {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: #ddd; /* fallback background if no image */
}

.project-title {
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
}

#general-share-pop-up {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center; /* center horizontally */
    align-items: center;     /* center vertically */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

#general-share-pop-up.active {
    visibility: visible;
    opacity: 1;
}

#general-share-pop-up-container {
    display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: 9fr 1fr;
    width: 75vw;
    height: 10vh;
    grid-row-gap: 5%;
    background-color: white;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
}

#general-share-pop-up-close-button {
    position: absolute;   /* take it out of flex/grid */
    top: 1rem;
    left: 1rem;
    background-color: red;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

#general-share-pop-up-close-button.active {
    visibility: visible;
    opacity: 1;
}

#general-share-pop-up-copy-button {
    grid-row: 2;
    grid-column: 2;
    justify-self: flex-end;
    align-self: flex-end;
    height: 100%;
}

#general-share-pop-up-title {
    grid-area: 1 / 1 / 2 / 3;
}

#general-share-pop-up-url {
    grid-row: 2;
    grid-column: 1;
}
