@import url('https://fonts.googleapis.com/css2?family=Material+Icons');

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Avenir Next', sans-serif;
    background-color: #121212;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 10px;
    box-sizing: border-box;
}

.container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: calc(100% - 200px); /* Ajuster pour les autres éléments */
    margin-bottom: 20px;
    padding: 20px;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.box {
    background-color: #1f1f1f;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    width: 45%;
    height: 100%;
    box-sizing: border-box;
    margin: 10px;
}

.buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.buttons button {
    background-color: #333;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 12px;
    transition: transform 0.2s;
}

.buttons button:hover {
    transform: translateY(-5px);
}

.buttons .true {
    background-color: green;
}

.buttons .false {
    background-color: red;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
}

.popup-content {
    background-color: #1f1f1f;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-sizing: border-box;
    max-width: 90%;
}

.gear-icon {
    position: fixed;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.gear-icon img {
    width: 40px;
    height: 40px;
}

.results {
    text-align: center;
    margin-top: 20px;
}

.progress-bar-container {
    width: 80%;
    max-width: 600px;
    margin-top: 10px;
    padding: 10px;
    background-color: #333;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.progress-bar {
    width: 100%;
    background-color: #555;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-bar-inner {
    height: 10px;
    background-color: green;
    width: 100%;
    transition: width 1s linear;
}

.material-icons {
    font-size: 48px;
}

.description {
    text-align: center;
    margin-bottom: 20px;
}

.responseChart {
    display: none;
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
    height: 100px;
}

footer {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 220px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position above the icon */
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.tooltip .material-icons {
    font-size: 5px;
}

.action-button {
    background-color: #333;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: var(--button-font-size, 16px);
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 12px;
    transition: transform 0.2s;
}

.action-button:hover {
    transform: translateY(-5px);
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    .box {
        width: 100%;
        height: auto;
    }
    .container {
        height: auto;
    }
    .progress-bar-container{
        width: 100%;
    }
	.responseChart {
		width: 70%;
		height: 100px;
		margin-top: 100px;
		margin-bottom: 100px;
	}
    .popup-content {
        width: 90%;
    }
    .gear-icon img {
        width: 30px;
        height: 30px;
    }
    .material-icons {
        font-size: 36px;
    }
}