@font-face {
    font-family: 'AppleGaramond';
    src: url(fonts/AppleGaramond.ttf);
}

@font-face {
    font-family: 'GoudyBookletter';
    src: url(fonts/GoudyBookletter1911.otf);
}

@font-face {
    font-family: 'desyrel';
    src: url(fonts/DESYREL_.ttf);
}

@font-face {
    font-family: 'only-you';
    src: url(fonts/Only_You_Handwritten_Free_Font.otf);
}


html {
    height: 100%;
    scroll-snap-type: y mandatory;
    overflow-x: hidden;
} /* scroll snap video https://www.youtube.com/watch?v=ytl6TrroGis */

body {
    height: 100%;
    scroll-snap-type: y mandatory;
    background-color:darkolivegreen;
    /* https://www.youtube.com/watch?v=7pRZUG1gKfQ 
    i used this video for the background image stuff */
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.grid-container {
    display: grid;
    position: relative;
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
} 

#pond-image {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;

}   /* positioning video: https://www.youtube.com/watch?v=YEmdHbQBCSQ */

#website-title {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18vmin;
    line-height: 80%;
    padding: 1em;
    color:rgb(255, 255, 255);
    font-family: 'AppleGaramond', serif;
    width: 100%;
    height: auto;
    text-align: center;

}

#website-title p {
    margin: 0;
    display: inline;
    padding: 0.02em 0.18em;
    border-radius: 0.25em;
    background: rgba(173, 208, 255, 0.565);
    box-shadow: 0 0 20px rgba(122, 180, 255, 0.367);
}

#explore-button {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.2s ease;
    font-size: 4vmin;
    color: rgb(1, 56, 105);
    text-decoration: none;
    line-height: 1;
    background-color: #ffffff;
    border: none;
    outline: none;
    box-shadow: none;
    font-family: 'AppleGaramond', serif;
    cursor: pointer;
    border-radius: 999px;
    padding: 1.7em 0.85em;
    min-width: 5.75rem;
    white-space: nowrap;
    z-index: 1;

}

#explore-button:hover {
    transform: translateX(-50%) scale(1.08);
    color: rgb(1, 56, 105);
    text-decoration: none;
}

#explore-button:visited {
    color: rgb(1, 56, 105);
    text-decoration: none;
}

#home-button {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 5vmin;
    color: aliceblue;
    background-color: transparent;
    border-color: transparent;
    font-family: 'GoudyBookletter', serif;
    cursor: pointer;
    z-index: 100;
}

.data-table-wrap {
    width: min(1000px, 92vw);
    margin: 14vh auto 0;
}

.data-table-panel {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.data-table-panel .data-table {
    flex: 1 1 auto;
}

.data-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    font-family: 'GoudyBookletter', serif;
    color: #222;
    white-space: nowrap;
    order: -1;
}

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #c7c7c7;
    transition: 0.2s;
    border-radius: 999px;
}

.slider:before {
    position: absolute;
    content: '';
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: #4b6b3c;
}

.switch input:checked + .slider:before {
    transform: translateX(20px);
}

@media (max-width: 900px) {
    .data-table-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .data-switch {
        justify-content: center;
        align-self: flex-end;
    }
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.92);
    color: #222;
    font-family: 'GoudyBookletter', serif;
    font-size: 1rem;
}

.data-table th,
.data-table td {
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0.6rem 0.8rem;
    text-align: left;
}

.data-row-delete {
    border: none;
    background: transparent;
    color: #8b1f1f;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.4rem;
}

.data-row-delete:hover {
    color: #c62828;
}

.data-table thead th {
    background: rgba(0, 0, 0, 0.08);
}

#scroll {
    position: absolute;
    bottom: 5%;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    font-size: 4vmin;
    color:white;
    font-family: 'AppleGaramond', serif;
    width: 100%;
    text-align: center;
    height: 20vmin;
}

#scroll p {
    margin: 0;
}

#arrow {
    height: 6vmin;
    margin-top: 1.2vmin;
    filter: brightness(0) invert(1);

    animation: bounce 2s infinite;
}

@keyframes bounce {
    0% {
        transform: translateY(0)
    }

    40%{
        transform: translateY(30%)
    }

    100% {
        transform: translateY(0)
    }
}



#title-text{
    margin: 0%;
}

#about-text{
    position: absolute;
    bottom: 12vh;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 4vmin;
    color: aliceblue;   
    width: auto;
    height:fit-content;
    padding: 1em;
    border-radius: 1em;
    background: rgba(99, 152, 221, 0.65);
    box-shadow: 0 0 20px rgba(122, 180, 255, 0.367);
    text-align: center;
}

#about-text p {
    margin: 0;
}



/* Admin Actions (second screen) */
#admin-actions {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    z-index: 10;
}

/* Admin Login Button */
#admin-login-btn {
    padding: 2px 6px;
    font-size: 9px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid white;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'GoudyBookletter', serif;
}

#admin-login-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Admin Logout Button */
#admin-logout-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    font-size: 14px;
    color: white;
    background-color: rgba(200, 50, 50, 0.6);
    border: 1px solid white;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'GoudyBookletter', serif;
    z-index: 100;
}

#admin-logout-btn:hover {
    background-color: rgba(200, 50, 50, 0.8);
}

/* Go to Admin Button (appears after login) */
#go-to-admin-btn {
    position: fixed;
    top: 20px;
    right: 120px;
    padding: 10px 20px;
    font-size: 14px;
    color: white;
    background-color: rgba(50, 150, 50, 0.6);
    border: 1px solid white;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'GoudyBookletter', serif;
    z-index: 100;
}

#go-to-admin-btn:hover {
    background-color: rgba(50, 150, 50, 0.8);
}

#go-to-admin-btn a {
    text-decoration: none;
    color: white;
}

/* Create Form Button (admin only) */
#create-form-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    font-size: 14px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid white;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'GoudyBookletter', serif;
    z-index: 100;
}

#create-form-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

#create-form-btn a {
    text-decoration: none;
    color: white;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal.active {
    display: block;
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
}

.modal-content h2 {
    margin-top: 0;
    font-family: 'GoudyBookletter', serif;
    color: cornflowerblue;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content label {
    font-family: 'GoudyBookletter', serif;
    font-size: 16px;
}

.modal-content input[type="password"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.modal-content button[type="submit"] {
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: cornflowerblue;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'GoudyBookletter', serif;
}

.modal-content button[type="submit"]:hover {
    background-color: #5a8fd4;
}

.error-message {
    color: red;
    font-size: 14px;
    margin-top: 10px;
}

