/* Do not make changes to this file. */

[role="main"] {
   padding: 1em; 
}

h1 {
    font-size: 3rem;
    margin-top: 0;
}

h2 {
    color: #be0000;
    font-family: Verdana, sans-serif;
    font-size: 16px;
    font-weight: normal;
}

h2 span {
    color: #9e9e9e;
}

.text-sample td p {
    margin-bottom: 1.5rem;
    margin-top: -.15em;
}

.text-sample tr td:first-child,
.grayscale-white tr td:first-child,
.grayscale-black tr td:nth-child(2),
.font-size tr td:first-child {
    color: #9e9e9e;
    font-family: verdana, sans-serif;
    font-size: 12px;
    padding-right: .75rem;
    vertical-align: top;
}

.s82 { font-size: 82px; }
.s72 { font-size: 72px; }
.s64 { font-size: 64px; }
.s56 { font-size: 56px; }
.s48 { font-size: 48px; }
.s42 { font-size: 42px; }
.s36 { font-size: 36px; }
.s34 { font-size: 34px; }
.s32 { font-size: 32px; }
.s30 { font-size: 30px; }
.s28 { font-size: 28px; }
.s26 { font-size: 26px; }
.s24 { font-size: 24px; }
.s22 { font-size: 22px; }
.s20 { font-size: 20px; }
.s18 { font-size: 18px; }
.s16 { font-size: 16px; }
.s14 { font-size: 14px; }
.s12 { font-size: 12px; }

.c000 { color: #000; }
.c333 { color: #333; }
.c666 { color: #666; }
.c999 { color: #999; }
.cccc { color: #ccc; }
.cfff { color: #fff; }

.characters p {
    margin-top: 0;
}

.body-size:after {
    content: "";
    display: table;
    clear: both;
}

.body-size-grid {
    float: left;
    line-height: 1;
    margin-bottom: 1em;
    width: 50%;
}

.body-size-grid:nth-child(3) {
    font-family: Verdana, sans-serif;
}

.body-size-grid:nth-child(4) {
    font-family: Georgia, serif;
}

.body-size-grid:nth-child(5) {
    font-family: Arial, sans-serif;
}

.body-size-grid:nth-child(6) {
    font-family: Times, serif;
    margin-bottom: 0;
}

.body-size-grid h3 {
    color: #9e9e9e;
    font-family: Verdana, sans-serif;
    font-size: 14px;
    font-weight: normal;
    margin: .25em 0;
}

.body-size-grid p {
    background-image: url('../img/grid.gif');
    font-size: 70px;
    line-height: 1;
    margin: 0;
    padding-bottom: 16px;
}

.grayscale td {
    font-size: 18px;
    vertical-align: top;
}

.grayscale-white,
.grayscale-black {
    border-collapse: collapse;
    border-spacing: 0;
}

.grayscale-white tr td,
.grayscale-black tr td {
    padding: .5rem;
}

.grayscale-white tr td:first-child {
    padding-left: 0;
}

.grayscale-black tr td:nth-child(2) {
    padding-right: 0;
    text-align: right;
}

.grayscale-black tr td:first-child {
    background-color: #000;
}

.font-size td {
    vertical-align: top;
}

.font-size p:first-child {
    margin: 0;
    text-transform: uppercase;
    vertical-align: top;
}

.font-size p:nth-child(2) {
    margin-top: .25em;
}

@media (min-width: 960px) {
    [role="main"] {
       padding: 4vw; 
    }
    
    .text-sample {
        float: left;
        width: 60%;
    }
    
    .characters {
        box-sizing: border-box;
        float: left;
        padding-left: 4rem;
        width: 40%;  
    }
    
    .body-size {
        float: left;
        width: 100%;
    }
    
    .body-size-grid {
        margin-bottom: 0;
        width: 20%;
    }
    
    .grayscale,
    .font-size {
        margin-top: 4rem;
    }
    
    .grayscale {
        float: left;
    }
    
    .grayscale-white,
    .grayscale-black {
        float: left;
        width: 50%;
    }
    
    .font-size {
        float: left;
        width: 100%;
    }
}

@media (min-width: 1280px) {
    [role="main"] {
       padding: 8vw; 
    }
}

.highlight,
.highlight2 {
    background-color: rgba(194, 240, 177, 0.35);
}

.highlight-off .highlight, 
.highlight2-off .highlight2 {
    background-color: transparent;
}

#viewport, #element, #element2 {
    background-color: rgb(194, 240, 177);
    color: #000;
    font-family: 'Courier New', Courier, monospace;
    padding: 3px 5px 2px 5px;
}

#viewport {
    border-bottom-left-radius: 8px;
    font-size: 1.25em;
    right: 0;
    text-align: center;
    top: 0;
    position: fixed;
}

#element, #element2 {
    font-size: 1em;
}

.text-sample h2 {
    margin-bottom: 1.5rem;
}

.text-sample tr:nth-child(2)  td {
    padding-top: 1rem;
}

#h2, #h3 {
    display: none;
}

#toggle,
#toggle2 {
    background-color: rgb(194, 240, 177);
    border: none;
    color: #000;
    float: right;
    font-family: 'Courier New', Courier, monospace;
    font-weight: normal;
    transition: all 300ms ease-in-out;
}

#toggle:hover,
#toggle2:hover {
    cursor: pointer;
    font-weight: bold;
    transition: all 300ms ease-in-out;
}