:root {
    --bg-gradient: linear-gradient(135deg, #566FFF 0%, #9B67D9 50%, #FB65C6 100%);
    --text-color: #ffffff;
    --link-color: #E7C432;
    --link-hover: #ffff99;
    --dropdown-bg: rgba(255, 255, 255, 0.95);
    --dropdown-border: #566FFF;
    --dropdown-hover: #f0f0ff;
    --dropdown-text: #000000;
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 50px;
    margin: 0;
    background: var(--bg-gradient);
    color: var(--text-color);
    transition: color 0.3s;
    min-height: 100vh;
}

.welcome {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 16px;
    display: none;
}

.welcome.show {
    display: block;
}

a {
    font-size: 24px;
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: var(--link-hover);
}

.settings {
    position: absolute;
    top: 20px;
    right: 20px;
}

.cog {
    font-size: 24px;
    cursor: pointer;
}

.dropdown {
    display: none;
    position: absolute;
    right: 0;
    background: var(--dropdown-bg);
    border: 1px solid var(--dropdown-border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    min-width: 150px;
}

.dropdown.show {
    display: block;
}

.dropdown a,
.dropdown div {
    display: block;
    padding: 10px;
    font-size: 16px;
    color: var(--dropdown-text);
    text-decoration: none;
    cursor: pointer;
}

.dropdown a:hover,
.dropdown div:hover {
    background: var(--dropdown-hover);
}

.books {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    text-align: left;
}

.book {
    padding: 15px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

.book iframe {
    width: 100%;
    height: 315px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.book img {
    width: 100%;
    height: auto;
    border-radius: 3px;
    margin-bottom: 10px;
}

.book a {
    font-size: 16px;
    color: var(--link-color);
    text-decoration: none;
}

.book a:hover {
    text-decoration: underline;
    color: var(--link-hover);
}

.book div {
    color: #ffffff;
}

.book small {
    color: #ffffff;
}

footer {
    margin-top: 100px;
    padding: 40px 0;
    border-top: 3px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    background: transparent;
    width: 100%;
    position: relative;
    left: -50px;
    right: -50px;
    padding-left: 50px;
    padding-right: 50px;
}

footer p {
    color: #ffffff;
}
