/* ===== RESET ===== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #141414;
    color: #feffff;
    font-family: Arial, sans-serif;
    cursor: url("cursor-stand.png"), auto;
}

a,
button,
.dropdown-content a {
    cursor: url("cursor-stand.png"), pointer;
}

/* ===== FONDO ESTRELLAS ===== */

body::before {
    content: "";
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 60px 60px;
    animation: stars 4s linear infinite;
    opacity: 0.15;
    z-index: -1;
}

@keyframes stars {
    from { transform: translateY(0px); }
    to { transform: translateY(-60px); }
}

/* ===== CONTENEDOR ===== */

.wrapper {
    width: 1000px;
    margin: 0 auto;
}

/* ===== HEADER ===== */

header {
    text-align: center;
    padding: 30px 0;
    font-size: 40px;
    font-family: "Courier New", monospace;
    color: #5fd5bc;
    border-bottom: 1px solid #5fd5bc;
}

/* ===== NAV ===== */

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #757373;
}

/* ===== NAV FIJO ===== */

nav {
    position: sticky;
    top: 0;
    background-color: #141414;
    z-index: 1000;
}

/* ===== NAV ACTIVE ===== */

nav a.active,
.dropdown-content a.active {
    background-color: #5fd5bc;
    color: #141414;
}

/* ESTILO ÚNICO PARA TODOS LOS BOTONES */

nav a,
.dropbtn {
    display: inline-block;
    border: 1px solid #5fd5bc;
    padding: 6px 14px;
    text-decoration: none;
    color: #feffff;
    font-size: 14px;
    font-family: inherit;
    background: none;
}

nav a:hover,
.dropbtn:hover {
    background-color: #5fd5bc;
    color: #141414;
}

/* MOOD */

.mood {
    color: #5fd5bc;
    font-family: "Courier New", monospace;
    margin-right: 20px;
}

.face {
    color: #feffff;
}

/* ===== DROPDOWN ===== */

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #141414;
    border: 1px solid #5fd5bc;
    min-width: 150px;
    z-index: 10;
}

.dropdown-content a {
    display: block;
    padding: 8px 10px;
    text-decoration: none;
    color: #feffff;
}

.dropdown-content a:hover {
    background-color: #5fd5bc;
    color: #141414;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ===== GRID ===== */

.grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin: 40px 0;
}

.about {
    grid-column: 1;
    grid-row: 1;
}

.about-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.about-pic {
    width: 140px;
    height: 90px;
    object-fit: cover;
}

.about-text p {
    margin-top: 0;
    font-size: 14px;
}

.about-link {
    display: inline-block;
    margin-top: 8px;
    color: #5fd5bc;
    text-decoration: none;
    border-bottom: 1px solid #5fd5bc;
    font-size: 13px;
}

.about-link:hover {
    color: #feffff;
    border-bottom: 1px solid #feffff;
}

.menu-box {
    grid-column: 1;
    grid-row: 2;
}

.poll {
    grid-column: 1;
    grid-row: 3;
}

.diary {
    grid-column: 2;
    grid-row: 1 / 4;
}

.cool-sites {
    grid-column: 1 / 3;
    grid-row: 4;
}

/* ===== CAJAS ===== */

.box {
    background-color: #141414;
    border: 1px solid #5fd5bc;
    padding: 20px;
}

.box h2 {
    margin-top: 0;
    color: #5fd5bc;
    font-family: "Courier New", monospace;
    font-size: 18px;
}

/* ===== GALLERY ===== */

.gallery-page {
    margin: 40px 0;
}

.gallery-intro {
    text-align: center;
    font-size: 14px;
    color: #5fd5bc;
    font-family: "Courier New", monospace;
}

.gallery-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    display: block;
}

/* ===== FOOTER ===== */

footer {
    text-align: center;
    padding: 20px 0;
    font-size: 12px;
    color: #757373;
    border-top: 1px solid #757373;
}

