*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --theGap: 1.5rem;
    --fore: #ffc680;
    --back: #573000;
  }

body {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    background-color: #000000;
    color: hsl(0, 0%, 100%);
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

p {
    margin-bottom: 1rem;
}

#header {
    width: 100%;
    height: 5rem;
    background-color: var(--back);
    display: flex;
    justify-content: center;
    align-items: center;
}

#header svg {
    color: var(--fore);
    height: 55%;
    width: auto;
}

#footer {
    width: 100%;
    height: 3rem;
    background-color: #2c2c2c;
    color: var(--fore);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
}

#footer a{
    margin-left: 2rem;
    color: var(--fore);
}

#mainBox {
    /* Screenshot, title, textboxes */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 900px;
}

#ssAndTitle {
    max-width:800px; 
    width: 800px;
    height: fit-content;
}

@media (max-width: 800px){
    #ssAndTitle {
        width: 100%;
    }
}

#ss {
    display: flex;
}

#ss img {
    width: 100%;
}

#title {
    color: var(--fore);
    font-family: "Raleway", Arial, Helvetica, sans-serif;
    text-align: center;
    padding: var(--theGap);

}

hr.blackforeblack {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, black, var(--fore), black);
}

#textboxes {
    gap: var(--theGap);
    display: flex;
    margin-left: var(--theGap);
    margin-right: var(--theGap);
    margin-bottom: var(--theGap);
}

.textbox {
    flex-direction: row;
    max-width: 50%;
    font-size: 0.9rem;
}

ul {
    list-style-type: disc;
    margin-left: 1rem;
}

li::marker {
    color: var(--fore);
  }

.quote {
    margin: 1rem;
    font-style: italic;
    color: var(--fore);
}

#dlAndReaperBox {
    /* contains downloadContainer and reaperBox, but disolved unless wide */
    display: contents;
    flex-direction: column;
    align-items: center;
}

#downloadContainer {
    --dl_fore: var(--fore);
    --dl_back: var(--back);
    display: flex;
    flex-direction: column;
    align-items: center;
    width:fit-content;
    height: fit-content;
    padding: var(--theGap);
    gap: var(--theGap);
    color: var(--dl_fore);
}

#downloadBoxes {
    display: flex;
    gap: var(--theGap);
}

@media (min-width: 1433px) and (max-width: 1750px){
    /* download buttons become vertical stack on the right */
    #downloadContainer {
        /* match the top of the screenshot */
        margin-top: 50px;
    }
    #downloadBoxes {
        flex-direction: column;
    }
}

@media (max-width: 800px){
    /* mobile : download buttons become vertical stack */
    #downloadBoxes {
        flex-direction: column;
    }
    #textboxes {
        flex-direction: column;
    }
    .textbox {
        max-width: none;
    }
}

.downloadVersionBox {
    display: flex;
    flex-direction: column;
    gap: var(--theGap);
    /* width: 10rem; */
    height: calc(10rem + --theGap + --theGap);
    border-radius: 0.3rem;
    padding: var(--theGap);
    background-color: #331c00;
    color: var(--dl_fore);
    font-size: 0.7rem;
}

.downloadVersionBox p {
    font-family: 'Raleway';
    margin-bottom: 0;
}

.downloadVersionBox ul {
    margin-left: 0.7rem;
    margin-top: -1rem;
}

.downloadBox {
    display: flex;
    flex-direction: column;
    gap: var(--theGap);
    width: 18rem;
    height: calc(10rem + --theGap + --theGap);
    border-radius: 0.3rem;
    padding: var(--theGap);
    background-color: var(--dl_back);
}

.downloadBox p {
    font-family: 'Raleway';
    font-size: 0.9rem;
    margin-bottom: 0;
}

.downloadHead {
    display: flex;
    gap: var(--theGap);
}

.downloadButton {
    flex: 1;
    background-color: var(--dl_back);
    color: var(--dl_fore);
    height: 52px;
    border: 0.15rem solid var(--dl_fore); ;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Raleway';
    text-decoration: none;
}

.downloadButton:hover {
    background-color: var(--dl_fore);
    color: var(--dl_back);
    font-weight: 700;
}

#reaperBox {
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: center;
    background-color: #2a2a2a;
    box-sizing: border-box;
    padding: var(--theGap);
    gap: var(--theGap);
    --ssRWidth: 739px;
    --ssRHeight: 470px;
}

.reaperSSBox {
    display: flex;
    max-width: var(--ssRWidth);
    height: var(--ssRHeight)
}

.reaperSSBox img {
    max-width: var(--ssRWidth);
}

.reaperBoxRight {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--theGap);
    max-width: 400px;
}

.reaperBoxHead {
    height: 48px;
    flex-shrink: 0;
    align-items: center;
    display: flex;
}

.reaperBoxHead p {
    padding: calc(var(--theGap) / 2);
    color: white;
    font-family: 'Raleway';
    font-size: 1.5rem;
    font-weight: 300;
}

.reaperBoxText {
    flex: 1;
    max-width: var(--ssRWidth);
    
}

.reaperBoxText p {
    color: white;
    font-size: 0.9rem;
}

/* when wide, Reaper section becomes a column and changes order */
@media (min-width: 1750px) {
    #dlAndReaperBox {
        display: flex;
    }

    #downloadContainer {
        /* match the top of the screenshot */
        margin-top: 70px;
    }

    #reaperBox {
        margin-top: var(--theGap);
        width: fit-content;
        flex-direction: column;
        height: auto;
        align-items: center;
    }
    
    .reaperSSBox {order: 2;}
    .reaperBoxRight {display: contents;}
    .reaperBoxHead {order: 1;}
    .reaperBoxText {order: 3;}
}

/* when narrow, Reaper section becomes a column and changes order */
@media (max-width: 1150px) {
    #reaperBox {
        flex-direction: column;
        height: auto;
        align-items: center;
    }
    
    .reaperSSBox {
        order: 2;
        width: 100%;
    }

    .reaperSSBox img {
        width: 100%;
        object-fit: cover;
    }
    
    .reaperBoxRight {display: contents;}
    .reaperBoxHead {order: 1;}
    .reaperBoxText {order: 3;}
}