body,
h1,
h3 {
    padding: 0;
    margin: 0;
}

html {
    height: 100%;
}

body {
  margin: 0;
    color: #ddd;
    text-align: center;
  background: url('background.jpg') center center / cover no-repeat fixed;
  
}

/* 
    color: #ddd;
    text-align: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    background: url("background.jpg") center center / cover no-repeat fixed;
*/

.widget {
    background: transparent;
}

.widget #searchForm, #emailForm {
    padding: 0px;
}

#center-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

main {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 20px 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 850px;
    box-shadow: 0 0 10px #000;
}

a {
    text-decoration: none;
    position: relative;
    color: #aaa;
}

a::after {
    content: "";
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ddd;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

h1 {
    padding-top: 30px;
}

h3 {
    color: #757575;
}

#searchForm,
#emailForm {
    padding: 50px 0;
}

input,
textarea {
    height: 20px;
    margin: 10px 10px;
    padding-left: 10px;
    border: none;
    border-bottom: 1px solid #555;
    border-radius: 10px;
    background-color: transparent;
    color: #ddd;
    font-style: italic;
}

.dynamic-input {
    width: 100px; /* Initial width for 5 characters */
    min-width: 103px;
    max-width: 50%; /* Prevent it from growing indefinitely */
}

#phrase,
textarea {
    width: 400px;
}

button {
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid #555;
    background-color: transparent;
    color: #fff;
}

button:hover {
    background-color: #666;
}

span {
    padding-right: 10px;
}

textarea[name="new_content"] {
    width: 95%;
    height: 90vh;
}

#popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: black;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 20px;
    z-index: 1000;
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    input,
    textarea,
    button {
        font-size: 1em;
    }

    #phrase,
    textarea {
        width: 85%;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
    }

    #phrase,
    textarea {
        width: 85%;
    }

    input,
    textarea,
    button {
        font-size: 0.9em;
    }

    h1,
    h3 {
        font-size: 1.5em;
    }

    textarea[name="new_content"] {
        width: 90%;
        height: 80vh;
    }
}