* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
div[style*="width: 100%; height: auto;"] {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 0; /* Hapus whitespace */
    line-height: 0; /* Hapus whitespace */
}

body {
    background-color: #1f1f1f;
    color: #202124;
    height: 100vh;
    margin: 0;
    padding: 0;
}

        /* Google search bar */
        .search-container {
            padding: 12px 16px 8px;
        }

        .logo {
            display: flex;
    justify-content: space-between;
    padding: 15px;
    align-items: center;
        }

        .logo img {
            width: 24px;
            height: 24px;
        }

        .search-box {
            display: flex;
            align-items: center;
            background-color: #333438;
            border: 1px solid #333438;
            border-radius: 24px;
            padding: 8px 12px;
            margin: 0 auto;
            max-width: 600px;
            box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
        }

        .search-icon {
            margin-right: 10px;
            display: flex;
            align-items: center;
        }

        .search-input {
            flex: 1;
            border: none;
            outline: none;
            font-size: 16px;
            color: #202124;
            padding: 0;
        }

        .voice-icon, .lens-icon {
            margin-left: 10px;
            display: flex;
            align-items: center;
        }
        
        .icon-placeholder {
            display: block;
        }

        /* Navigation tabs */
        .nav-tabs {
            display: flex;
            overflow-x: auto;
            padding: 0 12px;
            margin-bottom: 12px;
            gap: 24px;
            border-bottom: 1px solid #333438;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* IE and Edge */
        }
        
        .nav-tabs::-webkit-scrollbar {
            display: none; /* Chrome, Safari, Opera */
        }

        .nav-tab {
            padding: 12px 0;
            font-size: 14px;
            color: #ababab;
            text-decoration: none;
            white-space: nowrap;
        }

        .nav-tab.active {
            color: white;
            border-bottom: 3px solid white;
            font-weight: 500;
        }

        /* Roll dice title section */
        .roll-dice-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px;
            margin-bottom: 12px;
        }

        .roll-dice-title h1 {
            font-size: 22px;
            margin: 0;
            color: #202124;
            font-weight: normal;
        }

        .share-icon {
            display: flex;
            align-items: center;
        }

        /* Dice area */
        .dice-area {
            background-color: #333438;
            height: 251px;
            width: 100%; /* Full width of the screen */
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        #canvas {
            width: 100%;
            height: 100%;
        }

        .dice-total {
  position: absolute;
  bottom: 9px;
  right: 9px;
  font-size: 18px;
  font-weight: bold;
  color: #202124;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  color: white;
}

.dice-total-label {
  margin-right: 4px;
  color: white;
}

.dice-total-value {
  font-size: 34px;
  min-width: 40px; /* Add a fixed minimum width */
  text-align: center; /* Center the text within the fixed width */
  color: white;
}

        /* Dice types styling to match Google's dice selector */
        .dice-types {
            display: flex;
            justify-content: center;
            padding: 12px 0;
            gap: 8px;
            flex-wrap: wrap;
        }

        .dice-type {
            width: 36px;
            height: 36px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: bold;
            color: white;
            text-align: center;
            cursor: pointer;
            border-radius: 4px;
        }

        .dice-d4 {
    background-color: #5bba47;
    width: 32px; /* Lebar segitiga */
    height: 30.74px; /* Tinggi segitiga = width * (√3 / 2) */
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    display: flex;
    align-items: center;
    font-size: 17px;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-align: center;
}


.dice-d6 {
    background-color: #1fc0d3;
    border-radius: 4px;
    width: 30px;  /* Lebar lebih kecil */
    height: 30px; /* Tinggi lebih kecil */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px; /* Ukuran teks menyesuaikan */
}


