@import url('https://fonts.googleapis.com/css2?family=Gravitas+One&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Macondo&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    font-family: "Macondo", cursive;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    font-style: normal;
}

body {
     display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    background-image: url("images/lib1.74303aa87920.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    cursor: url("images/magic-wand.29019806ece9.png"), auto;
    overflow-y: auto;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(26, 24, 44, 0.4),
        rgba(45, 35, 66, 0.3));
    pointer-events: none;
    z-index: 0;
}

body > *{
    width: 100%;
    position: relative;
    z-index: 1;
}

.section.site-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 2em;

}

.section.site-header img{
    height: 100px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5));
    transition: all 0.3s ease;
}

.section.site-header img:hover {
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.8));
    transform: scale(1.05);
}

.section.site-header nav ul {
    display: flex;
    justify-content: space-between;
    gap: 1em;
    overflow: visible;
}

.section.site-header nav ul li {
    list-style: none;
}

.section.site-header nav ul li a {
    text-decoration: none;
    color: #f4e4c1;
    text-transform: uppercase;
    background: linear-gradient(135deg,
        rgba(139, 105, 20, 0.6),
        rgba(101, 67, 33, 0.6));
    padding: 0.8em 1.5em;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 3px rgba(255, 255, 255, 0.1);
    border: 2px solid #8b6914;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    display: inline-block;
}

.section.site-header nav ul li a:hover {
    background: linear-gradient(135deg,
        rgba(184, 134, 11, 0.7),
        rgba(139, 105, 20, 0.7));
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(212, 175, 55, 0.5),
        inset 0 1px 5px rgba(255, 255, 255, 0.2);
    border-color: #d4af37;
    color: #ffd700;
    text-shadow:
        1px 1px 3px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 215, 0, 0.5);
}

.profile-circle-container {
    list-style: none;
    overflow: visible;
    position: relative;
}

.profile-circle {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    border: 3px solid #d4af37;
    box-shadow:
        0 4px 20px rgba(212, 175, 55, 0.4),
        inset 0 1px 3px rgba(255, 255, 255, 0.1),
        0 0 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.profile-circle.guest {
    background: linear-gradient(135deg,
        rgba(100, 100, 100, 0.7),
        rgba(80, 80, 80, 0.7));
    color: #b0b0b0;
}

.profile-circle.guest:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow:
        0 8px 30px rgba(212, 175, 55, 0.6),
        inset 0 1px 5px rgba(255, 255, 255, 0.2),
        0 0 25px rgba(212, 175, 55, 0.6);
    border-color: #ffd700;
    color: #d4af37;
}

.profile-circle.authenticated {
    background: linear-gradient(135deg,
        rgba(184, 134, 11, 0.8),
        rgba(139, 105, 20, 0.8));
    padding: 0 !important;
}

.profile-circle.authenticated img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
}

.profile-circle.authenticated:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow:
        0 8px 30px rgba(212, 175, 55, 0.6),
        inset 0 1px 5px rgba(255, 255, 255, 0.2),
        0 0 25px rgba(212, 175, 55, 0.6);
    border-color: #ffd700;
}

.profile-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        rgba(184, 134, 11, 0.6),
        rgba(139, 105, 20, 0.6));
    color: #ffd700;
    font-weight: bold;
    font-size: 1.2em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.person-silhouette {
    width: 30px;
    height: 30px;
    color: #b0b0b0;
    font-size: 1.8em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg,
        rgba(26, 24, 44, 0.95),
        rgba(45, 35, 66, 0.95));
    border: 2px solid #d4af37;
    border-radius: 8px;
    min-width: 220px;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.7),
        inset 0 0 20px rgba(139, 105, 20, 0.2);
    padding: 0.5em 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-menu {
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

.profile-dropdown:hover .dropdown-menu,
.profile-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
}

.dropdown-item {
    display: block;
    padding: 0.8em 1.5em;
    color: #f4e4c1;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dropdown-menu form {
    width: 100%;
    margin: 0;
}

.dropdown-menu button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0.8em 1.5em;
    color: #f4e4c1;
    font-family: inherit;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dropdown-menu button:hover {
    background: rgba(184, 134, 11, 0.4);
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    padding-left: 2em;
}

