@font-face {
    font-family: 'Manrope';
    src: url('./fonts/Manrope-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #960018;       /* Deep Maroon – BUTTONS */
    --primary-hover: #B02025; /* Brighter Maroon - OnHover */
    --background: #121C2B;    /* Deep Charcoal Navy – BG */
    --card-bg: #243545;       /* Slight lift for cards */
    --border: #3B4D5D;        /* Softer edge, midtone */
    --text-primary: #F0F2F5;  /* Light gray-white */
    --text-secondary: #AEB6C1;/* Soft support text */
    --accent-blue: #4E81AC;   /* Links, inputs, headers */
    --accent-teal: #3AB0A2;   /* Hover effects or validation success */
    --highlight: #e67c3a;     /* Optional flair: highlights, loaders */
    --error: #B63232;         /* Cleaned error red */
}
html, body {
  margin: 0.5rem 0 0 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

body { background-color: var(--background); }

#wrapper {
    font-family: 'Manrope', 'Inter', 'Open Sans', 'Roboto', sans-serif;
    width: 90%;
    max-width: 440px;
    height: auto;
    min-height: 520px;
    padding: 1rem 1rem 2.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border: solid 5px var(--border);
    border-radius: 0.8rem;
    margin: 0 auto;
    background-color: var(--card-bg);
    box-shadow: 10px 12px 10px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

#func_wrapper { /* label, input */
    border: solid 3px var(--border);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    border-radius: 0.6rem;
    display: flex;
    flex-direction: column;
    width: 75%;
    padding-bottom: 6%;
}

#func_wrapper label {
    padding-bottom: 2.5%;
    margin-top: 2.5%;
    width: 85%;
    margin-left: 5%;
}

#button_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 5%;
}

button {
    width: 60%;
    position: relative;
    background-color: var(--primary);
    border: none;
    border-radius: 1rem;
    padding: 0.75rem;
    color: var(--text-primary);
    transition: all 0.2s ease-in-out;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    font-family: 'Inter', 'Open Sans', 'Roboto', sans-serif;
    font-weight: 600;
}

#given_url {
    border: solid 3px var(--border);
    border-radius: 0.5rem;
    width: 85%;
    margin-left: 5%;
    height: 2rem;
}

#btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 16px rgba(200, 70, 58, 0.3);
}

#pin_wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    gap: 0.5rem;
    width: 100%;
}

#pin_input {
    width: 4rem;
    padding: 0.3rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    text-align: center;
    background-color: var(--background);
    color: var(--text-primary);
    font-weight: bold;
    font-size: 1rem;
}


#logo_title_wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 1.66rem;
    margin-left: 10%;
    gap: 1rem;
}

#title {
    font-size: 3.6rem;
    font-family: 'Manrope', sans-serif;
    color: var(--text-primary);
    margin-top: 0;
}

#logo {
    height: 5.6rem;
    width: auto;
    transform: translateY(-10px);
}

#subtitle {
    color: var(--text-primary);
    font-size: 1.33rem;
    margin-top: -2%;
}

#title, #subtitle, #enterurl, #text, #copy_shortcode, #btn{
    color: var(--text-primary);
}

#result_wrapper {
    display: none;
    border: solid 3px var(--border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    border-radius: 0.5rem;
    flex-direction: column;
    margin-top: 5%;
    width: 75%;
}

.error_p, .copy_shortcode, .shortened_paragraph {
    white-space: pre-line;
    display: none;
    font-size: 1.15rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.copy-btn {
  background-color: transparent;
  border: 1px solid var(--accent-teal);
  color: var(--accent-teal);
  border-radius: 0.5rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  margin-top: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background-color: var(--accent-teal);
  color: var(--card-bg);
}

#details-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 440px;
    margin: 1.5rem auto 0 auto;
}

summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0 0.5rem 0;
    border: solid 3px var(--border);
    border-radius: 0.9rem;
    color: var(--text-primary);
    background-color: var(--card-bg);
    box-shadow: 10px 12px 10px rgba(0, 0, 0, 0.4);
    width: 100%;
    height: auto;
    font-size: 1rem;
}

summary span {
    display: flex;
    align-items: center;
}

summary img {
    margin-left: 0.66rem;
    padding: 0;
    width: 24px;
    height: 24px;
}

summary:hover {
    cursor: pointer;
    color: var(--highlight);
}

a {
    color: var(--accent-teal);
}

details {
    background-color: var(--background);
    border-radius: 0.9rem;
    width: 100%;
    /*max-width: 440px;*/
}

details > p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 0.5rem;
    margin-left: 0.8rem;
}

/*
 * Icons above the button
 */

#icons p {
    color: var(--text-secondary);
    font: 0.75rem 'Manrope', "Open Sans", sans-serif;
}

#icons span img {
    transform: translateY(0.3rem);
}


@media (max-width: 489px) {
    /* change the icon size */
}

@media (max-width: 460px) {
    #title {
        font-size: 3.2rem;
    }
    
    #icons, #icons > p {
        font-size: 0.66rem;
    }
    #wrapper {
        width: 90%;
        max-width: 90%;
        margin: 0 auto;
    }
    #details-wrapper {
        margin-top: 0.3rem;
    }
    #details-wrapper {
        width: 90%;
        max-width: 90%;
    }
    #logo {
        height: 5rem;
        width: auto;
    }
}

/* 
 * Footer styles
 */
#footer {
  min-width: 100%;
  width: 100%;
  background-color: #1a1d2e;
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-align: center;
  padding: 0.66rem 0.5rem;
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.3);
  z-index: 999;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  box-sizing: border-box;
  /*position: relative;*/
  position: fixed;
  bottom: 0;
}

#footer p {
  margin: 0;
  width: 100%;
  min-width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  line-height: 1.5;
  word-break: break-word;
}


#footer a {
  color: var(--accent-teal);
  text-decoration: underline;
}

#footer a:hover {
  color: var(--highlight);
}


@media (max-width: 419px) {
    #logo_title_wrapper {
        margin-left: 25%;
    }
    #title {
        font-size: 2.6rem;
    }
    
    #icons, #icons > p {
        font-size: 0.5rem;
    }
    #details-wrapper {
        margin-top: 0.4rem;
        width: 90%;
        max-width: 90%;
    }
    #logo {
        height: 3.5rem;
        width: auto;
    }
}