body {
    height: 100vh;
}

.thanks {
    background: url(../images/gallery4.jpg) no-repeat center center;
    background-size: cover;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    width: 100%;
    height: 100%;
}

.thanks .message {
    font-family: "Open Sans", sans-serif;
    display: inline-block;
    max-width: 1200px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    padding: 80px 80px;
    background-color: rgba(0, 0, 0, 0.5);
}

.thanks .message h1 {
    font-size: 4rem;
    font-weight: 700;
    text-transform: capitalize;
    word-spacing: 0.05em;
    color: #ffffff;
}

.thanks .message p {
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.3;
    word-spacing: 0.05em;
    margin-bottom: 0;
    color: #bebebe;
    padding: 10px 0 5px;
}

.thanks .message p span {
    display: block;
}

.thanks .message .redirect {
    max-width: fit-content;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: auto;
    padding: 10px 20px;
    background-color: #0b1d66;
    border: 1px solid #0b1d66;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

.thanks .message .redirect i {
    color: #e7e7e7;
    padding-right: 8px;
    transition: 0.3s ease-in-out;
}

.thanks .message .redirect h5 {
    color: #e7e7e7;
    font-weight: 500;
    font-size: 1rem;
    word-spacing: 0.05em;
    margin-bottom: 0;
    transition: 0.3s ease-in-out;
}

.thanks .message .redirect:hover {
    background-color: transparent;
}


/* .thanks .message .redirect:hover i {
    color: #0b1d66;
}

.thanks .message .redirect:hover h5 {
    color: #0b1d66;
} */

@media (max-width: 768px) {
    .thanks .message h1 {
        font-size: 3rem;
    }
    .thanks .message p {
        font-size: 1rem;
    }
    .thanks .message .redirect i {
        font-size: 0.75rem;
    }
    .thanks .message .redirect h5 {
        font-size: 0.9375rem;
    }
}

@media (max-width: 576px) {
    .thanks .message {
        padding: 60px 30px;
        ;
    }
}

@media (max-width: 480px) {
    .thanks .message h1 {
        font-size: 2rem;
    }
    .thanks .message p {
        font-size: 0.9375rem;
    }
    .thanks .message .redirect h5 {
        font-size: 0.875rem;
    }
}