@font-face { font-family: Comfortaa-Bold; src: url('../fonts/Comfortaa-Bold.ttf'); }
@font-face { font-family: Comfortaa-SemiBold; src: url('../fonts/Comfortaa-SemiBold.ttf'); }
@font-face { font-family: Comfortaa-Medium; src: url('../fonts/Comfortaa-Medium.ttf'); }
@font-face { font-family: Comfortaa-Regular; src: url('../fonts/Comfortaa-Regular.ttf'); }
@font-face { font-family: Comfortaa-Light; src: url('../fonts/Comfortaa-Light.ttf'); }

div{
    display: flex;
    justify-content: space-between;
}

main article h2{
    font-family: Comfortaa-Medium;
}

main article{
    width: 85%;
    text-align: center;
}

main article p{
    font-family: Comfortaa-Regular;
    font-size: large;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

form{
    margin-left: auto;
    margin-right: auto;
    margin-top: 5%;
    margin-bottom: 5%;
    width: 50%;
    font-family: Comfortaa-SemiBold;
    -webkit-box-shadow: -20px 25px 25px 0px rgba(251,87,142,1);
    transition: 500ms;
    border-radius: 2.55%;
}

form:hover{
    -webkit-box-shadow: 25px -25px 25px 0px rgba(1,255,242,1);
    transition: 500ms;
}

fieldset{
    background-color: black;
    border-radius: 2.55%;
    border: solid black;
}

form > fieldset > div{
    display: flex;
    flex-direction: column;
    margin-bottom: 5%;
    text-align: center;
}

textarea{
    resize: none;
    width: 50%;
    padding: 1%;
    padding-bottom: 25%;
    margin-left: auto;
    margin-right: auto;
    font-family: Comfortaa-Light;
    background-color: white;
    border: none;
    border-radius: 10px;
    outline: none;
    color: black;
    transition: 500ms;
    margin-left: auto;
    margin-right: auto;
}

label{
    margin-bottom: 5%;
    font-size: x-large;
}

button {
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    background-image: linear-gradient(144deg, #01fff2, #2314eb);
    border: 0;
    border-radius: 8px;
    box-shadow: rgba(151, 65, 252, 0.2) 0 15px 30px -5px;
    box-sizing: border-box;
    color: #FFFFFF;
    display: flex;
    font-family: Comfortaa-Medium;
    font-size: 18px;
    justify-content: center;
    line-height: 1em;
    max-width: 100%;
    min-width: 140px;
    padding: 3px;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    white-space: nowrap;
    cursor: pointer;
    transition: all .3s;
    margin-bottom: 5%;
}
   
button:active, button:hover {
    outline: 0;
}
   
button span {
    background-color: rgb(5, 6, 45);
    padding: 16px 24px;
    border-radius: 6px;
    width: 100%;
    height: 100%;
    transition: 300ms;
}
   
button:hover span {
    background: none;
}
   
button:active {
    transform: scale(0.9);
}

.radio-button-container {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
    margin-right: auto;
}
  
.radio-button {
    display: inline-block;
    position: relative;
    cursor: pointer;
}
  
.radio-button__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
  
.radio-button__label {
    padding-left: 30px;
    margin-bottom: 5%;
    font-size: large;
    line-height: 25px;
    color: #f2f2f2;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-button__custom {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    transition: all 0.3s ease;
}
  
.radio-button__input:checked + .radio-button__label .radio-button__custom {
    background-color: #01fff2;
    border-color: transparent;
    transform: scale(0.8);
    box-shadow: 0 0 20px #01fff2;
}
  
.radio-button__input:checked + .radio-button__label {
    color: #01fff2;
}
  
.radio-button__label:hover .radio-button__custom {
    transform: scale(1.2);
    border-color: #01fff2;
    box-shadow: 0 0 20px #01fff2;
}

.input {
    font-family: Comfortaa-Light;
    width: 35%;
    height: 10%;
    background-color: white;
    border: none;
    padding: 1%;
    border-radius: 10px;
    outline: none;
    color: black;
    transition: 500ms;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

#chooseProject{
    font-family: Comfortaa-Light;
    width: 37%;
    height: 10%;
    background-color: white;
    border: none;
    padding: 1%;
    border-radius: 10px;
    outline: none;
    color: black;
    transition: 500ms;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
  
.input:focus, #Message:focus, #chooseProject:focus {
    animation: rotateShadow 2s infinite linear;
    transition: 500ms;
}

.input:hover, #Message:hover, #chooseProject:hover {
    animation: rotateShadow 2s infinite linear;
    transition: 500ms;
}

.userReason{
    margin-top: 5%;
}

.success, .fail{
    text-align: center;
    font-family: Comfortaa-Bold;
}

.success{
    background: linear-gradient(to right, #8ee009, #19fd8b);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

.fail{
    background: linear-gradient(to right, #ee9105, #ee0d0d);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}
  
@keyframes rotateShadow {
    0% {
        box-shadow: -2px -2px 8px 1px #01fff2, 2px 2px 8px 1px #2314eb;
    }
    25% {
        box-shadow: -2px 2px 8px 1px #01fff2, 2px -2px 8px 1px #2314eb;
    }
    50% {
        box-shadow: 2px 2px 8px 1px #01fff2, -2px -2px 8px 1px #2314eb;
    }
    75% {
        box-shadow: 2px -2px 8px 1px #01fff2, -2px 2px 8px 1px #2314eb;
    }
    100% {
        box-shadow: -2px -2px 8px 1px #01fff2, 2px 2px 8px 1px #2314eb;
    }
}

@media (min-width: 768px) AND (max-width: 920px){
    main article h2{
        font-size: medium;
    }
    
    main article p{
        font-size: small;
    }

    form{
        width: 60%;
        -webkit-box-shadow: -15px 20px 25px 0px rgba(251,87,142,1);
    }

    form:hover{
        -webkit-box-shadow: 20px -20px 25px 0px rgba(1,255,242,1);
    }

    label{
        font-size: large;
    }

    .radio-button__label{
        font-size: medium;
    }

    textarea, .input, #chooseProject{
        width: 70%;
    }

    button{
        height: 60px;
        width: 160px;
    }

    button span {
        display: block !important;
        height: 10% !important;
        padding-bottom: 20% !important;
    }

    .success, .fail{
        font-size: large;
    }
}

@media (max-width: 768px){
    main article h2{
        font-size: small;
    }
    
    main article p{
        font-size: smaller;
    }

    form{
        width: 60%;
        -webkit-box-shadow: -10px 15px 25px 0px rgba(251,87,142,1);
        margin-bottom: 19%;
    }

    form:hover{
        -webkit-box-shadow: 15px -15px 25px 0px rgba(1,255,242,1);
    }

    label{
        font-size: medium;
    }

    .radio-button__label{
        font-size: small;
    }

    textarea, .input, #chooseProject{
        width: 70%;
        font-size: xx-small;
    }

    button{
        height: 50px;
        width: 80px;
    }

    button span {
        display: block !important;
        height: 1% !important;
        padding-bottom: 20% !important;
        font-size: medium;
    }

    .success, .fail{
        font-size: medium;
    }
}