.dice-d8 {
    background-color: #8256e7;
    width: 38px; /* Sesuaikan ukuran */
    height: 37px; 
    clip-path: polygon(50% 0%, 90% 35%, 90% 65%, 50% 100%, 10% 65%, 10% 35%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px; /* Sesuaikan ukuran teks */
    color: white;
    font-weight: bold;
    text-align: center;
}

.dice-d10 {
    background-color: #e85d95;
    width: 43px; /* Sesuaikan ukuran */
    height: 35px; 
    clip-path: polygon(50% 0%, 90% 35%, 90% 65%, 50% 100%, 10% 65%, 10% 35%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px; /* Sesuaikan ukuran teks */
    color: white;
    font-weight: bold;
    text-align: center;
}



.dice-d12 {
    background-color: #c8483a;
    width: 35px; /* Ukuran dadu */
    height: 35px;
    clip-path: polygon(
        50% 0%, 75% 5%, 95% 20%, 100% 40%,
        100% 60%, 95% 80%, 75% 95%, 50% 100%,
        25% 95%, 5% 80%, 0% 60%, 0% 40%, 5% 20%, 25% 5%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    font-weight: bold;
    text-align: center;
}


        .dice-d20 {
            width: 32px;
            height: 35px;
            background-color: #f5a623;
            clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
        }

        .dice-custom {
            background-color: #5f6368;
            border-radius: 50%;
            font-size: 30px;
        }

        /* Roll button styling */
        .roll-button-container {
            display: flex;
            justify-content: center;
            margin: 16px 0;
        }

        .roll-button {
            background-color: #0f55cc;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 10px 25px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
        }
        
        .buttons-row {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin: 8px 0 16px;
        }
        
        .add-button {
            background-color: #34a853;
            color: white;
            border: none;
            border-radius: 4px;
            padding: 8px 16px;
            font-size: 14px;
            cursor: pointer;
            box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
        }
        
        .reset-button {
            background-color: #ea4335;
            color: white;
            border: none;
            border-radius: 4px;
            padding: 8px 16px;
            font-size: 14px;
            cursor: pointer;
            box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
        }

        /* Show more button */
        .show-more {
    background-color: #292929;
    color: #bebec0;
    text-align: center;
    padding: 12px;
    margin: 10px 16px;
    border-radius: 24px;
    cursor: pointer;
    font-size: 14px;
    display: block; /* Tetap mempertahankan bentuk button */
}

.show-more img {
    width: 14px; /* Sesuaikan ukuran ikon */
    height: 14px;
    vertical-align: middle; /* Supaya sejajar dengan teks */
    display: inline-block; /* Agar gambar tetap dalam baris teks */
    margin-left: 5px; /* Memberi jarak antara teks dan ikon */
    ;
}


        

        /* Feedback section */
        .feedback {
            text-align: right;
            padding: 8px 16px;
            color: #70757a;
            font-size: 12px;
        }

        /* Website result section */
        .website-result {
            margin: 16px;
            padding: 12px 0;
            border-top: 1px solid #161616;
            border-bottom: 1px solid #161616;
        }

        .website-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 4px;
        }

        .website-icon img {
            width: 20px;
            height: 20px;
            margin-right: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: 5px;
        }

        .website-info {
            display: flex;
            flex: 1;
        }

        .website-domain {
            color: white;
            font-size: 14px;
        }

        .website-url {
            color: #ababab;
            font-size: 12px;
        }

        .more-icon {
            color: #ababab;
        }

        .website-title {
            font-size: 16px;
            color: #a2bdef;
            margin: 4px 0;
        }

        .website-description {
            font-size: 14px;
            color: #ababab;
            line-height: 1.4;
        }

        /* Bottom navigation */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: #28292b;
            display: flex;
            justify-content: space-around;
            padding: 12px 0;
            box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #5f6368;
            text-decoration: none;
            font-size: 12px;
        }

        .nav-item.active {
            color: #1a73e8;
        }

        .nav-icon {
            font-size: 20px;
            margin-bottom: 4px;
        }

        .bottom-nav-indicator {
            position: absolute;
            bottom: 0;
            left: 23%;
            width: 12%;
            height: 3px;
            background-color: #1a73e8;
        }
        .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1f1f1f;
    margin-top: -5px; /* Nilai negatif untuk menggeser ke atas */
    padding: 1px 15px; /* Kurangi padding atas-bawah */
    border: none;
    box-shadow: none;
}

/* Kompres tinggi header dengan mengurangi padding */
.header-left img, .header-right div {
    margin: 0;
    padding: 0;
}
.header-left img{
    width: 20px;
    height: 20px;
}

/* Kurangi ukuran logo Google jika perlu */
.google-logo svg {
    height: auto;
    width: 110px; /* Sesuaikan sesuai kebutuhan */
}
.search-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-bar {
    display: flex;
    align-items: center;
    width: 90%;
    max-width: 550px;
    background-color: #333438;
    border-radius: 24px;
    padding: 6px 15px;
    margin-top: -30px;
}


.search-icon {
    color: #9aa0a6;
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    outline: none;
}

.voice-icon {
    margin-left: 10px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lens-icon {
    margin-left: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin: 15px;
}

.game-title {
    font-size: 22px;
    font-weight: normal;
    color: white;
}

.share-button {
    color: #5f6368;
    cursor: pointer;
    width: 24px;
    height: 24px;
}
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background-color: #28292b;
    padding: 8px 0;
    border-top: 1px solid #28292b;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #5f6368;
    font-size: 12px;
}

.nav-item.active {
    color: #1a73e8;
}

.nav-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.nav-item.active {
    color: #1a73e8; /* Warna teks biru */
    position: relative;
}

.nav-item.active .nav-icon img {
    background-color: rgba(26, 115, 232, 0.1); /* Warna biru transparan */
    border-radius: 12px; /* Sudut melengkung */
    padding: 6px 17px; /* Padding untuk efek */
    display: block;
    width: 20px; /* Sesuaikan ukuran */
    height: 20px;
    box-sizing: content-box; /* Mencegah padding mempengaruhi ukuran */
}