/* style.css */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f2f5;
    color: #333;
}

code {
  color: #d63384; 
  background-color: #f1f1f1; 
  padding: 2px 4px; 
  border-radius: 4px;
  font-family: "Courier New", Courier, monospace; 
}

ol li,
ul li {
  margin-bottom: 0.75rem; 
  line-height: 1.6;
}

main {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

/* image */ 
.header-icon {
    width: 500px;
    max-width: 500px;
    height: auto;
    margin-bottom: 1rem;
    pointer-events: none; /* makes the image unclickable */
    user-select: none;    /* prevents selecting the image */
}

h1 {
    font-size: 1.75rem;
    color: #1c1e21;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

p {
    color: #606770;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

input[type="url"],
input[type="text"] {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    box-sizing: border-box;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

input[type="url"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #1877f2;
    box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.2);
}

button {
    width: auto;
    padding-left: 20px;
    padding-right: 20px;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    background-color: #1877f2;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #166fe5;
}

button:disabled {
    background-color: #9cbce7;
    cursor: not-allowed;
}

#result {
    margin-top: 1.5rem;
    /* border-top: 1px solid #e0e0e0; */
    padding-top: 1.5rem;
    margin-bottom: 1rem;
}

#result.hidden {
    display: none;
}

#result p {
    margin-bottom: 0.75rem;
    font-weight: 500;
}

#result div {
    display: flex;
    gap: 8px;
}

#new-link {
    flex-grow: 1; 
    margin-bottom: 0; 
}

#copy-btn {
    margin-top: 1rem;
    width: auto;
    padding-left: 20px;
    padding-right: 20px;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    background-color: #1877f2;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}


.privacy-badge {
    margin-top: 5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.privacy-badge span {
    margin-right: 0.5rem;
}






/* for mobile: */ 

@media (max-width: 600px) {
  .header-icon {
    max-width: 360px;
  }

  main {
    wdith: 92%;
    padding: 1.5rem;
  }
}


/* footer */
.main-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.main-footer a {
    color: #495057;
    font-size: 0.75rem;
    text-decoration: none;
}

.main-footer a:hover {
    text-decoration: underline;
}

/*  info pages */
.info-page {
    text-align: left;
}

.info-page h1 {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.info-page p {
    margin-bottom: 1rem;
}

/* "Back to Home" link */
.back-link {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}
