body {
    background: #d2e4e6
}

header {
    background: #1f6f76;
    height: 120px;
    display: flex;
    align-items: center;
    padding: 0 50px;
    justify-content: space-between;
    
}


header .logo {
    margin-right: auto;
    flex: 1
}

header img {
    height: 100px;
}

header .nav {
    margin-left: auto;
    flex: 1;
    text-align: right;
    color: white;
    font-size: 20px;
}

header .nav a {
    margin-left: 15px;
}

h1 {
    text-align: center;
    font-size: 30px;
    margin: 10px;
    line-height: 2em;
    color: #fff;

}

#graphic_wrap {
    width: 1100px;
    margin: 20px auto;
    display: flex;
}

#tree_wrap {
    width: 500px;
    position: relative;
    margin-right: 100px;
}

#tree_wrap img {
    position: absolute;
    width: 500px;
    z-index: 1;
}

#definition_wrap {
    position: absolute;
    bottom: 20px;
    margin: 20px;
    background: #efe4a6;
    border-radius: 10px;
    padding: 10px;
    z-index: 200;
    
}

#definition_wrap.hidden {
    display: none;
}

.box {
    width: 100px;
    height: 65px;
    margin: 10px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    z-index: 100;
    position: absolute;
    border: 6px solid #b40616;
}

.b1 {
    top: 45px;
    left: 150px;
}

.b2 {
    top: 45px;
    left: 297px;
}

.b3 {
    top: 146px;
    left: 100px;
}

.b4 {
    top: 131px;
    left: 219px;
}

.b5 {
    top: 123px;
    left: 336px;
}

.b6 {
    top: 223px;
    left: 156px;
}

.b7 {
    top: 226px;
    left: 295px;
}

.b8 {
top: 389px;
left: 52px;
    border-color: #d8af00;
}
.b9 {
    top: 422px;
    left: 214px;
    border-color: #d8af00;
}
.b10 {
top: 372px;
left: 371px;
    border-color: #d8af00;
}

.r1 {
top: 319px;
left: 69px;
}

.r2 {
    top: 343px;
left: 199px;
}

.r3 {
top: 310px;
left: 305px;
}

.romantic {
    visibility: hidden;
    border-color:#0688b8;
}

.romantic.active {
    visibility: visible;
    
}

#items {
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    width: 520px;
    float: right;
    gap: 10px;
    margin-left: 10px;
    justify-content: space-between;
    background: #efe4a6;
    padding: 5px
}

#items::after {
    content: "";
    flex: auto;
}

.item {
    width: 90px;
    height: 55px;
    background-color: #324553;
    display: block;
    cursor: grab;
    border-radius: 100px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    padding: 10px;
}

.item.small {
    font-size: 10px;
}

main {
    padding: 40px;
    margin: 0 auto;
    max-width: 700px;
}

h2 {
    text-align: left;
    font-size: 30px;
    margin-top: 20px;
    margin-bottom: 10px;
}


h3, h4 {
    font-weight: bold;
}

h3 {
    font-size: 20px;
    margin: 20px 0 10px 0
}

h4 {
    font-size: 18px;
    margin: 20px 0 10px 0
}

ol {
    list-style: decimal;
}

ul {
    list-style: disc;
    margin-left: 20px;
}

li {
    line-height: 1.6em;
}

p {
    line-height: 1.6em;
    margin-bottom: 10px

}

#button_wrap {
    width: 100%;
display: flex;
justify-content: center;
margin-top: 30px;
}

#romantic_toggle {
    background: #1f6f76;
    border-radius: 100px;
    padding: 10px 20px;
    color: white;
}

#romantic_tooltip {
    display: none;
    text-align: center;
    padding: 10px;
}

#romantic_tooltip.active {
    display: block;
}

@media only screen and (max-width: 1020px) {
    header {
        height: 50px;
    }
    h1 {
        font-size: 18px;
    }
    .logo {
        margin-top: 7px;
    }
    header img {
        height: 50px
    }
    #definition_wrap {
        top: 20px;
        bottom: inherit !important;
    }
    #graphic_wrap {
        flex-direction: column;
        width: auto;
        padding: 20px
    }

    #items {
        margin-top: 520px;
        width: 100%;
    }

    #graphic_wrap {
        height: calc(100vh - 100px);
        overflow: hidden;
    }

    #items {
        overflow-y: scroll;
    }
}

@media only screen and (max-width: 540px) {
    header {
        flex-direction: column;
        height: unset;
        align-items: center;
        justify-content: center;
        padding: 20px 5px;
    }

    header img {
        height: 75px;
    }

    header .logo, header .nav {
        margin: 0;
        padding: 0;
    }

    header .nav {
        flex-direction: column;
        font-size: 14px;
        text-decoration: underline;
    }

    #tree_wrap {
        width: 250px;
        margin: 0 auto;
    }

    #tree_wrap img {
        width: 250px
    }
    #items {
        margin-top: 300px;
        overflow-x: auto;
        gap: 5px
    }

    .item {
    width: 48px;
    height: 30px;
    font-size: 9px;
    padding: 4px;
}

    .box {
    width: 50px;
    height: 35px;
    margin: 5px;
    border-width: 3px;
}

.b1 {
    top: 22px;
    left: 75px;
}

.b2 {
    top: 22px;
    left: 150px;
}

.b3 {
    top: 73px;
    left: 50px;
}

.b4 {
    top: 75px;
    left: 110px;
}

.b5 {
    top: 61px;
    left: 165px;
}

.b6 {
    top: 110px;
    left: 75px;
}

.b7 {
    top: 113px;
    left: 148px;
}

.b8 {
top: 190px;
left: 25px;
    border-color: #d8af00;
}
.b9 {
    top: 210px;
    left: 105px;
    border-color: #d8af00;
}
.b10 {
top: 190px;
left: 160px;
    border-color: #d8af00;
}

.r1 {
top: 155px;
left: 35px;
}

.r2 {
    top: 160px;
left: 100px;
}

.r3 {
top: 155px;
left: 151px;
}

}