#emotionmatrix-container {
    max-width: 100%;
    width: 100%;
    background-color: transparent;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto; /* Center the container */
    margin-bottom: 20px;
    transition: all 0.3s ease-in-out;
    height: auto;
}

#current-emotion-definition-EN{
    padding-bottom: 10px;
}

#emotionmatrix-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain; /* Keeps the image within the bounds */
}

@media (max-width: 480px) {
    #emotionmatrix-container {
        padding: 10px;
    }
}

@media (min-width: 481px) and (max-width: 840px) {
    #emotionmatrix-container {
        max-width: 600px;
    }
}

@media (min-width: 841px) {
    #emotionmatrix-container {
        max-width: 800px;
    }
}

h2 {
    text-align: center;
    color: #333;
}

#emotion-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.emotion {
    background-color: #e0e0e0;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    margin: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.emotion-item {
    position: absolute;
    cursor: move;
    user-select: none;
    padding: 2px 5px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    font-size: 14px;
}

.emotion-container {
    display: inline-block;
    margin: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.emotion.selected {
    background-color: #4CAF50;
    color: white;
}

#category-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

#category-buttons button {
    border: none;
    color: black;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
}

#current-emotion-definition-EN {
    text-align: center;
}

#high-unpleasant-btn {
    background-color: #9dacb4;
}

#high-pleasant-btn {
    background-color: #f5edaf;
}

#low-unpleasant-btn {
    background-color: #9fccc0;
}

#low-pleasant-btn {
    background-color: #d0e6b9;
}

#canvas-container {
    position: relative;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mini-canvas {
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #ccc;
}

#emotion-canvas {
    width: 100%;
    height: 100%;
    border: 1px solid #ccc;
}

#emotion-buttons {
    display: flex;
    margin-bottom: 20px;
    width: 90%;
    margin: auto;
    margin-bottom: 10px;
}

#emotion-buttons button {
    background-color: #e0e0e0;
    color: #3b596a;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    margin: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#emotion-buttons button.selected {
    background-color: #4CAF50;
    color: white;
}

#current-emotion-EN {
    font-weight: bold;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

#progress-EN {
    margin-top: 10px;
    font-size: 16px;
}

#previous-button, #next-button, #finish-button {
    background-color: #3b596a;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

#navigation-buttons{
    width: 90%;
    margin: auto;   
    display: flex;
    justify-content: space-between;
}

#previous-button:hover, #next-button:hover, #finish-button:hover {
    background-color: #3b596a;
}

/* Center div#step1 inside the emotionmatrix-container */
#step1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Ensure #myCanvas uses 90% of the available space within the #emotionmatrix-container */
#myCanvas {
    width: 90%;
    height: 90%;
}

#holding-place {
    width: 90%;
    align-items: center;
    min-height: 100px;
    border: 2px dashed #ccc;
    padding: 10px;
    background-color: #f0f0f0;
    margin-top: 20px;
    margin: auto;
  
}

#holding-place button{
    color: #3b596a;
}

#holding-place h3{
    text-align: center;
    margin: 0;
	min-height: 100%;
	border: none;
    color: #3b596a;
}

#export-button{
    background-color: #3b596a;
}

