* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 20px 0;
    text-align: center;
}

main {
    padding: 20px;
    width: 80%;
    max-width: 600px;
}

section {
    background-color: white;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

h3 {
    width: 100%;
    color: rgb(244, 0, 0);
    padding: 0px 0;
    text-align: center;
}

h4 {
    width: 100%;
    color: rgb(0, 0, 0);
    padding: 0px 0;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0px;
}

h6 {
    width: 100%;
    color: rgb(244, 0, 0);
    padding: 0px 0;
    text-align: left;
    margin-bottom: 10px;
}

a {
    color: rgb(0, 0, 0); 
    text-decoration: none; 
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 8px;
}

input {
    padding: 10px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

#barcode-result {
    margin-top: 20px;
    text-align: center;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    header {
        padding: 15px 0;
    }

    main {
        width: 100%;
        padding: 10px;
    }

    section {
        padding: 15px;
    }

    input, button {
        width: 100%;
        margin-bottom: 10px;
    }

    button {
        font-size: 14px;
        padding: 8px;
    }
}

#barcode-result canvas,
#barcode-result img {
    max-width: 100%;
    height: auto;
}

.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.popup-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    text-align: center;
}

#popup-barcode-result {
    margin-bottom: 20px;
}

.close-btn,
.close-shareit-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus,
.close-shareit-btn:hover,
.close-shareit-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#barcode-result canvas,
#barcode-result img,
#popup-barcode-result canvas,
#popup-barcode-result img {
    max-width: 100%;
    height: auto;
}

@media (min-width: 600px) {
    #button-container {
        display: flex;
        gap: 10px; 
        justify-content: center;
        margin-top: 20px;
    }

    #button-container button {
        flex: 1;
    }
}

#barcode-result + #button-container {
    margin-top: 20px;
}

#barcode-result img,
#barcode-result canvas {
    margin-bottom: 20px;
}


section#converter h4 {
    margin-bottom: 10px;
}

.section-center {
    text-align: center;
}

.button-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #e9e6e6d8;
    color: rgb(0, 0, 0);
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
}

.button-link:hover {
    background-color: #c8c8c8;
}

.linkedin-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 10px;
}

#shareit-popup ul {
    list-style-type: none;
    padding: 0;
}

#shareit-popup ul li {
    margin-bottom: 10px;
}

#shareit-popup .popup-content button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#shareit-popup .popup-content button:hover {
    background-color: #45a049;
}

/* Menu Bar Estetik */
.menu-bar {
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin: 10px 0;
}

.menu-bar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.menu-bar li {
    display: inline;
    padding: 10px 20px;
}

.menu-bar a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.menu-bar a:hover {
    text-decoration: underline;
}


@media (max-width: 600px) {
    
    .menu-bar ul {
        flex-direction: column;
    }
}
