:root {
  --radius: 3px;
  --main-color: #5D3FD3;
}


html, body {
    margin: 0;
    padding: 0;
}

body {
    background-image: url('/xmas-bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;   
    background-color: blue;   
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
}

main {
    display: flex;
    box-shadow: 3px 3px 10px 1px #666;
    border-radius: var(--radius);
    position: relative;
}

section {
    width: 256px;
    height: 256px;
    text-align: center;
    background-color: white;
    padding: 1em;
}

.right-col {
    border-top-right-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Courgette';
}

.left-col {
    border-top-left-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
}

img {
    border-radius: var(--radius);
    width: 256px;
}

dialog {
    border: none;
    border-radius: var(--radius);
    box-shadow: 3px 3px 10px 1px #666;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2em;
    width: 300px;
}

.form-inner {
    display: flex;
}

label {
    font-family: 'Roboto'; 
    display: block;
    text-align: center;
    margin: 0 auto 1em auto;
    padding: 0 .2em;
    font-size: 140%;
}

textarea {
    resize: none;
    border-right: none;
    border: 1px solid #999;
    border-top-left-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
    height: 3em;
    padding: .3em;
    width: 100%;
    margin: 0 auto;
}

button {
    background-color: var(--main-color);
    border: none;
    color: white;
    border-top-right-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    padding: 0 .6em;
    cursor: pointer;
    font-size: 1.5em;
}

.btn-send {
    width: 25px;
    display: block;
}

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
    display: flex;
}
.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    margin: auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}