* {
    font-family: Arial, Helvetica, sans-serif;
    color: #444;
    font-size: 16px;
}

html {
    height: 100%;
    width: 100%;
}

body {
    background: #E8DD95;
}

a, a:active, a:focus {
    outline: 0; /* remove extra frame for anchor */
    cursor: pointer; /* sets cursor for anchor without href */
}

#box {
    background: #FFA7A4;
    min-height: 300px;
    max-height: 40%;
    max-width: 500px;
    width: 500px; /* width for ie */
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    padding: 20px;
    margin: auto;
    border-radius: 10px;
    box-sizing: border-box;
}

/* short code for modern browsers
#box_content {
    overflow: hidden;
    overflow-y: auto;
    max-height: 88%;
}
*/

#box_content {
    position: absolute; /* absolute position for old opera */
    overflow: hidden;
    overflow-y: auto;
    bottom: 55px;
    top: 20px;
    left: 20px;
    right: 20px;
}

#box_nav {
    position: absolute;
    text-align: center;
    width: 100%;
    left: 0;
    bottom: 20px;
}

.column_wrap {
    -webkit-column-count: 2; /* Chrome, Safari, Opera */
    -moz-column-count: 2; /* Firefox */
    column-count: 2;
    -webkit-column-gap: 15px; /* Chrome, Safari, Opera */
    -moz-column-gap: 15px; /* Firefox */
    column-gap: 15px;
    overflow: hidden;
    margin: 0;
}

#box p {
    text-align: justify;
    margin: 10px 0 10px 0;
}

#box p:first-child { /* remove margin for 1st paragraph */
    margin: 0 0 10px 0;
}

a.violet {
    background: #B283E8;
    color: #fff;
    text-decoration: none;
    text-align: center;
    transition: all 0.4s ease;
}

a.violet:hover {
    background: #a075d0;
    text-decoration: none;
    transition: all 0.4s ease;
}

a#box_close {
    position: absolute;
    right: 0;
    top: 0;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 13px;
    line-height: 21px;
    text-align: center;
}

a#box_close:before {
    content: "\002715"; /* x char for close button */
}

a.button {
    padding: 5px 10px 5px 10px;
    font-weight: bold;
    border-radius: 4px;
    display: inline-block;
}

@media only screen and (max-width: 768px) {
    #box {
        width: auto;
        margin: 5px auto 5px auto;
        position: relative;
        border-radius: 0;
        min-height: 0px;
    }
    #box_content {
        position: relative;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
    }
    #box_nav {
        position: relative;
        margin: 10px 0 0 0;
        bottom: 0;
    }
    .column_wrap {
        -webkit-column-count: 1; /* Chrome, Safari, Opera */
        -moz-column-count: 1; /* Firefox */
        column-count: 1;
    }
    a#box_close {
        display: none;
    }
}

@media only screen and (max-width: 510px) {
    #box {
        margin: 5px; /* margin around box for narrow screens */
    }
}