@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Fredoka:wght@400;500;600&family=Poppins:wght@400;500;600&display=swap');
body{
    font-family: 'Poppins', sans-serif;
    margin:0;
    background-image: url('img/mkn 6.jpeg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* HEADER */
header{
    font-size: 48px;
    font-family: 'DM Serif Display', serif;
    padding:20px;
    text-align:center;
    color: rgb(11, 83, 23);
    color: #725C3F;
}

nav a{
    color: rgb(11, 83, 23);
    margin: 10px;
    text-decoration:none;
    font-weight:bold;
    font-size: 38px;
}

.content{
    position: relative;
    z-index: 2;
    max-width:700px;
    margin:auto;
    padding:40px;
    background:white;
} 

/* WELCOME PAGE */
.welcome{
    .welcome{
    display:flex;
    justify-content:center;
    align-items:flex-start;
    padding:80px 20px;
    background:#e64f4f;
    color:rgb(11, 83, 23);
}
}

.welcome-box {
    margin-top: 98px;
    text-align:center;
    width:400px;
}

.welcome-box h1 {
    text-shadow: 2px 2px 5px rgba(7, 105, 12, 0.7);
    font-size: 47px;
    font-family: 'Playfair Display';
    font-weight: 600;
    letter-spacing: 2px;
}

.welcome-box p {
    text-shadow: 1px 1px 3px rgba(7,105,12,0.7);
    font-size: 19px;
    font-family: 'Poppins';
    font-weight: 300;
    letter-spacing: 1.4px;
}

.btn-next{
    display:inline-block;
    margin-top:18px;
    padding:11px 32px;
    background: rgb(11, 83, 23);
    color: rgb(252, 238, 159);
    text-decoration:none;
    border-radius:5px;
    font-family: 'Poppins';
}

/* POPULAR */

/* JUDUL */
header h1{
    font-size: 53px;
    margin-bottom: 10px;
    color: rgb(112, 90, 15);
    font-family: 'DM Serif Display', serif;
}

.navbar{
    position: sticky;
    top: 0;
    backdrop-filter: blur(2px);
    font-family: 'DM Serif Display', serif;
}

.pulau{
    font-family: 'Fredoka', sans-serif;
}

/* NAV LINK */
nav a{
    position: relative;
    transition: 0.3s;
    font-family: 'Fredoka', sans-serif;
    font-size: 28px;
    color: rgb(112, 90, 15);
}

nav a:hover{
    color: #e55d00;
}

nav a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: #e55d00;
    transition: 0.3s;
}

nav a:hover::after{
    width: 100%;
}

/* SECTION POPULAR */
.popular-container{
    display: flex;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    flex-wrap: wrap;
    justify-items: center;
    margin-top: 30px;
    text-align: center;
    font-family: 'Fredoka', sans-serif;
}

/* CARD */
.card{
    background: rgba(255, 198, 74, 0.85);
    backdrop-filter: blur(6px);
    padding:20px;
    width:300px;
    border-radius:15px;
    box-shadow:0 6px 20px rgba(0,0,0,0.1);
    transition: 0.3s;

    display: flex;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    font-family: 'Fredoka', sans-serif;
    color: rgb(112, 90, 15);
    justify-content: space-between;
}

.card a {
    display: inline-block;
    padding: 23px 14px;
    background: #a06134;
    color: #fff3c4;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;

    position: relative;
    right: -42px;

    width: 80px;  
    height: auto;
    white-space: normal;
}

.card h3,
.card p {
    position: relative;
    left: 16px;
}

.card:last-child {
    grid-column: span 2;
    justify-self: center;
}

.card:hover{
    transform: translateY(-8px);
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
}

/* BUTTON DALAM CARD */
.btn-lihat-resep{
    display:inline-block;
    margin-top:10px;
    padding:18px 38px;
    background:#a06134;
    color: rgba(255, 198, 74, 0.85);
    text-decoration:none;
    border-radius:5px;
    transition:0.3s;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.card a:hover{
    background:#e55d00;
}

/* JUDUL SECTION */
.popular h2{
    font-size:32px;
    margin-bottom:30px;
    color: rgb(112, 90, 15);
    font-family: 'Fredoka', sans-serif;
    text-align: center;
}

.popular{
    border-radius: 20px;
    margin: 40px;
    font-family: 'Fredoka', sans-serif;
}

/* PULAU */
.pulau{
    text-align:center;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    color: white;
}

.island a{
    display:inline-block;
    margin:10px;
    padding:15px 25px;
    background: rgb(11, 83, 23);
    color:white;
    text-decoration:none;
    border-radius:5px;
}

/* RESEP */

a.home-link {
    position: relative;
    font-size: 28px;
    color: #725C3F;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
    font-family: 'Fredoka', sans-serif;
}

a.home-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: #e55d00;
    transition: 0.3s;
}

a.home-link:hover {
    color: #e55d00;
}

a.home-link:hover::after {
    width: 100%;
}

.food-list{
    padding:40px;
    text-align:center;
}

.food-list h2 {
    font-size: 32px;
    color: #725C3F;
    font-family: 'Fredoka', sans-serif;
    margin-bottom: 25px;
}

.resep-container {
    display: grid;
    grid-template-columns: repeat(2, auto);
    column-gap: 90px;
    row-gap: 35px;
    justify-items: center;
    margin-top: 30px;
}

.video-btn{
    display:inline-block;
    margin-top:15px;
    padding:12px 20px;
    background:#ff6a00;
    color:white;
    text-decoration:none;
    border-radius:6px;
    font-weight:bold;
}

.video-btn:hover{
    background:#e55d00;
}