.dropdown-item:hover {
    background: rgba(184, 134, 11, 0.4);
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    padding-left: 2em;
}

.dropdown-item.logout-btn {
    border-top: 1px solid #8b6914;
    margin-top: 0.5em;
}

.dropdown-menu hr {
    border: none;
    border-top: 1px solid #8b6914;
    margin: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    flex:1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2em;
}

button{
    display: inline-block;
    padding: 0.8em 1.8em;
    border: 2px solid #d4af37;
    border-radius: 2em;
    background: linear-gradient(135deg,
        rgba(139, 105, 20, 0.7),
        rgba(184, 134, 11, 0.7));
    color: #ffd700;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 3px rgba(255, 255, 255, 0.1);
    text-shadow:
        1px 1px 3px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(255, 215, 0, 0.4);

}

button:hover{
    background: linear-gradient(135deg,
        rgba(184, 134, 11, 0.8),
        rgba(212, 175, 55, 0.8));
    transform: translateY(-2px);
    box-shadow:
        0 6px 30px rgba(212, 175, 55, 0.6),
        inset 0 1px 5px rgba(255, 255, 255, 0.2);
    border-color: #ffd700;
    text-shadow:
        1px 1px 3px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(255, 215, 0, 0.7);
}

.box-details{
    padding: 1.5em 2.5em;
    margin: 1.5em auto;
    width: 90%;
    max-width: 350px;
    list-style: none;
    border: 3px solid #8b6914;
    border-radius: 8px;
    color: #f4e4c1;
    background: linear-gradient(135deg,
        rgba(26, 24, 44, 0.85),
        rgba(45, 35, 66, 0.85));
    backdrop-filter: blur(10px);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.6),
        inset 0 0 20px rgba(139, 105, 20, 0.2),
        0 0 40px rgba(212, 175, 55, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    gap: 1em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    position: relative;
}

.box-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 105, 20, 0.03) 2px,
            rgba(139, 105, 20, 0.03) 4px
        );
    pointer-events: none;
    border-radius: 8px;
}

.box-details:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.7),
        inset 0 0 30px rgba(139, 105, 20, 0.3),
        0 0 60px rgba(212, 175, 55, 0.4);
    border-color: #d4af37;
}

.box-details::after {
    content: '✦';
    position: absolute;
    top: 10px;
    right: 10px;
    color: #d4af37;
    font-size: 1.2em;
    opacity: 0.4;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}
 h1 {
    color: #d4af37;
    font-size: 3em;
    margin: 0;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(212, 175, 55, 0.5),
        0 0 40px rgba(139, 69, 19, 0.3);
    letter-spacing: 3px;
    animation: flicker 3s ease-in-out infinite;
}
.magic-footer {
    background: linear-gradient(135deg, rgba(26, 24, 44, 0.9), rgba(45, 35, 66, 0.9));
    text-align: center;
    padding: 1.5em 2em;
    color: #f4e4c1;
    border-top: 3px solid #8b6914;
    box-shadow:
        0 -5px 20px rgba(0, 0, 0, 0.6),
        inset 0 0 15px rgba(139, 105, 20, 0.2);
    font-family: "Macondo", cursive;
    font-size: 0.9em;
    position: relative;
    z-index: 1;
}

.magic-footer .footer-links a {
    color: #ffd700;
    text-decoration: none;
    margin: 0 0.5em;
    transition: all 0.3s ease;
}

.magic-footer .footer-links a:hover {
    color: #49d3ba;
    text-shadow: 0 0 6px #49d3ba;
    transform: translateY(-1px);
}

.magic-footer::before {
    content: '✦ ✧ ✦';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2em;
    color: #d4af37;
    opacity: 0.6;
}


.dropdown-menu form {
    margin: 0;
    padding: 0;
}

.dropdown-menu form button {
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    text-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    font-family: "Macondo", cursive;
    font-size: 1em;
    font-weight: normal;
    width: 100%;
    text-align: left;
    padding: 0.8em 1.5em;
    color: #f4e4c1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-menu form button:hover {
    background: rgba(184, 134, 11, 0.4);
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    padding-left: 2em;
    transform: none;
    box-shadow: none;
    border-color: transparent;
}


