@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap');



html {
    overflow: hidden;
    height: 100vh;
}

body {
    margin: 0;
    padding: 20px;
    position: relative;
    background: aliceblue;
    overflow: hidden;
    height: 100vh;
}

/* FIX */

.header {
    text-align: center;
}
body.has-content .header {
    text-align: left;
}

h1 {
    font-family: 'Roboto Mono', monospace;
    position: relative;
    z-index: 5;
    margin-top: 2rem;
    text-align: center;
    font-size: clamp(15rem, 12vw, 8rem);

    /* FIX */
    display: inline-block;
}
h1 span {
    display: inline-block;
    animation: moveAround 10s infinite ease-out;
}

h1:hover {
    transform: scale(0.75);
    font-weight: bolder;
    transition: all 0.3s ease;
    color: tomato;
}
body.has-content h1 {
    color: gray;
    text-shadow:gray 2px 1px 1px;
    font-size: 2rem;
    text-align: left;
}

body.has-content h1 {
    animation: none;
    transform: none;
}



@keyframes moveAround {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(8px, -12px);
    }
    50% {
        transform: translate(-10px, 10px);
    }
    75% {
        transform: translate(12px, -8px);
    }
    100% {
        transform: translate(0, 0);
    }
}



#add-photos {
    font-family: 'Roboto Mono', monospace;
    position: relative;
    z-index: 10;
    color: tomato;
    padding: 15px 30px;
    font-size: 1rem;
    border: 2px solid tomato;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 1.5rem auto;
    margin-top: 4rem;
    margin-bottom: 4rem;
    
}

body.has-content #add-photos,
body.has-content #add-note {
    position: fixed;
    bottom: 20px;
    display: inline-block;
    margin: 20;
    background: transparent;
    color: gray;
    border-color: gray;
}

body.has-content #add-photos {
    left: 40px;
}
body.has-content #add-photos:hover {
    background: transparent;
    color: tomato;
    border: 2px solid tomato;
}

body.has-content #add-note {
    right: 40px;
    bottom: 60px;
}
body.has-content #add-note:hover {
    background: transparent;
    color: tomato;
    border: 2px solid tomato;

}


#add-note {
    font-family: 'Roboto Mono', monospace;
    position: relative;
    z-index: 10;
    color: tomato;
    padding: 15px 30px;
    font-size: 1rem;
    border: 2px solid tomato;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto 1.5rem auto;
}

#add-photos:hover {
    background: rgb(255, 255, 255);
    color: tomato;
    transform: translateY(-2px) rotate(5deg);
    box-shadow: 0 4px 12px rgba(255, 99, 71, 0.3);
    font-weight: bold;}

#add-photos:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 99, 71, 0.3);
}

#add-note:hover {
    background: rgb(255, 255, 255);
    color: tomato;
    transform: translateY(-2px) rotate(-5deg);
    box-shadow: 0 4px 12px rgba(255, 99, 71, 0.3);
    font-weight: bold;}

#add-note:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 99, 71, 0.3);
}

#photos-container {
    /* margin-top: 2rem;
    position: relative;
    z-index: 50;
    height: 30vh;
    max-height: 320px;
    width: 100%; */
    /* FIX */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 50;
}

#photos-container:empty {
    display: none;
}

#notes-container {
    margin-top: 2rem;
    position: relative;
    z-index: 50;
    width: 100%;
    border: none;
    min-height: 25vh;
    max-height: 300px;
    overflow: visible;
}

/* No empty-state placeholder for notes container */
/* Hide entire notes container when no notes exist */
#notes-container:empty {
    display: none;
}

.note-item {
    background: transparent;    
    font-family: 'Roboto Mono', monospace;
    padding: 8px;
    position: static;
    word-wrap: break-word;
    white-space: pre-wrap;
    line-height: 1.6;
    overflow-wrap: break-word;
    padding-right: 35px;
    max-width: 15vw;
    height: auto;
    max-height: 200px;
    overflow: hidden;
    cursor: default;
    }

.note-item:hover {
    border: 2px solid tomato;
    box-shadow: 0 6px 16px tomato;
}

