main {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--lighter-grey);
}

main h1 {
    color: var(--grey);
    margin: 40px 0;
    font-size: clamp(1.4rem, 2.5vw + 0.8rem, 2.5rem);
}

form h2 {
    font-size: clamp(1.3rem, 2vw + 0.5rem, 2rem);
    margin-bottom: 15px;
    text-align: center;
}

form h3, form input, form label, form p, form select, form textarea, form a {
    font-size: clamp(1rem, 1vw + 0.5rem, 1.2rem);
}

form h3 {
    margin-bottom: 10px;
}

form p {
    margin: 15px 0;
}

form {
    background-color: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: var(--grey);
    width: 100%;
    max-width: 750px;
    animation: fade-in 1s linear;
    margin-bottom: 35px;
}

hr {
    border: none;
    height: 2px;
    background-color: var(--red);
    margin: 25px 0;
    animation: line 4s ease;
    text-align: center;
}

input[type = "text"], input[type = "email"], form select, textarea {
    width: 100%;
    margin: 5px 0;
    border-radius: 5px;
    border: solid 1px var(--light-grey);
    padding: 10px;
}

.sizes {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    align-items: center;
}

.sizes input[type = "number"] {
    border-radius: 5px;
    border: solid 1px var(--light-grey);
    padding: 5px;
    flex: 1;
}

.sizes label {
    margin: 6px 0;
}

input[type = "text"]:focus, input[type = "email"]:focus, input[type = "number"]:focus, form select:focus, textarea:focus {
    border-color: var(--red);
    outline: none;
}

input[type = "submit"] {
    width: 100%;
    background-color: var(--red);
    cursor: pointer;
    border: none;
    color: white;
    border-radius: 10px;
    padding: 10px 0;
    transition: all 0.3s linear;
    margin-top: 15px;
}

input[type = "submit"]:hover {
    background-color: var(--light-grey);
    color: var(--red);
}

.note {
    color: #83918B;
    margin-bottom: 5px;
}

.img-radio {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.img-radio img {
    width: 100%;
    border-radius: 5px;
    border: solid 1px transparent;
    transition: all 0.1s linear;
}

.img-radio label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.img-radio input[type="radio"] {
    display: none;
}

.img-radio label input[type="radio"]:checked + img {
    border-color: var(--red);
}

.img-radio label:hover img {
    border-color: var(--red);
    transform: scale(1.01);
}

.img-radio label:hover {
    color: var(--red);
}

form select {
    width: 100%;
}

.color-chard {
    color: var(--red);
    text-decoration: none;
    display: block;
    text-align: center;
    margin: 15px 0;
}

.color-chard:hover {
    text-decoration: underline;
}

.palette {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 2vh 1vw;
    justify-content: center;
}

.color {
    width: 30px;
    height: 30px;
    border: 1px solid #333;
    cursor: pointer;
}

.selected {
    transform: scale(1.1);
    border: 3px solid var(--red);
}

svg {
    padding: 10%;
}


@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes line {
    0% {
        width: 10%;
        opacity: 0;
    }
    100% {
        width: 100%;
        opacity: 1;
    }
}