* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body {
    background: #1d2731;
    color: #ffffff;
}

.container {
    margin: 12%;
    width: 90%;
    max-width: 600px;
}

.display {
    width: 100%;
    margin-top: 50px;
    margin-bottom: 30px;
    background: #fff;
    color: yellow;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: 5px;
    border: 2.8px solid black;
    box-shadow: 2px 2px 10px black;
    position: relative;
}

#copiedText {
    display: none;
    position: absolute;
    right: 50px;
    color: green;
    font-size: 18px;
    font-weight: bold;
    transition: 0.9s;
}

.container h1 {
    font-weight: 500;
    font-size: 45px;
}

.container h1 span {
    position: relative;
    color: #f39c12;
}

.container h1 span::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f39c12;
    animation: moveBorder 2.5s linear infinite;
    border-bottom: 4px solid #f39c12;
    display: block;
}

@keyframes moveBorder {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
        left: 0;
    }
}

.display img {
    width: 30px;
    cursor: pointer;
}

.display input {
    border: 0;
    outline: 0;
    font-size: 24px;
    width: 70%; /* Adjusted width for better fit */
}

.container button img {
    width: 40px;
    height: 60px;
    margin-right: 10px;
}

.container button {
    width: 50%;
    border: 0;
    outline: 0;
    background: #1d2731;
    border: 3.5px solid white;
    color: #fff;
    font-size: 22px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 26px;
    border-radius: 5px;
    cursor: pointer;
}

.container button:hover {
    color: white;
    font-weight: 400;
    font-size: 22px;
    box-shadow: 2px 2px 20px #f39c12;
    border: 3.9px solid #f39c12;
    transition: 0.28s;
}

.container button:active {
    color: #f39c12;
    transition: 0.09s;
}

@media (max-width: 768px) {
    .container {
        margin: 5%; /* Reduce margin for smaller screens */
    }

    .container h1 {
        font-size: 36px; /* Smaller heading size */
    }

    .display input {
        font-size: 20px; /* Smaller font size for input */
    }

    .display img {
        width: 25px; /* Smaller copy icon */
    }

    .container button {
        width: 80%; /* Wider button on smaller screens */
        font-size: 18px; /* Smaller button text */
        padding: 12px; /* Adjust padding */
    }
}

@media (max-width: 480px) {
    .container h1 {
        font-size: 28px; /* Further reduce heading size */
    }

    .display input {
        font-size: 18px; /* Even smaller font size for input */
    }

    .display img {
        width: 20px; /* Even smaller copy icon */
    }

    .container button {
        width: 90%; /* Full width button on very small screens */
        font-size: 16px; /* Smaller button text */
        padding: 10px; /* Adjust padding */
    }

}
