:root {
    --primary-accent-color: #34A9FF;
    --card-background: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --card-radius: 8px;
    --card-spacing: 1rem;
}

#tool {
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px; 
    padding: 20px;
    margin-top: 6rem;
    min-height: max-content;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 6rem;
    padding: 0 1rem;
}

h1 {
    color: var(--primary-accent-color);
    font-weight: 600;
}

h3{
    font-weight: bold;
}

#form-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-sizing: border-box;
    height: max-content;
    transition: all 0.15s ease-in-out;
    align-self: start;
}

@media (max-width: 768px) {
    #tool {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    
    #heroBtns {
        flex-wrap: wrap;
        column-gap: 1rem;
        row-gap: 1rem;
        justify-content: center;
    }
}


#hero-text{
    align-self: start;
    padding: 20px;
}

#form-container:hover {
    box-shadow: 0 0 2rem #34A9FF99;
    transform: scale(1.01);

}

#form-container .dropdown-container label {
    display: block;
    font-weight: bold;
}

.dropdown-container {
    display: flex;
    flex-direction: column;
    row-gap: 0.8rem;
    padding: 0 1rem;
    position: relative;
    background-color: transparent;
    min-width: 160px;
    z-index: 1;
    box-sizing: flex;
    transition: all 0.1s;
    overflow: hidden;
    opacity: 1;
    width: max-content;
    border: none; 
}

.dropdown-container select {
    padding: 0.8em 1.2em; 
    font-size: 1rem; 
    color: #333; 
    cursor: pointer; 
    transition: all 0.05s;
}

.dropdown-container select:hover,
.dropdown-container select:focus {
    box-shadow: 0 0 0.5rem #34A9FF; 
    border-color: #34A9FF; 
    transition: all 0.05s;
}


#button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

label {
    font-size: 16px;
    margin-bottom: 8px;
    display: block;
    color: #555;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

button {
    display: flex;
    flex-direction: row;
    column-gap: 1.5rem;
    text-decoration: none;
    padding: clamp(0.25rem, 1vw, 0.5rem) clamp(1rem, 4vw, 2rem);
    font-size: clamp(0.8rem, 3vw, 1rem);
    font-weight: 500;
    text-align: center;
    border-radius: 0.5rem;
    background-color: black;
    color: white;
    transition: all 0.1s ease-in-out;
    border: 2px solid black;
}

button:hover {
    transform: translateY(-0.2rem) scale(1.05);
    box-shadow: 0 0.25rem 0.5rem var(--primary-accent-color);
}

@media screen and (max-width: 640px){
    #tool {
        padding: 2rem;
    }

    #heroBtns {
        flex-wrap: wrap;
        column-gap: 1rem;
        row-gap: 1rem;
        justify-content: center;
    }
    
}

#result {
    font-size: 16px;
    color: var(--primary-accent-color);
    text-align: center;
    margin-top: 15px;

    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    word-break: break-all;
}

.error {
    color: red;
}

#result-container {
    align-items: center;
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
    padding: 0 15px;
    box-sizing: border-box;
}

#copy-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0;
}

#copyBtn {
    width: 180px;
    height: 30px;
    border-radius: 2px;
    border: 1px solid #007bff;
    color: #007bff;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    vertical-align: middle;
    font-weight: 400;
    padding: 5px 5px;
}

#copyBtn:hover {
    color: white;
    background-color: #007bff;
}


#copyMsg {
    display: none;
    font-size: 14px;
    color: green;
    margin-top: 10px;
}

#qrcode-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0;
}

#qrcode {
    margin-bottom: 10px;
}

#downloadBtn {
    width: 180px;
    height: 30px;
    border-radius: 2px;
    border: 1px solid #007bff;
    color: #007bff;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    vertical-align: middle;
    font-weight: 400;
    padding: 5px 5px;
}

#downloadBtn:hover {
    color: white;
    background-color: #007bff;
}

#dlMsg {
    display: none;
    font-size: 14px;
    color: green;
    margin-top: 10px;
}

#hero-text h3 {
    font-size: 2.5rem;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    margin: 0;
    line-height: 3rem;
}

#hero-text h3 b {
    color: var(--primary-accent-color);
    font-weight: 600;
    font-size: 3rem;
    line-height: 3.5rem;
}

#hero-btns {
   display: flex;
    flex-direction: row;
    column-gap: 1rem;
}


#hero-btns input[type=button] {
    padding: 1rem 0;
    width: 13rem;
    border-radius: 5rem;
    border: solid black 0.1rem;
    background: black;
    font-family: "Poppins", sans-serif;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.1s ease-in-out;
}

#hero-btns input[type=button]:hover {
    color: black;
    background: white;
    color: white;
    background: var(--primary-accent-color);
    border-color: var(--primary-accent-color);
}

#hero-btns input[type=button]:nth-child(2) {
    color: black;
    background: white;
}

#hero-btns input[type=button]:nth-child(2):hover {
    color: white;
    background: var(--primary-accent-color);
    border-color: var(--primary-accent-color);

}

@media only screen and (max-width: 960px) {
    #hero-btns input[type=button] {
        padding: 0.5rem;
        width: 11rem;
        border-radius: 5rem;
    }
}

@media only screen and (max-width: 420px) {
    #hero-btns {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.5rem;
        width: 100%;
    }
    #hero-btns input[type=button] {
        font-size: 0.8rem;
        padding: 0.5rem;
        width: 9rem;
        border-radius: 5rem;
    }
}

.slider-container {
    margin-bottom: 40px;
    position: relative;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.slider {
    width: 100%;
}

.slider-tooltip {
    position: absolute;
    top: 50px;
    left: 0;
    transform: translateX(-50%);
    background: var(--primary-accent-color);
    color: #fff;
    padding: 5px;
    border-radius: 3px;
    font-size: 0.9em;
    white-space: nowrap;
    display: none;
}

.slider-tooltip.visible {
    display: block;
}

.results {
    margin-top: 20px;
    font-weight: bold;
}

.code-container {
    margin-top: 20px;
}
.code-output {
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 5px;
    font-family: monospace;
}
.generated-code {
    
    margin-top: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    word-break: break-all;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    #hero-text {
        background: var(--card-background);
        border-radius: var(--card-radius);
        box-shadow: 0 0 1rem var(--card-shadow);
        padding: 20px;
        box-sizing: border-box;
        margin-bottom: var(--card-spacing);
    }

    #hero-text h3 {
        font-size: 2rem;
    }

    #hero-text h3 b {
        font-size: 2.5rem;
    }

    #hero-text span {
        font-size: 0.875rem;
    }

    #hero-btns {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        align-items: center;
        gap: 0.5rem;
    }

    #hero-btns input[type=button] {
        width: 100%;
        align-items: center;
    }
}


@media (max-width: 576px) {
    #hero-text h3 {
        font-size: 1.75rem;
    }

    #hero-text h3 b {
        font-size: 2rem;
    }

    #hero-text span {
        font-size: 0.75rem;
    }
}

