/* === Global === */
body {
    min-height: 100%;
    margin: 0;
    background: url(images/styling/background.jpg);
}

h1 {
    text-align: center;
    color: #E7C24F;
}

h2{
    text-align: left;
    padding-left: 3%;
    color: #DC4618;
}

/* === About the Author === */
    p {
    color: #fff;
    background-color: #511414;
    margin-left: 3%;
    margin-right: 3%;
    padding: 10px;
    
}

/* === Header === */
header {
    background: url("images/header-image.jpg") no-repeat center center;
    background-size: cover;
    height: 178px;
    width: 100%;
    display: flex;
    align-items: center;
}

header img {
    display: block;
    height: 90%;
    width: auto;
    margin-left: 10px;
    border: 5px solid #E7C24F;
    border-radius: 20px;
    box-shadow: 0 0 20px #fff;
}

/* === Navigation === */
nav {
    background: #E7C24F;
    width: 100%;
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 50px;
    min-height: 50px;
    border-top: 3px solid #DC4618;
    border-bottom: 3px solid #DC4618;
    padding: 0 20px;
    box-sizing: border-box;
}

nav a {
    color: white;
    text-decoration: none;
}

nav a:hover {
    background-color: #DC4618;
    text-shadow: 4px 4px 2px #6B8E23;
}

/* === Menu Button === */
.menu-btn { 
    cursor: pointer; 
    border: none; 
    background-color: transparent;
    display: none;
    padding: 5px;
}

.menu-btn span {
    display: block;
}

.bar1, .bar2, .bar3 {
    width: 30px;
    height: 4px;
    background-color: white;
    margin: 5px 0;
    transition: 0.4s;
}

.change .bar1 {
    transform: translate(0, 9px) rotate(-45deg);
}

.change .bar2 { 
    opacity: 0; 
}

.change .bar3 {
    transform: translate(0, -9px) rotate(45deg);
}

/* === ENTRY CARDS === */
.entry-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
}

.entry-card {
    background-color: #511414;
    border: 3px solid #6B8E23;
    border-radius: 6px;
    padding: 0.75rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.entry-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px #DC4618;
}

.entry-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.entry-card h3 {
    margin: 0.25rem 0;
    font-size: 1.1rem;
    color: #DC4618;
}

.entry-card p {
    margin: 0.15rem 0;
    font-size: 0.9rem;
    color: #E7C24F;
}

/* === DETAIL PANEL === */
.detail-entries {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 70%;
    max-height: 80%;
    overflow-y: auto;
    padding: 1rem;
    background-color: #511414;
    border-radius: 6px;
    border: 3px solid #6B8E23;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
    z-index: 1001;
    font-size: large;
}

.detail-entries::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(81,20,20,0.8);
    z-index: -1;
}

.detail-entries img {
    width: 100%;
    border-radius: 4px;
    margin: 0.75rem 0;
}

.detail-entries h2,
.detail-entries p {
    color: #E7C24F;
}

#close-panel {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #E7C24F;
    cursor: pointer;
}

#close-panel:hover {
    color: #DC4618;
}

/* === FOOTER === */
footer {
    text-align: center;
    padding: 1rem;
    margin-top: 3rem;
   
    p {
    color: #fff;
    background: none;
    margin-left: 3%;
    margin-right: 3%;
    padding: 10px;
    }
}


footer img {
    height: 60px;
    border: 5px solid;
    border-radius: 20px;
}


/* === MOBILE === */
@media screen and (max-width: 699px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 20px;
    }

    .menu-btn {
        display: block;
    }

    nav a {
        display: none;
        width: 100%;
    }

    nav.show a {
        display: block;
    }
}

/* === DESKTOP === */
@media screen and (min-width: 700px) {
    nav {
        justify-content: center;
    }

    nav a {
        display: block;
    }

    .menu-btn {
        display: none;
    }
}