* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

:root {
    --highlight-color: #1f242d;
    --download-color: #C2B280;
    --text-color: #ffffff;
}
html {
  scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--highlight-color);
    font-family: 'Montserrat', sans-serif;
}

header {
    position: fixed;
    top: 0;
    z-index: 2;
    
}
nav {
    background-color: #C2B280;
    padding: 1rem;
    border-radius: 25px;
}
nav a{
    text-decoration: none;
    
    margin-left: 25px;
    margin-right: 25px;
}
nav a:hover{
    color: var(--text-color);
}


.love,.nature,.history {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.pics {
    position: relative;
    overflow: hidden;
    height: 500px;
    width: 300px;
    border-radius: 15px;
    z-index: 1;
}

.pics img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}


.pics:hover img {
    transform: scale(1.1);
    filter: brightness(70%);
}

.hover {
    position: absolute;
    top: 0;
    left: 0; 
    width: 100%;
    height: 100%;
    /* display: flex;
    justify-content: center;
    align-items: center; */
    opacity: 0; 
    transition: 0.5s ease;
    transform: scale(0);
    /* pointer-events: none;  */
}

.pics:hover .hover {
    opacity: 1;
    transform: scale(1);
}

.download {
    position: absolute;
    right: 0;
}
.download button {
    width: 35px;
    height: 35px;
    font-size: 20px;
    border: none;
    background-color: var(--download-color);
    border-radius: 0 10px 0 10px;
}

.download button:hover {
    color: #ffffff;
}


.text { 
    text-align: center;
    padding: 50px;
    color: var(--text-color);
    pointer-events: none; 
}


section {
    display: none;
}


@media(min-width:640px) and (max-width:1023px){
    .love,.nature,.history {grid-template-columns: repeat(2, 1fr);gap: 1rem;}
    .pics {height: 250px;width: 150px;}
    .download button {width: 25px;height: 25px;font-size: 15px;}
    .text { font-size: 10px}
    nav {padding: .5rem;}
    nav a{margin-left: 15px;margin-right: 15px;}
}

@media(max-width:639px) {
   .love,.nature,.history {grid-template-columns: repeat(1, 1fr);gap: 1rem;} 
}
