*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}
    
body{
    font-family:"MOntderrst", sans-serif;
    text-align: center;
    
}

a{
    text-decoration: none;
    color: aliceblue;
}
li{
    text-decoration: none;
    list-style: none;
}
header{
    background: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    padding: 10px;
    border-radius: 15px;
}
 
header p{
    font-size: 16px;
}

.Survey{
    width: 400px;
    margin: 80px auto;
    background: royalblue;
    color: white;
    height: 280px;
    border-radius: 20px;
    box-shadow: 1px 1px 7px rgba(0,0,0,0.4);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.75s ease, opacity 0.75s ease;
    transform: translateX(0);
    opacity: 1;
}

.Survey.slide-out-right{
    transform: translateX(100%);
    opacity: 0;
}

.Survey.slide-in-left{
    transform: translateX(-100%);
    opacity: 0;
}
.Survey h1{
    font-size: 1.4em;
    margin-bottom: 20px;
    line-height: 1.4;
}
.Survey h3{
    margin: 8px;
    padding-top: 10px;
}
.back-btn{
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s ease;
}
.back-btn:hover{
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-3px);
}
.q1, .q2, .q3, .q4, .q5{
    position: relative;
}
.field {
    margin: 20px 0;
}

.control {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.radio {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.1em;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.radio:hover {
    background: rgba(255, 255, 255, 0.3);
}

.radio input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.end{
    background:  royalblue;
    color: white;
    width: 60%;
    max-width: 800px;
    margin: 5% auto;
    padding:  30px 20px;
    border-radius: 10px;
    box-shadow: 1px 1px 15px rgba(0,0, 0,0.4);
}

.end h1{
    margin-bottom: 15px;
}

.end p{
    padding: 10px;
    font-size: 18px;
}

.results-container{
    background: white;
    color: #333;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    max-height: 500px;
    overflow-y: auto;
    text-align: left;
}

.result-item{
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid royalblue;
}

.result-item:last-child{
    margin-bottom: 0;
}

.result-question{
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.result-answer{
    color: #555;
    font-size: 15px;
}

.result-answer strong{
    color: royalblue;
    font-size: 16px;
}
 
.app-promo{
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.app-promo p{
    margin-bottom: 15px;
    font-size: 16px;
}

.app-link{
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: white;
    color: royalblue;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.app-link:hover{
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.appstore-icon{
    height: 30px;
    width: auto;
}

.restart-link{
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    border-radius: 5px;
    background: rgb(61,61,61);
    outline: none;
    font-weight: bold;
    transition: 0.3s;
    color: white;
    text-decoration: none;
}

.restart-link:hover{
    box-shadow: 1px 1px 7px rgba(0,0,0,0.404);
    background: rgb(40,40,40);
    transform: scale(1.05);
}

.submit-survey-btn{
    display: none;
    margin: 30px auto 10px;
    padding: 12px 40px;
    background: white;
    color: royalblue;
    border: 2px solid white;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.submit-survey-btn:hover{
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.submit-survey-btn:disabled{
    opacity: 0.6;
    cursor: not-allowed;
}

.submission-message{
    display: none;
    margin: 15px auto;
    padding: 12px 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    max-width: 300px;
}

.q1{
    display: block;
}

.q2{
    display: none;
}

.q3{
    display: none;
}

.q4{
    display: none;
}

.q5{
    display: none;
}

.end{
    display: none;
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.end.show{
    opacity: 1;
    transform: translateX(0);
}