/* Basic reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
  body {
        font-family: Times New Roman;
        color: antiquewhite;
        line-height: 1.6;
        background-image: url("../../src images/homebackground.jpg");
    }

    header {
        background: #472916;
        color: antiquewhite;
        padding: 1rem 0;
        text-align: center;
	    position: static;
	    bottom: 50px;
    }

    nav {
        background: #251507;
        padding: 0.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav a {
        color: antiquewhite;
        text-decoration: none;
        margin: 0 1rem;
    }

    nav a:hover,
    .dropdown .dropbtn:hover {
        text-decoration: underline;
    }  

    main {
        padding: 1rem;
        max-width: auto;
        margin: auto;
        color: antiquewhite;
    }

    button {
        background: #483c32;
        color: antiquewhite;
        border: none;
        padding: 0.5rem 1rem;
        cursor: pointer;
        border-radius: 4px;
        margin:1rem;
    }

    button:hover {
        background: #2c1608;
        color:antiquewhite;
        margin: 1rem;
        padding: 0.5rem 1rem;
        transform: translateY(-4px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    button a{
        text-decoration-line:none;
        padding: 0.5rem 1rem;
    }

    footer {
        background: #251507;
        color: antiquewhite;
        text-align: center;
        padding: 1rem;
        margin-top: 2rem;
    }

/* COUNTDOWN TIMER */

.timer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.counter {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.counter__time {
  font-size: 1.5rem;
  font-weight: bold;
}

.counter__duration {
  font-size: 0.9rem;
}

/* HELPERS */

.dots {
  font-size: 20px;
  color: #2c1608;
  margin: -0.75rem;
  padding: 0;
  
}

/* Dropdown container */
    .dropdown {
        position: relative;
    }

/* Dropdown button */
    .dropdown .dropbtn {
        font-size: 16px;
        font-family: Times New Roman;
        border: none;
        outline: none;
        padding: 14px 20px;
        color: antiquewhite;
        background-color: transparent;
        cursor: pointer;
    }

    .dropdown:hover .dropbtn {
        background-color: antiquewhite(0, 0, 0, 0.15);
        
    }

/* Dropdown content (hidden by default) */
    .dropdown-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #251507;
        min-width: 160px;
        box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
        z-index: 1;
        color: antiquewhite;
    }

/* Links inside dropdown */
    .dropdown-content a {
        float: none;
        color: antiquewhite;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        text-align: left;
    }
    .dropdown-content a:hover {
        background-color: #251507;
    }

/* Show dropdown on hover */
    .dropdown:hover .dropdown-content {
        display: block;
    }

/*Main Page*/

    .left-column {
        float: left;
        width: 60%;
    }

    .left-column-1 {
        float: right;
        width: 100%;
        position: center;
        margin-top: 20px;
    }
    .fill {
        float: bottom;
        width: 100%;
        font-size: 20px;
    }

    .right-column {
       float: right;
       width: 40%;
       padding-left: 20px;
    }

    .character {
        padding: 20px;
        width: 100%;
        text-decoration: none;
        color:antiquewhite;
    }

    .left-card {
        background-color:#472916;
        padding: 40px;
        margin-top: 20px;
    }

    .right-card {
        background-color:#472916;
        padding: 20px;
        margin-top: 20px;
    }

    .row:after {
        content:"";
        display: table;
        clear: both;
    }

    
    @media screen and (max-width: 800px) {
        .left-column, .right-column {
            width: 100%;
            padding: 0;
        }
    }
    .container {
  padding: 64px;
  margin-top: 20px;
}

/* Clear floats */
.row:after {
  content: "";
  display: table;
  clear: both
}

/*New Memories*/
.memory-box {
    max-width: 280px;
    width: 100%;
    background-color: #472916;
    border: 1px solid #2c1608;
    margin: 1rem;
    cursor: pointer;
    justify-content: center;
    font-family: Times New Roman;
    overflow:hidden;
    padding-right: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0px;
}
/* Grid layout*/

.grid {
    display: inline-grid;
    flex: nowrap;

.row.second-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 20px;
    align-items: center;
}
.row.second-row, .memory-box {
    margin: 2rem;
    padding: 2rem;
    border: 1px solid #ececec;
    border-radius: 80px;
}

@media (max-width: 800px) {
    .row.second-row {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
    }
}
@media (max-width: 600px) {
    .row.second-row {
        grid-template-columns: 1fr;
    }
}
}

/*Memory image*/
.memory-img {
    flex-shrink:0px;
    overflow: hidden;
    margin: 1rem;
    align-content: center;
}
.memory-img img,
.memory-profile {
    max-width:220px;
    width: 100%;
    max-height:220px;
    height: 100%;
    border: 2px solid #2c1608;
    border-radius: 8px;
    flex-shrink: 0px;
    display: inline-grid;
}


/*Memory-title*/
.memory-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0.5rem 0;
    text-align: center;
    color: antiquewhite;
    font-style: bold;
}

/*Memory-date*/
.memory-date {
    font-size: 0.9rem;
    color: antiquewhite;
    text-align: center;
    margin-bottom: 0.5rem;
    font-style: italic;
}

/*Updates*/
.updates {
    font-size: 18px;
    font-style:bold italic;
}
.section {
    font-size: 40px;
    text-align:center;
}

.description {
    font-size: 20px;
    text-align: left;
}
