/* RESET DAN DASAR */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  height: 100%;
  background-image: url("bg.jpg");
  background-repeat: repeat;
  background-position: center top;
  background-color: #fff9f0;
  font-family: 'Poppins', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* WRAPPER UTAMA */
.body-wrapper {
  min-height: 100vh;
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  max-width: 480px;
  width: 100%;
}

/* LOGO DAN JUDUL */
.logo {
  width: 80px;
  margin-bottom: 10px;
}

h1 {
  font-size: 22px;
  color: #f28500;
  margin-bottom: 5px;
}

.tagline {
  font-size: 14px;
  color: #666;
  margin-bottom: 25px;
}

/* FORM INPUT */
.shortlink-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shortlink-form input[type="url"] {
  padding: 12px 14px;
  font-size: 16px;
  border: 2px solid #f7c67c;
  border-radius: 10px;
  outline: none;
  transition: 0.3s;
}

.shortlink-form input[type="url"]:focus {
  border-color: #f28500;
  background: #fffdf8;
}

.shortlink-form button {
  background-color: #f28500;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.shortlink-form button:hover {
  background-color: #e07400;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal.open {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fffefb;
  margin: auto;
  padding: 25px 20px;
  border-radius: 20px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  text-align: center;
  position: relative;
}

.modal-content h3 {
  font-size: 20px;
  color: #f28500;
  margin-bottom: 10px;
}

.modal-content p a {
  font-size: 20px;
  color: #e36c00;
  text-decoration: none;
  word-break: break-word;
}

.modal-content img {
  margin-top: 20px;
  width: 200px;
  height: 200px;
}

/* CLOSE BUTTON */
.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.close:hover {
  color: #333;
}

/* RESPONSIF */
@media (min-width: 600px) {
  h1 {
    font-size: 26px;
  }

  .tagline {
    font-size: 16px;
  }

  .shortlink-form input[type="url"] {
    font-size: 18px;
  }

  .shortlink-form button {
    font-size: 18px;
  }

  .modal-content p a {
    font-size: 24px;
  }

  .modal-content img {
    width: 250px;
    height: 250px;
  }
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.share-buttons button,
.share-buttons a {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #fff;
  color: #444;
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 10px 16px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-family: 'Poppins', sans-serif;
}

.share-buttons button:hover,
.share-buttons a:hover {
  background-color: #ffe4b5;
  border-color: #f3a400;
  color: #000;
}
