body {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh; 
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: rgb(223, 223, 223); 
    text-align: center;
    padding: 0;
}

.main-container {
    background-color: #949494;
    width: 100%;
    max-width: 1700px;
    min-height: 100vh;
    padding-top: 60px;
    padding-bottom: 60px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 50px;
}

#buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    min-height: 400px; 
    height: auto;
    margin-top: 20px;
}

#buttons.multi-column {
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    max-width: 900px;
    justify-items: center;
    margin: 0 auto;
}

button {
    width: 100%;
    max-width: 400px;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;      
    background-color: #333;  
    color: white;            
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

button:hover {
    transform: scale(1.05);  
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.question-container {
    height: 180px; 
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

#question {
    background-color: #555555; 
    color: white;
    padding: 25px 40px;        
    border-radius: 50px;       
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    max-width: 80%;            
    line-height: 1.4;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

    min-height: 60px; 
}

#results-container {
    display: flex;             
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    margin-top: 30px;
    width: 100%;
}

.result-item {
    display: flex;
    flex-direction: column;    
    align-items: center;       
    width: 200px;
    text-align: center;
}

.result-icon {
    width: 130px;
    height: 130px;
    margin-bottom: 20px;
    transition: transform 0.2s;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3));
}

.result-icon:hover {
    transform: scale(1.1);
}

.result-text {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
    word-wrap: break-word;
    margin: 0;
}

.label-bubble {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    color: white;
    font-weight: bold;
    font-size: 1.8rem;
    transition: transform 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.label-bubble:hover {
    transform: scale(1.1);
}

.results-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.main-results-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 55vh;
    width: 100%;
    padding: 40px 0;
}

.top-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bottom-section {
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
}

.license-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    width: 100%;
}

.license-bubble {
    background-color: white;
    color: #333;

    width: 210mm;
    height: 167mm;

    flex-shrink: 0; 

    padding: 40px;
    box-sizing: border-box;
    border-radius: 20px;
    
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    
    text-align: left;
    overflow-y: auto; 
    line-height: 1.6;
}

@media (max-width: 210mm) {
    .license-bubble {
        width: 90%;
        height: auto;
        max-height: 70vh;
    }
}

.license-footer {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 40px;
    padding-bottom: 60px;
}

/* mobile */
@media (max-width: 800px) {

    .main-container {
        padding-top: 10px;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .main-results-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: space-between; 
        min-height: 65vh;
        padding: 40px 0;
    }

    #results-container {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .main-results-wrapper {
        height: auto;
        padding: 20px 0;
    }

    .license-bubble {
        width: 95%;
        height: auto;
        padding: 20px;
    }
    
    h1 {
        font-size: 2.4rem;
    }

    .question-container {
        height: 150px;
    }

    #question {
        background-color: #555555; 
        color: white;
        padding: 25px 40px;        
        border-radius: 50px;       
        
        display: flex;
        align-items: center;
        justify-content: center;
        
        max-width: 80%;            
        line-height: 1.4;
        font-size: 1.2rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

        min-height: 60px; 
    }

    #buttons {
        min-height: 300px;
    }

    button {
        width: 80%;            
        max-width: 400px;
        padding: 15px 30px;
        border: none;
        border-radius: 8px;      
        background-color: #333;  
        color: white;            
        font-size: 1rem;
        font-weight: bold;
        cursor: pointer;
        transition: transform 0.2s, box-shadow 0.2s;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    #buttons.multi-column {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .result-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
        transition: transform 0.2s;
        filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3));
    }

    .result-text {
        font-weight: 700;
        font-size: 1rem;
        line-height: 1.2;
        word-wrap: break-word;
        margin: 0;
    }

    .label-bubble {
        display: inline-block;
        padding: 15px 40px;
        border-radius: 50px;
        color: white;
        font-weight: bold;
        font-size: 1.1rem;
        transition: transform 0.2s;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    #results-container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        align-items: flex-start; 
    }

    .result-item {
        width: 100px; 
    }
}
