#rectangle-container {
    display: grid;
    grid-template-columns: repeat(11, 1fr); /* 11 columns for the grid */
    grid-template-rows: repeat(12, 1fr); /* 12 rows for the grid */
    column-gap: 2vw; /* Horizontal gap in viewport width units */
    row-gap: 2vh; /* Vertical gap in viewport height units */
    width: 80vw; /* Width as a percentage of viewport width */
    height: 80vh; /* Height as a percentage of viewport height */
    position: relative;
    justify-items: center;
    align-items: center;
}


/* Style for rectangles */
.rectangle {
    width: 6vw;
    height: 4vh;
    background: #007000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.7vw;
    border-radius: 10px;
    transition: background-color 0.3s;
}

/* Assigned rectangles */
.rectangle.assigned {
    background-color: #c00000;
    cursor: not-allowed;
}

/* Large and non-interactive rectangles */
.rectangle.large {
    width: 100%; /* Full width of the grid cell */
    height: 100%; /* Full height of the grid cell */
    background-color: #888;
}

/* First Row */
.rectangle:nth-child(16) { grid-column: 2; grid-row: 1; }
.rectangle:nth-child(15) { grid-column: 3; grid-row: 1; }
.rectangle:nth-child(14) { grid-column: 4; grid-row: 1; }
.rectangle:nth-child(13) { grid-column: 5; grid-row: 1; }
.rectangle:nth-child(12) { grid-column: 6; grid-row: 1; }
.rectangle:nth-child(11) { grid-column: 7; grid-row: 1; }
.rectangle:nth-child(10) { grid-column: 8; grid-row: 1; }
.rectangle:nth-child(9) { grid-column: 9; grid-row: 1; }
.rectangle:nth-child(8) { grid-column: 10; grid-row: 1; }

/* Second Row */
.rectangle:nth-child(34) { grid-column: 3; grid-row: 3; }
.rectangle:nth-child(33) { grid-column: 4; grid-row: 3; }
.rectangle:nth-child(32) { grid-column: 5; grid-row: 3; }
.rectangle:nth-child(31) { grid-column: 6; grid-row: 3; }
.rectangle:nth-child(30) { grid-column: 7; grid-row: 3; }
.rectangle:nth-child(29) { grid-column: 8; grid-row: 3; }
.rectangle:nth-child(28) { grid-column: 9; grid-row: 3; }

/* Third Row */
.rectangle:nth-child(20) { grid-column: 3; grid-row: 5; }
.rectangle:nth-child(21) { grid-column: 4; grid-row: 5; }
.rectangle:nth-child(22) { grid-column: 5; grid-row: 5; }
.rectangle:nth-child(23) { grid-column: 6; grid-row: 5; }
.rectangle:nth-child(24) { grid-column: 7; grid-row: 5; }
.rectangle:nth-child(25) { grid-column: 8; grid-row: 5; }
.rectangle:nth-child(26) { grid-column: 9; grid-row: 5; }

/* Rectangle Outer */
.rectangle:nth-child(35) { grid-column: 3; grid-row: 4; transform: rotate(270deg); margin-top: -2vh; margin-left: -4vw;}
.rectangle:nth-child(27) { grid-column: 9; grid-row: 4; transform: rotate(90deg); margin-top: -2vh; margin-left: 4vw;}

/* Right Side */
.rectangle:nth-child(7) { grid-column: 11; grid-row: 2; transform: rotate(90deg); margin-top: 5vh;}
.rectangle:nth-child(6) { grid-column: 11; grid-row: 3; transform: rotate(90deg); margin-top: 10vh;}
.rectangle:nth-child(5) { grid-column: 11; grid-row: 5; transform: rotate(90deg); margin-top: 5vh;}
.rectangle:nth-child(4) { grid-column: 11; grid-row: 6; transform: rotate(90deg); margin-top: 10vh;}

/* Bottom */
.rectangle:nth-child(3) { grid-column: 10; grid-row: 7;  margin-top: 5vh;}
.rectangle:nth-child(2) { grid-column: 9; grid-row: 7;  margin-top: 5vh;}
.rectangle:nth-child(1) { grid-column: 8; grid-row: 7;  margin-top: 5vh;}

/* Left Side */
.rectangle:nth-child(17) { grid-column: 1; grid-row: 2; transform: rotate(270deg); margin-top: 5vh;}
.rectangle:nth-child(18) { grid-column: 1; grid-row: 3; transform: rotate(270deg); margin-top: 10vh;}
.rectangle:nth-child(19) { grid-column: 1; grid-row: 5; transform: rotate(270deg); margin-top: 5vh;}

.rectangle:nth-child(36) { grid-column: 1; grid-row: 6 / span 2; transform: rotate(270deg); margin-top: 10vh; width: 8vw; height: 4vh;}
.rectangle:nth-child(37) { grid-column: 2 / span 3; grid-row: 7 / span 2; width: 16vw; height: 8vh; margin-top: 5vh;}
.rectangle:nth-child(38) { grid-column: 5 / span 3; grid-row: 7 / span 2; width: 12vw; height: 6vh; margin-top: 5vh;}


#name-table-container {
    display: none; /* Hides the table container at the start */
}

body {
    background-image: url('https://heimatbewegen.de/wp-content/uploads/2018/06/Pusteblume-1596x860.jpg');
    background-size: cover; /* Makes the image cover the entire page */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
}


.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
    position: relative;
    margin: 15% auto;
    padding: 20px;
    width: 320px;
    background-color: #007bff;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Close button */
.close {
    position: absolute;
    top: 8px;
    right: 12px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: #ffcccc;
}

/* Popup Form Layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 4fr; /* left column for labels, right for inputs */
    grid-row-gap: 10px;
    grid-column-gap: 10px;
    align-items: left;
    padding-right: 40px;
}

.form-grid label {
    text-align: left;
    font-weight: bold;
}

.form-grid input {
    width: 100%;
    padding: 6px;
    border: none;
    border-radius: 4px;
}

.form-grid button {
    grid-column: 2; /* button under inputs */
    margin-top: 10px;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    background-color: white;
    color: #007bff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-grid button:hover {
    background-color: #f0f0f0;
}

#countdown-container {
    font-size: 2.5em;
    color: #444;
    font-weight: bold;
}

/* Header container */
.header {
    display: flex;             /* enables flex layout */
    justify-content: flex-end; /* pushes content to the right */
    align-items: right;       /* vertically center content */
    padding: 15px 20px;
    background-color: #f5f5f5;
}

/* Button styling */
.waitlist-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.waitlist-btn:hover {
    background-color: #0056b3;
}
