/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem;
    line-height: 1.5;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

/* Header styles */
header {
    display: flex;
    position: relative;
    align-items: center;
    background-color: #3a5a78;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

header img {
    width: 100px;
    height: auto;
    border-radius: 10%;
    margin-right: 1rem;
}

header span {
    font-size: 1.5rem;
    font-weight: 500;
}

/* Material Icons styles */
.material-symbols-rounded {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: pointer;
    transition: transform 0.8s ease, opacity 0.2s ease;
}

.material-symbols-rounded:hover {
    opacity: 0.8;
}

/* Control buttons */
#darkmode, #menu {
    font-size: 2rem;
    border: 0;
    background: none;
    color: #ffffff;
    position: absolute;
    right: 1.5rem;
}

#darkmode {
    top: 1rem;
}

#menu {
    bottom: 1rem;
}

/* Animations and states */
.darkmode #darkmode {
    transform: rotate(270deg);
}

#menu.open {
    transform: rotate(90deg);
}

/* Navigation styles */
nav {
    display: flex;
    height: 0;
    overflow: hidden;
    background-color: #ffffff;
    margin-bottom: 1rem;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    border-radius: 5px;
    transition: height 0.5s ease;
}

nav.open {
    height: 215px;
    overflow: visible;
    background-color: #e6e6e6;
}

nav a {
    display: block;
    padding: 0.8rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    width: 100%;
    text-align: center;
}

nav a:hover {
    background-color: #3a5a78;
    color: white;
}

/* Main content */
main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
#hero-div {
    position: relative;
    width: 100%;
}
#hero-div img {
    width: 100%;
    border-radius: 5px;
    max-height: 450px;
    object-fit: cover;
}
#hero-overlay {
    position: absolute;
    text-wrap: nowrap;
    top: 1rem;
    left: 2rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    border-radius: 5px;
}
main h1 {
    text-align: center;
    margin: 1rem 0;
}

/* Card styles */
.card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card ul {
    list-style-type: none;
    padding-left: 1rem;
}

.card li {
    margin-bottom: 0.5rem;
}

.card h3 {
    margin: 1.5rem 0 0 0;
}

.card a {
    margin-left: 0.5rem;
    color: #3a5a78;
    text-decoration: none;
    transition: text-decoration 0.3s ease;
    
}

.card a:hover {
    text-decoration: underline;
}

/* Footer styles */
footer {
    background-color: #3a5a78;
    color: white;
    text-align: center;
    padding: 1rem;
    border-radius: 5px;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Dark mode styles */
body.darkmode {
    background-color: #121212;
    color: #e0e0e0;
}

body.darkmode header {
    background-color: #1e3a5a;
}

body.darkmode nav {
    background-color: #121212;
}

body.darkmode nav.open {
    background-color: #2d2d2d;
}

body.darkmode nav a {
    color: #e0e0e0;
}

body.darkmode nav a:hover,
body.darkmode nav a.active {
    background-color: #1e3a5a;
    color: white;
}

body.darkmode .card {
    background-color: #1e1e1e;
    border-color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.darkmode .card a {
    color: #7eabd6;
}

body.darkmode footer {
    background-color: #1e3a5a;
}

/* Discover Page Styles */
#discover-main {
    display: none;
}