.note-item.dragging {
    cursor: default;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.note-wrapper.dragging .note-item {
    cursor: default;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.note-item-delete {
    position: absolute;
    top: 0px;
    right: 0px;
    background: transparent;
    border: none;
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    pointer-events: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.note-item-delete:hover {
    color: tomato;
    transform: scale(1.32);
}

.uploaded-photo {
    position: absolute;
    margin: 0;
    cursor: default;
    z-index: 60;
}

.uploaded-photo.dragging {
    cursor: default;
    z-index: 70;
}

.uploaded-photo img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transition: transform 0.1s ease;
}

.uploaded-photo img:hover {
    transform: scale(1.1);
}

.photo-hint {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: tomato;
    color: white;
    padding: 6px 12px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.uploaded-photo:hover .photo-hint {
    opacity: 1;
}

#photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

#photo-modal.show {
    display: flex;
}

#photo-modal-content {
    position: absolute;
    max-width: 90vw;
    max-height: 90vh;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
}

#photo-modal-content img {
    object-fit: contain;
    display: block;
    width: 14rem;
    height: auto;
    max-width: 70vw;
    max-height: 70vh;
    cursor: pointer;
}

#photo-modal-hint {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#photo-modal-content:hover #photo-modal-hint {
    opacity: 1;
}

#photo-modal-close {
    position: absolute;
    top: -35px;
    right: 0;
    background: transparent;
    color: black;
    border: none;
    font-size: 32px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

#photo-modal-close:hover {
    transform: scale(1.2);
}

.delete-photo-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: transparent;
    color: black;
    border: none;
    outline: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.delete-photo-btn:focus {
    outline: none;
}

.delete-photo-btn:hover {
    background: transparent;
    color: black;
    transform: scale(1.1);
}

#note-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

#note-modal.show {
    display: flex;
}

#note-modal-content {
    position: relative;
    background: transparent;
    padding: 30px;
   
    width: 90%;
    max-width: 520px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    border: 2px solid #000;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: noteModalPop 220ms ease-out;
}

@keyframes noteModalPop {
    0% { transform: scale(0.94) translateY(8px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

#note-textarea {
    font-family: 'Roboto Mono', monospace;    
    width: 100px;
    height: 200px;
    padding: 10px;
    border: 2px solid tomato;
    border-radius: 4px;
    font-size: 0.9rem;
    resize: none;
    box-sizing: border-box;
    margin-bottom: 4px;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

#note-textarea:focus {
    outline: none;
    border-color: #ff4500;
    box-shadow: 0 0 8px rgba(255, 99, 71, 0.3);
}

#note-modal-close {
    font-family: 'Roboto Mono', monospace;
    width: 100%;
    padding: 20px;
    background: transparent;
    color: tomato;
    border: 2px solid tomato;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

#note-modal-close:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 99, 71, 0.3);
}

#note-modal-close:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 99, 71, 0.3);
}

@keyframes screenshotRotate {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }
    100% {
        transform: translateX(-50%) rotate(360deg);
    }
}

.screenshot {
    display: none;
    font-family: 'Roboto Mono', monospace;
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: tomato;   
    font-size: 1rem;
    padding: 10px 20px;
    border: 2px solid tomato;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

body.has-content .screenshot {
    display: block;
}

.screenshot:hover {
    background: tomato;
    color: white;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 99, 71, 0.3);
    animation: screenshotRotate 3s linear infinite;
}

.screenshot:active {
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 2px 6px rgba(255, 99, 71, 0.3);
}

body.has-content h1:hover{
    filter: blur(5px);   
}

.impressum {
    font-family: 'Roboto Mono', monospace;
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 20;
    color: gray;
    font-size: 1rem;
    cursor: pointer;
    user-select: none;
}

.impressum:hover {
    color: black;
    font-weight: bold;}

.impressum-text {
    display: none;
    position: fixed;
    bottom: 50px;
    right: 10px;
    z-index: 20;
    background: transparent;
    border: 2px solid black;
    padding: 15px;
    max-width: 400px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: aliceblue;
}

.impressum-text.show {
    display: block;
}

#impressum-close {
    font-family: 'Roboto Mono', monospace;
    width: 100%;
    padding: 10px;
    background: transparent;
    color:black;
    border: 2px solid black;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    margin-top: 10px;
}

#impressum-close:hover {
    background: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 99, 71, 0.3);
}

#impressum-close:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 99, 71, 0.3);
}

.impressum-text h2 {
    margin: 0 0 10px 0;
    font-size: 30px;
    font-weight: bold;
    color: black;
}

.impressum-text p {
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.impressum-text p:last-of-type {
    margin-bottom: 0;
}

.impressum:hover + .impressum-text {
    display: block;
}

.h2{font-size: 200px;
color: black;}

