* { padding: 0; margin: 0; box-sizing: border-box; overflow-x: hidden; scroll-behavior: smooth; } @keyframes show { from { height: 0px; } to { height: 50px; } } @keyframes hide { from { height: 50px; } to { height: 0px; } } nav { transition: 1s all; background-color: transparent; width: 100%; top: 0; z-index: 100000; position: fixed; align-items: center; display: flex; justify-content: space-around; -webkit-transition: 1s all; -moz-transition: 1s all; -ms-transition: 1s all; -o-transition: 1s all; } nav .title { animation-timeline: scroll; transition: 1s all; font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif; margin-left: 5px; gap: 5px; align-items: center; display: flex; -webkit-transition: 1s all; -moz-transition: 1s all; -ms-transition: 1s all; -o-transition: 1s all; } nav .title img { transition: 1s all; width: 70px; height: 70px; -webkit-transform: blur(15px); -moz-transform: blur(15px); -ms-transform: blur(15px); -o-transform: blur(15px); } nav .title h1 { transition: 1s all; color: white; } nav .item { transition: 1s all; display: flex; gap: 15px; } nav .item a { text-decoration: none; cursor: pointer; z-index: 10000; transition: 1s all; color: white; font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif; } .pisang { overflow: hidden; overflow-x: hidden; } .pisang .picture { overflow: hidden; } .pisang .picture img { transition: 1s all; position: absolute; width: 100vw; height: 80vh; background-size: cover; object-fit: cover; -webkit-transition: 1s all; -moz-transition: 1s all; -ms-transition: 1s all; -o-transition: 1s all; } .nav { opacity: 0.7; margin: 0 14px; min-height: 90vh; align-items: center; display: flex; justify-content: space-between; position: relative; -webkit-transition: 1s all; -moz-transition: 1s all; -ms-transition: 1s all; -o-transition: 1s all; } .nav button { transition: 1s all; border-radius: 20px; border: none; padding: 9px; font-size: 20px; -webkit-border-radius: 20px; -moz-border-radius: 20px; -ms-border-radius: 20px; -o-border-radius: 20px; } .pisang .titleimg { background-color: white; gap: 10px; padding: 15px; flex-direction: column; display: flex; color: black; width: 100%; bottom: 0; position: absolute; } .titleimg h1 { opacity: 1; display: inline-block; transition: 1s all; -webkit-transition: 1s all; -moz-transition: 1s all; -ms-transition: 1s all; -o-transition: 1s all; } .titleimg p { width: 90%; opacity: 1; } .Jenis h1 { display: inline-flex; overflow-x: hidden; justify-content: center; } .Jenis { flex-direction: column; display: flex; gap: 50px; margin-top: 100px; position: relative; } .Jsenis { background-color: transparent; z-index: 0; position: relative; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; } .Items li { font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif; font-size: 20px; display: flex; justify-content: center; } .Items { transform: 1s all; display: flex; flex-direction: column; gap: 10px; background: #f5c146; border: 2px solid black; padding: 15px; padding-bottom: 20px; border-radius: 5px; -webkit-border-radius: 5px; -moz-border-radius: 5px; -ms-border-radius: 5px; -o-border-radius: 5px; -webkit-transform: 1s all; -moz-transform: 1s all; -ms-transform: 1s all; -o-transform: 1s all; } .Items img { margin: auto; display: flex; justify-content: center; border: 1px solid black; border-radius: 5px; width: 250px; height: 200px; -webkit-border-radius: 5px; -moz-border-radius: 5px; -ms-border-radius: 5px; -o-border-radius: 5px; } .description { justify-content: center; gap: 20px; align-items: center; display: flex; } .description button { cursor: pointer; padding: 10px; border: 1px solid black; background-color: #f6cc6a; border-radius: 6px; -webkit-border-radius: 6px; -moz-border-radius: 6px; -ms-border-radius: 6px; -o-border-radius: 6px; } .desc { justify-content: center; align-items: center; display: flex; height: auto; -webkit-transition: 1s all; -moz-transition: 1s all; -ms-transition: 1s all; -o-transition: 1s all; } .desc p { transition: all 1s; width: 500px; -webkit-transition: all 1s; -moz-transition: all 1s; -ms-transition: all 1s; -o-transition: all 1s; } /* Container */ .articles { display: flex; flex-direction: column; align-items: center; margin-top: 50px; width: 100%; padding: 0 20px; } .articles h1 { font-size: 36px; margin-bottom: 20px; text-align: center; } /* Article list container */ .isi { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; } /* Each article block */ .blocks { display: flex; align-items: center; gap: 15px; padding: 15px; border: 1px solid black; border-radius: 8px; max-width: 500px; background-color: #fdf3d3; } .articles { display: flex; flex-direction: column; align-items: center; margin-top: 50px; padding: 20px; width: 100%; } .articles h1 { font-size: 2rem; margin-bottom: 20px; } .isi { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 700px; } .blocks { display: flex; flex-direction: row; align-items: center; gap: 20px; border: 1px solid #ccc; padding: 15px; border-radius: 10px; background-color: #fdfdfd; box-shadow: 0 2px 6px rgba(0,0,0,0.1); } .article-button { width: 100px; flex-shrink: 0; border: none; background: none; padding: 0; cursor: pointer; } .article-button img { width: 100%; height: 100px; object-fit: cover; border-radius: 6px; border: 1px solid #ccc; } /* Article preview text */ .article-text { flex: 1; font-size: 16px; color: #333; margin: 0; } /* Modal image styling */ .modal-content img { width: 100%; height: auto; border-radius: 8px; }