<!-- start Simple Custom CSS and JS -->
<style type="text/css">
body {
    font-family: Helvetica, sans-serif;
    background-color: #FF0424; 
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

a {
    font-size: 1em;
    text-decoration: none;
}

/* Header Styling */
.head {
    background-color: #ECECEC;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 10;
    box-shadow: 0px 4px 2px rgba(0, 0, 0, 0.1);
    
    box-sizing: border-box;
}

/* Left and Right Groups */
.left-group,
.right-group {
    display: flex;
    align-items: center;
    height: 100%;
	width:50%;
    flex-shrink: 0;
	
}
.right-group {justify-content: flex-end;}
/* Link Styling in Left Group */
.left-group a {
    color: #FF0424;
    font-size: 1em;
    font-weight: bold;
    
	padding: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
    transition: color 0.3s ease;
}

.right-group .player {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


.head:hover {
    background-color: #FF0424;
}

.head:hover .left-group a {
    color: #ECECEC;
}

.head:hover .sc_link:hover,
.head:hover .bc_link:hover,
.head:hover .ig_link:hover {
    height: 100%;
    transition: background-color 0.3s ease;
    color: #ECECEC;
}

.head:hover .sc_link:hover {
    background-color: #FF5500;
}

.head:hover .bc_link:hover {
    background-color: #1DA0C3;
}

.head:hover .ig_link:hover {
    background-image: linear-gradient(to left, #FEDA75, #FA7E1E, #D62976, #962FBF, #4F5BD5);
    transition: color 0.3s ease;
}

.grid {
    display: grid;
	
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(auto-fill, minmax(0, 1fr));
    
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
}

.grid > * {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-bottom: 100%;
    position: relative;
}



.square {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-align: center;
    cursor: grab;
    box-sizing: border-box;
}

.square1 {
    grid-column: span 1;
    grid-row: span 1;
    background: #FF0424;
    aspect-ratio: 1 / 1;
}

.square2 {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 2 / 1;
}

.square4 {
    grid-column: span 2;
    grid-row: span 2;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.square4 img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.reset {
    background-color: blue !important;
    max-height: 100%;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.square.dragging {
    z-index: 1000;
}

.square_table {
    grid-column: span 2;
    grid-row: span 1;
    display: flex;
    flex-direction: column;
    cursor: grab;
    overflow-y: auto;
    background: lightgray;
    padding: 0;
    margin: 0;
    aspect-ratio: 2 / 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    height: 100%;
}

.square_table::-webkit-scrollbar {
    display: none;
}

.square_table details {
    width: 100%;
    border: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.square_table summary {
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    margin: 0;
    background-color: inherit;
    color: white;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

.square_table summary:first-of-type {
    margin-top: 0;
    padding-top: 10px;
}

.square_table summary:hover {
    color: black;
}

.square_table a {
    color: white;
    text-decoration: none;
}

.square_table a:hover {
    color: black;
}

.square_table details > div {
    margin: 0;
    padding: 10px;
    background-color: white;
}

.square_table details[open] summary {
    border-bottom: 1px solid white;
}

@media only screen and (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media only screen and (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .left-group, .right-group {
        width: 50%;
    }

    .left-group a {
        padding: 0 5px; /* Removing excess space between links */
    }
}

@media (max-width: 480px) {
    .left-group, .right-group {
        width: 50%;
    }
    
    .head {
        padding: 5px;
    }
}</style>
<!-- end Simple Custom CSS and JS -->
