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

#app { height: 100%; display: flex; flex-direction: column; font-family: Arial, sans-serif;}
a { color: brown; font-size: large; font-weight: bold; }

.horizontal-box {display: flex; flex-direction: row;}
.vertical-box {display: flex; flex-direction: column;}

div.main-layout {height: 100%; display: flex; flex-direction: column; transition: opacity 0.4s ease, transform 0.2s ease, visibility 0.2s ease; transform-origin: center; opacity: 0; transform: scale(0.9); visibility: hidden;}
div.main-layout.show { opacity: 1; transform: scale(1); visibility: visible; }

.main-header { background-image: url("/images/geckos.avif"); background-position: center; padding-bottom: 10px; border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }

.pagebox { justify-content: flex-end; gap: 16px; padding-right: 30px; padding-top: 20px; }

.popup-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; } 
.popup-box { position: absolute; display: flex; flex-direction: column; max-height: calc(90vh - 40px); max-width: 85%; overflow: hidden; background: white; padding: 24px; border-radius: 8px; min-width: 250px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); opacity: 0; transform: scale(0.8); visibility: hidden; transition: opacity .4s, transform .4s, visibility .4s; transform-origin: center; }
.popup-box.show { opacity: 1; transform: scale(1); visibility: visible; }
.popup-content { max-height: calc(100% - 60px); overflow: auto; scrollbar-width: none; -ms-overflow-style: none; }
.popup.popup-content::-webkit-scrollbar { display: none;  }
.popup-header {text-align: center; font-size: large; font-weight: bold; margin-bottom: 20px; font-family: "Segoe UI", "Gill Sans", sans-serif;}

.popup-box h2 { text-align: center; font-size: 1.4rem; font-weight: 700; margin-bottom: 18px; color: #5a3d1e; font-family: "Segoe UI", "Gill Sans", sans-serif; }

.textarea {resize: none; overflow: auto; border-radius: 5px; }

.button {cursor: pointer; display: inline-flex; border-radius: 5px; align-items: center; justify-content: center; padding: 0; border: none; transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease; transform-origin: center;}
.button.mainheader { height: 42px; width: 110px; font-size: 1.1rem; font-weight: 600; background: linear-gradient(135deg, #ffd9a8, #ffb07c); color: #5a3d1e; box-shadow: 0 3px 6px rgba(0,0,0,0.2); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.button.mainheader:hover { transform: translateY(-2px); box-shadow: 0 5px 10px rgba(0,0,0,0.25); }
.button.mainheader:active { transform: translateY(0); box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.button.fab { position: absolute; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%; color: white; border: none; display: flex; align-items: center; justify-content: center; z-index: 2; }
.button.fab { background-color: #FFB085; box-shadow: 0 4px 10px rgba(0,0,0,0.25); font-size: 32px; transition: transform 0.2s ease; }
.button.fab:hover { transform: scale(1.1); }
.button.hamburger { display: block; font-size: 1.6rem; background: transparent; border: none; color: #5a3d1e; padding: 4px 8px; cursor: pointer; }
.button.popup {width: 100px; height: 32px; font-size: initial; gap:10px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; padding: 0;}
.button.popup.cancel { position: initial; margin-left:auto; width:fit-content; background-color: transparent; box-shadow: none;}

.button.hide { opacity: 0; transform: scale(0.8); visibility: hidden; }
.button.show { opacity: 1; transform: scale(1); visibility: visible; }

.label { width:140px; text-align: start;}
.label.popup-header {color: chocolate;}

.input {background-color: gainsboro; border:none; border-radius: 5px;}
.input:focus {outline: 2px solid #4a90e2; outline-offset: 2px;}

.icon {height:20px;}

.nav-left { flex: 1; gap: 16px; margin-left:10px; }
.nav-right { position: absolute; top: 60px; right: 16px; background: rgba(255, 255, 255, 0.95); border-radius: 12px; padding: 0; overflow: hidden; display: flex; flex-direction: column; gap: 0; max-height: 0; opacity: 0; transform: translateY(-10px); pointer-events: none; box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.35s ease; }
.nav-right.open { max-height: 400px; opacity: 1; transform: translateY(0); pointer-events: auto; padding: 12px; gap: 8px; z-index: 1;}



@media (max-width: 600px) {
.pagebox { justify-content: space-between; align-items: center; padding: 12px 16px; gap: 8px; position: relative; }
  
.nav-left { gap: 8px; }
.button.mainheader { width: 100%; padding: 0 12px; height: 36px; font-size: 0.9rem; }
}
