/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

html,
body {
    height: 100%;
    margin: 0;
    background: url(../img/bg.jpg) no-repeat center;
    background-size: cover;
}

.country {
    position: relative;
    color: #00b627;
    font-weight: 700;
    font-family: "Alexandria", sans-serif;
    font-size: 20px;
    line-height: 100%;
    margin-bottom: 20px;
    display: inline-block;
}

.country:before {
    content: "";
    position: absolute;
    left: -15px;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00b627;
    animation: pulse 1.5s infinite;
}

.two-blocks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.box {
    width: 200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgb(231, 231, 231);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.box img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.questions,
.quiz-content {
    background-color: #fff;
    width: 100%;
    min-height: calc(100vh - 80px);
    padding: 40px;
    box-sizing: border-box;
}

.box h3 {
    margin: 0;
    font-size: 1.2rem;
    font-size: 22px;
    font-weight: 700;
    font-family: "Alexandria", sans-serif;
    color: #333;
}

.box:hover {
    cursor: pointer;
    background: rgb(236, 248, 255);
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
}

.gender {
    font-size: 16px;
    font-family: "Alexandria", sans-serif;
    font-weight: 300;
    margin-top: 10px;
    margin-bottom: 30px;
}

.happy-text {
    font-size: 20px;
    font-family: "Alexandria", sans-serif;
    font-weight: 300;
    margin-top: 10px;
    margin-bottom: 30px;
}

.fun {
    font-weight: 700;
    font-family: "Alexandria", sans-serif;
    font-size: 32px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

header {
    flex: 1;
}

main,
.medium {
    background: #fff;
    margin-top: auto;
    padding: 80px 0;
    border-top-left-radius: 100% 420px;
    border-top-right-radius: 100% 420px;
}

footer {
    background: #d9dbe6;
    color: white;
    padding: 20px;
}

footer p {
    margin-bottom: 0px;
}

.logo img {
    max-height: 40px;
}

.copyright {
    font-family: "Alexandria", sans-serif;
    font-size: 16px;
    line-height: 100%;
    font-weight: 300;
    color: #000000;
}

.happy-face {
    margin-bottom: 30px;
}

.progress-container {
    width: 80%;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0 !important;
    border-radius: 4px;
    margin: 0 10px;
    position: relative;
}

.progress-bar-inner {
    height: 100%;
    width: 25%;
    background: #b66fff;
    border-radius: 4px;
    transition: width 0.3s;
}

.skip {
    color: #8926db;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    font-family: "Alexandria", sans-serif;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 150px);
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.image-grid img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    filter: blur(2px);
    border-radius: 8px;
    position: relative;
}

.image-grid .lock {
    position: absolute;
    width: 150px;
    height: 150px;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.middle-content h3 {
    font-size: 32px;
    font-weight: 700;
    font-family: "Alexandria", sans-serif;
    margin-top: 0px;
    padding-top: 0px;
    margin-bottom: 40px;
    padding-bottom: 0px;
}

b,
strong {
    font-weight: bold !important;
}

.tip {
    color: #c4c4c4;
    font-size: 20px;
    font-style: italic;
    font-family: "Alexandria", sans-serif;
    margin-top: 20px;
    display: inline-block;
    font-weight: 300;
}

.loading {
    position: fixed;
    z-index: 999;
    overflow: show;
    text-align: center;
    vertical-align: middle;
    display: flex;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    display: none;
    background: rgba(0, 0, 0, 0.5);
}

.middle-content-form p {
    font-size: 24px;
    font-weight: 300;
    font-family: "Alexandria", sans-serif;
    margin-bottom: 20px;
}

.padding-sides input {
    max-width: 400px;
    height: 55px;
    padding: 15px 20px;
    font-weight: 300;
    font-family: "Alexandria", sans-serif;
    font-size: 24px;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    margin: 0 auto;
}

.padding-sides select {
    height: 55px;
    padding: 5px 20px;
    font-weight: 300;
    font-family: "Alexandria", sans-serif;
    font-size: 24px;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    margin: 0 auto;
}

.middle-content p {
    font-style: italic;
    font-size: 20px;
    font-family: "Inter", sans-serif;
    font-weight: 300;
    line-height: 130%;
}

.question {
    font-size: 32px;
    font-weight: 600;
    font-family: "Alexandria", sans-serif;
    margin: 30px 0 30px;
    width: 60%;
    margin: 30px auto;
}

.middle-content img {
    margin-bottom: 40px;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 350px;
    max-width: 100%;
    margin: 0 auto 40px;
}

.top-page {
    font-size: 20px;
    font-weight: 300;
    font-family: "Alexandria", sans-serif;
}

.answers button {
    padding: 10px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: 1px solid #e2e2e2;
    background: white;
    cursor: pointer;
    font-size: 24px;
    font-weight: 300;
    width: 100%;
    font-family: "Alexandria", sans-serif;
    transition: all 0.2s;
}

.padding-sides {
    max-width: 400px;
    margin: 0 auto;
}

.container-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 630px;
    margin: auto 0px;
}

.answers.two-per-row {
    display: flex;
    flex-wrap: wrap; /* allow buttons to wrap */
    flex-direction: row; /* horizontal layout */
    justify-content: center;
    gap: 10px;
}

.answers.two-per-row button {
    flex: 1 1 45%; /* each button ~half the width */
    max-width: 200px; /* optional max width */
}

.answers button:hover {
    background: #f3e5ff;
    border: 1px solid #b66fff;
    color: #b66fff;
    font-weight: 500;
}

.answers button:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.styled-span {
    color: #8926db;
    background-color: rgba(254, 134, 195, 0.2);
    border-radius: 24px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
}

.styled-span img {
    max-width: 8px;
}

.instruction {
    font-family: "Alexandria", sans-serif;
    font-size: 20px;
    margin-top: 30px;
    font-weight: 300;
}

.button {
    margin-top: 0px;
    color: #fff;
    background-color: #00b627;
    border-color: #00b627;
    font-size: 22px;
    font-family: "Alexandria", sans-serif;
    padding: 15px 30px;
    text-decoration: none;
    width: 100%;
    cursor: pointer;
    box-shadow: 0px 0px 0px #fff;
    border: 0px solid silver;
    border-radius: 6px;
    display: inline-block;
}

.button:hover {
    background-color: #007219;
    border-color: #00b627;
    color: #fff;
}

.margin-top-70 {
    margin-top: 70px !important;
    max-width: 400px !important;
}

@media (max-width: 767px) {
    .copyright {
        font-family: "Alexandria", sans-serif;
        font-size: 13px;
        line-height: 130%;
        font-weight: 300;
        color: #000000;
    }
    main,
    .medium {
        background: #fff;
        margin-top: auto;
        padding: 40px 0px 40px 0px;
        border-top-left-radius: 130% 190px;
        border-top-right-radius: 130% 190px;
    }

    .answers button {
        padding: 10px 0;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        border: 1px solid #e2e2e2;
        background: white;
        cursor: pointer;
        font-size: 20px;
        font-weight: 300;
        width: 100%;
        font-family: "Alexandria", sans-serif;
        transition: all 0.2s;
    }

    .instruction {
        font-family: "Alexandria", sans-serif;
        font-size: 16px;
        margin-top: 30px;
        font-weight: 300;
    }

    .image-grid .lock {
        position: absolute;
        width: 90px;
        top: 0px;
        height: 90px;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 24px;
    }
    .happy-text {
        font-size: 18px;
        font-family: "Alexandria", sans-serif;
        font-weight: 300;
        margin-top: 10px;
        margin-bottom: 30px;
    }
    .progress-container {
        width: 100%;
        margin: 20px auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .question {
        font-size: 21px;
        font-weight: 600;
        font-family: "Alexandria", sans-serif;
        margin: 30px 0 30px;
        width: 80%;
        margin: 20px auto;
    }

    .image-grid {
        display: grid;
        grid-template-columns: repeat(3, 90px);
        gap: 10px;
        justify-content: center;
        margin: 20px 0;
    }

    .image-grid img {
        width: 90px;
        height: 90px;
        object-fit: cover;
        filter: blur(2px);
        border-radius: 8px;
        position: relative;
    }

    .questions,
    .quiz-content {
        background-color: #fff;
        width: 100%;
        min-height: calc(100vh - 80px);
        padding: 10px;
        box-sizing: border-box;
    }

    .box h3 {
        margin: 0;
        font-size: 1.2rem;
        font-size: 17px;
        font-weight: 700;
        font-family: "Alexandria", sans-serif;
        color: #333;
    }

    .fun {
        font-weight: 700;
        font-family: "Alexandria", sans-serif;
        font-size: 27px;
    }
}

@media (orientation: landscape) and (max-width: 767px) {
    .questions,
    .quiz-content {
        height: auto !important;
        min-height: auto !important;
    }
}
