.homewidget-container {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../media/image/space-bg.gif");
    background-position: center;
    background-size: cover;
}

.homewidget-header {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
}

.homewidget-title-img {
    width: 50%;
    height: 250px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.homewidget-center-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    min-height: 300px;
}

.homewidget-world-img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.homewidget-divider {
    border: 2px dashed #ff00ff;
    margin: 20px 0;
}

.homewidget-introduction {
    position: relative;
    margin: 20px 0;
    text-align: center;
}

.homewidget-title {
    color: #ff0000;
    text-shadow: 2px 2px #ffff00;
    font-size: 32px;
    margin-bottom: 24px;
}

/* Flex container responsiveness */
.homewidget-flex-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Hide left and right images on mobile */
@media (max-width: 768px) {
    .homewidget-left-img,
    .homewidget-right-img {
        display: none;
    }
}

.homewidget-left-img {
    width: 150px;
    height: 150px;
}

.homewidget-text {
    color: #00ffff;
    flex: 1;
    text-align: left;
    font-size: 24px;
}

.homewidget-right-img {
    width: 250px;
    height: 250px;
    align-self: flex-end;
}

/* Responsive grid */
.homewidget-grid {
    display: grid;
    grid-template-columns: minmax(15%, 20%) minmax(25%, 30%) 1fr;

    gap: 20px;
    margin-top: 20px;
}

.homewidget-thought {
    background-image: url('../media/image/penser.png');
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */
    background-size: cover; /* Resize the background image to cover the entire container */
    padding: 15px;
    border: 3px solid #ff00ff;
    border-radius: 10px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Thought section responsive text */
.homewidget-thought-title {
    color: #ffff00;
    text-shadow: 1px 1px #ff0000;
    text-align: center;
    font-size: 1.2em;
}

.homewidget-thought-text {
    color: #ffffff;
    text-align: center;
    margin-top: 10px;
    font-size: 1em;
}

.homewidget-music {
    border: 3px solid #00ffff;
    padding: 15px;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
}

/* Music title responsive */
.homewidget-music-title {
    color: #ffff00;
    text-shadow: 1px 1px #ff0000;
    font-size: 1.2em;
}

/* Responsive music video */
.homewidget-music-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.homewidget-music-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.homewidget-music-text {
    color: #00ffff;
    margin-top: 10px;
    font-size: 1em;
}

.homewidget-empty {
    border: 3px solid #ff00ff;
    padding: 15px;
    border-radius: 10px;
}
.homewidget-tab-title {
    color: #ffffff;
    font-size: 1.5em;
    text-shadow: 2px 2px #000000;
    margin-bottom: 15px;
}

.homewidget-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Allow the items to wrap onto the next line */
}

.homewidget-tab-button {
    background-color: #ffcc00;
    color: #ff00ff;
    border: 2px solid #0000ff;
    font-size: 1.2em;
    padding: 10px;
    cursor: pointer;
    margin: 0 5px;
    font-family: 'Comic Sans MS', sans-serif;
    border-radius: 5px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
    flex: 1 0 22%; /* Each button takes up ~22% of width by default, so 4 buttons fit in one row */
    text-align: center;
}


.homewidget-tab-button:hover {
    background-color: #ff00ff;
    color: #ffff00;
    transform: scale(1.1);
}

.homewidget-tab-button:active {
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.homewidget-tab-content {
    display: none;
    background-color: #00ff002c;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0px 0px 10px #ff0000;
}

.homewidget-tab-content ul {
    list-style-type: none;
    padding: 0;
}

.homewidget-tab-content li {
    font-size: 1.1em;
    color: #ffffff;
    padding: 10px;
    border-bottom: 2px dashed #ffcc00;
}

.homewidget-tab-content li img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.devicon-icon {
    vertical-align: middle;
}



.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    left: 0;
    right: 0;
    padding: 0 20px; 
}



/* Responsive adjustments for smaller screens */
@media (max-width: 1225px) {
    .homewidget-title-img {
        width: 100%;
    }
    .homewidget-flex-container {
        flex-direction: column;
        text-align: center;
    }
    .homewidget-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        margin-top: 20px;
    }
    .homewidget-title {
        font-size: 24px;
    }

    .homewidget-thought-title,
    .homewidget-music-title {
        font-size: 1em;
    }

    .homewidget-thought-text,
    .homewidget-music-text {
        font-size: 0.9em;
    }

    .homewidget-tab-button {
        flex: 1 0 45%; /* 2 tabs per row on mobile */
    }
}


.contract-btn {
    background: linear-gradient(to bottom, #ff6666 5%, #ff0000 100%);
    border: 1px solid #990000;
    color: #ffffff;
    font-size: 18px;
    padding: 10px 20px;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 5px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.7);
    font-family: 'Comic Sans MS', cursive, sans-serif;
    transition: all 0.2s ease;
}

.contract-btn:active {
    box-shadow: inset 3px 3px 5px rgba(0, 0, 0, 0.7);
}

.contract-btn:hover {
    background: linear-gradient(to bottom, #ff0000 5%, #ff6666 100%);
    transform: scale(1.1);
}

.contract-btn:focus {
    outline: none;
}
