* {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}

html {
    /* background-image: url("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRvIj0qfg1t9SiuCmv-bmlmNNjBqK5ynHoMjW5bhxzVfg&s"); */
    background-color: white;
}

body {
    background-color: white;
    color: #141E46;
}

/* Navbar */
#navbar {
    height: 2.5rem;
    background-color: #C63D2F;
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
}

#navbar ul {
    display: flex;
    justify-content: center;
    background-color: #C63D2F;
    column-gap: 1rem;
    padding-top: 0.5rem;
}

#navbar ul a {
    color: white;
    background-color: #C63D2F;
    text-decoration: none;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-input {
    padding: 2px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}

/* Banner */
#banner {
    height: 25rem;
    background-color: #FF6969;
    background-image: url("https://static.promediateknologi.id/crop/0x0:0x0/750x500/webp/photo/p1/18/2023/08/22/Banner-Jalan-Sehat-2502715933.jpg");
    background-size: cover;
    background-position: center bottom;
}

/* Gallery */
/* #gallery {
    background-image: url("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRvIj0qfg1t9SiuCmv-bmlmNNjBqK5ynHoMjW5bhxzVfg&s"); */
    /* background: rgb(255,0,0);
    background: linear-gradient(180deg, rgba(255,0,0,1) 0%, rgba(223,42,42,1) 24%, rgba(226,82,82,1) 49%, rgba(216,60,60,1) 75%, rgba(207,38,38,1) 100%);
} */

.gallery-title {
    font-size: 3rem;
    text-align: center;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    color: rgb(216, 14, 14);
    background: rgba(0, 0, 0, 0);
}

.container {
    display: flex;
    width: 90%;
    margin: auto;
    column-gap: 1rem;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
}

.card {
    display: flex;
    flex-direction: column;
    width: 19rem;
    background-size: cover;
    padding: 0.3rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);
    background-color: white;
    cursor: pointer;
}

.card:hover {
    transform: scale(1.01);
}

.card-img {
    width: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-color: white;
}

.card-img img {
    width: 100%;
    max-height: 16rem;
    object-fit: cover;
    object-position: center top;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card-content {
    padding: 1rem;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background-color: white;
}

h3 {
    margin-bottom: 1rem;
    background-color: white;
}

.card-content p {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    background-color: white;
}

p > span {
    font-weight: bold;
    background-color: white;
}

/* Footer */


/* DETAIL PAGE */
#detail {
    display: flex;
    flex-direction: column;
    max-width: 50rem;
    margin: auto;
    padding: 3rem;
    background-color: white;
    border-radius: 10px;
    margin-top: 5rem;
}

.top-content {
    display: flex;
    align-items: center;
}

.top-content img {
    width: 20rem;
    height: 20rem;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
}

.top-content-info {
    margin-left: 2rem;
}

.top-content-info h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.top-content-info p {
    margin-bottom: 1rem;
}

.top-content-info span {
    font-weight: bold;
}

.bottom-content h3 {
    margin-top: 1rem;
}

.bottom-content p {
    text-align: justify;
}

.button-set {
    display: inline-block;
    margin: auto;
}

.button-set button {
    padding: 1rem;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    margin: auto;
    margin-top: 1rem;
    margin-right: 1rem;
    cursor: pointer;
}

.update {
    background-color: green;
}

.delete {
    background-color: red;
}

#footer {
    position: relative;
    bottom:0px;
    margin: auto;
    text-align: center;
    padding: 1rem;
    background-color: #C63D2F;
    color: white;
}


/* ADD PAGE */
#add-page {
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.form-container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 400px;
  }

  .form-group {
    margin-bottom: 15px;
  }

  label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
  }

  input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
  }

  textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
  }

  .submit-button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
  }

  .submit-button:hover {
    background-color: #0056b3;
  }