/* CSS - Name: "positionstyles.css" */
/* Activity 1 styles */
.content1 {
    /* This is the parent of the activity 1 boxes. */
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 2fr 2fr 1fr;
    gap: 20px;


}

.red1 {
    background-color: red;
    width: 100%;
    height: 100%;
    grid-column: 1/3;
    grid-row: 1/2;

}

.green1 {
    background-color: green;
    height: 100%;
    aspect-ratio: 1/1;
    margin-left: 50px;
    margin-right: 50px;

}

.yellow1 {
    background-color: gold;
    height: 100%;
    aspect-ratio: 1/1;
    margin-left: 50px;
    margin-right: 50px;
}

.blue1 {
    background-color: blue;
    width: 100%;
    height: 100%;
    grid-column: 1/3;
    grid-row: 4/5;
}

/* Activity 2 styles */
.content2 {
    /* This is the parent of the activity 2 boxes. */
    display: grid;
    grid-template-columns: 50px 50px 50px 50px 50px;
    grid-template-rows: 50px 50px 50px 50px 50px;
}

.red2 {
    background-color: red;
    width: 100%;
    aspect-ratio: 1/1;
    grid-row: 1/3;
    grid-column: 1/3;
}

.green2 {
    background-color: green;
    width: 100%;
    aspect-ratio: 1/1;
    grid-row: 2/4;
    grid-column: 2/4;
}

.yellow2 {
    background-color: gold;
    width: 100%;
    aspect-ratio: 1/1;
    grid-row: 3/5;
    grid-column: 3/5;
}

.blue2 {
    background-color: blue;
    width: 100%;
    aspect-ratio: 1/1;
    grid-row: 4/6;
    grid-column: 4/6;
}

/* Activity 3 styles */
.content3 {
    display: grid;
    grid-template-columns: 4fr 1fr 4fr;
    grid-template-rows: 1fr 2fr 1fr;
    min-height: 400px;
}

.red3 {
    background-color: red;
    width: 100%;
    height: 100%;
    grid-row: 1/2;
    grid-column: 1/4;
}

.green3 {
    background-color: green;
    width: 100%;
    height: 100%;
    grid-row: 2/3;
    grid-column: 1/2;
}

.yellow3 {
    background-color: gold;
    width: 100%;
    height: 100%;
    grid-row: 2/3;
    grid-column: 3/4;

}

.blue3 {
    background-color: blue;
    width: 100%;
    height: 100%;
    grid-row: 3/4;
    grid-column: 1/4;
}

/* Activity 4 styles */
.content4 {
    /* This is the parent of the activity 4 boxes. */
    height: 400px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
}

.red4 {
    background-color: red;
    width: 100%;
    height: 100%;
    grid-row: 1/4;
    grid-column: 1/2;
}

.green4 {
    background-color: green;
    width: 100%;
    height: 100%;
    grid-row: 1/2;
    grid-column: 2/3;
}

.yellow4 {
    background-color: gold;
    width: 100%;
    height: 100%;
    grid-row: 2/3;
    grid-column: 2/3;
}

.blue4 {
    background-color: blue;
    width: 100%;
    height: 100%;
    grid-row: 3/4;
    grid-column: 2/3;
}

/* Activity 5 styles */
.content5 {
    /* This is the parent of the activity 5 boxes. */
    height: 400px;
    position: relative;
}

.red5 {
    width: 100%;
    height: 100px;
    background-color: red;
    grid-row: 1/2;
    z-index: 1;
}

.green5 {
    height: 125px;
    aspect-ratio: 1/1;
    background-color: green;
    z-index: 9;
    float: left;


}

.yellow5 {
    width: 100%;
    height: 200px;
    background-color: gold;
    z-index: -1;


}

.blue5 {
    width: 100%;
    height: 100px;
    background-color: blue;
    z-index: 1;
}

/* Activity 6 styles */
.content6 {
    /* This is the parent of the activity 6 boxes. */
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr;
    aspect-ratio: 1/1;
}

.red6 {
    background-color: red;
    width: 100%;
    height: 100%;
    grid-column: 1/4;
    grid-row: 1/3;
    z-index: 1;
}

.green6 {
    background-color: green;
    width: 100%;
    height: 100%;
    grid-column: 1/3;
    grid-row: 5/7;
    z-index: 3;
}

.yellow6 {
    background-color: gold;
    width: 100%;
    height: 100%;
    grid-column: 5/7;
    grid-row: 3/7;
    z-index: 3;
}

.blue6 {
    background-color: blue;
    width: 100%;
    height: 100%;
    grid-column: 2/6;
    grid-row: 2/6;
    z-index: 2;
}


/* Do not make any changes below here */
.activity {
    width: 70%;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    border: 1px solid black;
    padding: 10px;
    clear: both;
    overflow: auto;
}

.hint {
    border: 1px solid grey;
    background: #e0e0e0;
    padding: .5em;
    position: relative;
    margin: 1em 0;
}

.hint h3 {
    margin: 0;
}

.hint:hover {
    background: #d0d0d0;
}

.hint>div {
    display: none;
}

.hint input[type=checkbox] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    cursor: pointer;
}

.hint input[type=checkbox]:checked~div {
    display: block;
}

.hint i {
    position: absolute;
    transform: translate(-6px, 0);
    margin-top: 16px;
    right: 10px;
    top: -3px;
}

.hint i:before,
.hint i:after {
    content: "";
    position: absolute;
    background-color: black;
    width: 3px;
    height: 9px;
}

.hint i:before {
    transform: translate(2px, 0) rotate(45deg);
}

.hint i:after {
    transform: translate(-2px, 0) rotate(-45deg);
}

.hint input[type=checkbox]:checked~i:before {
    transform: translate(-2px, 0) rotate(45deg);
}

.hint input[type=checkbox]:checked~i:after {
    transform: translate(2px, 0) rotate(-45deg);
}

.hint a {
    position: relative;
    z-index: 1;
}