/* I always reset all the html elements */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: sans-serif;
    min-height: 100vh;
    background: #efefef;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
    height: 100%;
}

/*body.votingpage {
    background: #444;
    color: #fff;
}*/

div#logobar {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    border-top: 55px solid #C1272D;
}

div#logobar img {
    margin-top: -50px;
}

form, .page{
    max-width: 90%;
    border:  thin solid #e4e4e4;
    padding: 20px 40px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
}

form h2, .page h2{
    font-size: 32px;
    line-height: 52px;
    color: #555;
    margin-bottom: 5px;
}

form h4, .page h4{
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: thin solid #e4e4e4;
    line-height: 26px;
}

form h4 span{
    color: #af0c0c;
    font-weight: normal;
}

form > div{
    margin-bottom: 20px;
}

form .grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 50px;
}

form label{
    display: block;
    margin-bottom: 10px;
    padding-left: 5px;
}

form input{
    display: block;
    width:  100%;
    padding: 10px;  
    margin-bottom: 10px;
    font-size: 16px;
    border:  thin solid #e4e4e4;
    margin-bottom: 30px;
    border-radius: 5px;
}

form input:focus
{
    outline: none;
}

form button{
    background: #32749a;
    color: white;
    border: none;   
    padding: 10px 30px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 10px;    
}

form button:active{
    background-color: green;
}

form p{
    margin-top: 15px;
}

form p a{
    display: inline-block;
    /*margin-left: 10px;*/
    color: #006dbc;
    text-decoration: none;
}

form p a:hover{
    text-decoration: underline;
}

.page a{
     display: inline-block;
     color: #006dbc;
     margin-top: 20px;  
 }

a.confirm-deletion{
    text-decoration: none;
    color: red;
    margin-left: 10px;
}

.error{
    margin-top: 30px;
    color: #af0c0c;
    line-height: 26px;
}

.success{
    margin-top: 30px;
    color: green;
}

div#wrapper {
    box-sizing: border-box;
    padding: 10px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

p.label {
    margin: 40px 0 5px;
    text-transform: uppercase;
    font-size: 14px;
    color: #222;
    letter-spacing: 1px
}

p.input {
    margin: 0;
}

input {
    padding: 10px;
    min-width: 200px;
    text-align: center;
    font-size: 18px;
    color: #222;
    border-radius: 5px;
    border: 2px solid #222;
}

button {
    padding: 10px 20px;
    background: #d81e1e;
    border: 1px solid #fff;
    color: #fff;
    font-size: 18px;
    border-radius: 5px;
}

#votingform {
    display: none;
}

#votingform h2 {
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0;
    margin: 0 0 30px;
}

div#reorgbeers {
    display: none;
}

#reorgbeers .beerentry,
#reorgbeers .beerresultsheader {
    display: flex;
    flex: 1;
    width: 100%;
    padding: 10px;
    margin: 10px;
    gap: 20px;
}

#reorgbeers .beerentry:nth-of-type(even) {
    background: #f3f3f3;
}

#reorgbeers .beername {
    flex: 1;
    max-width: 250px;
    text-align: left;
}

#reorgbeers .brewers {flex: 1;max-width: 250px;text-align: left;}

#reorgbeers .beerstyle {
    flex: 0.5;
    max-width: 200px;
}

#reorgbeers .rank {
    flex: 1;
    max-width: 50px;
}

h1 {
    font-size: 24px;
    line-height: 24px;
}

h1 span {
    display: block;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 100;
    margin-top: 5px;
}

p.datelocation {
    color: #222;
    font-size: 16px;
    font-weight: 400;
}

h2 {
    margin: 60px auto 10px;
    border-bottom: 1px solid #888;
    padding-bottom: 5px;
    text-transform: uppercase;
    font-size: 18px;
    letter-spacing: 2px;
}

h3 {
    font-size: 16px;
    font-weight: 400;
    color: #bbb;
}

p.rosterlinkpara {
    margin-top: 20px;
}
#errormessages, #codeerrormessages {
    visibility: hidden;
    max-width: 300px;
}
.erroronbeer {
    max-width: 216px;
}
#errormessages, #codeerrormessages, .erroronbeer {
    margin: 0 auto;
    display: flex;
    background: #fbe8eb;
    border: 1px solid #fd7575;
    align-items: center;
    border-radius: 10px;
}

#errormessages.visible, #codeerrormessages.visible {
    visibility: visible;
}

#errormessages.done, #codeerrormessages.done {
    display: none;
}

div.exclamationpoint {
    background: #f94f4f;
    padding: 10px;
    max-width: 50px;
    align-self: stretch;
    display: flex;
    align-items: center;
    border-radius: 8px 0 0 8px;
}

.errormessage {
    padding: 15px;
    color: #222222;
    text-align: left;
}

/*div#errormessages {
    margin: 20px 20px;
    font-size: 16px;
    font-style: italic;
    color: #c1272d;
    font-weight: 600;
}*/

/*.beerinfo p.erroronbeer {
    background: #f13838;
    margin: 10px auto;
    padding: 5px;
    border: 1px solid #8a0404;
    color: #fff;
    text-transform: none;
}*/

.beerinfo p {
    padding: 5px;
    max-width: 350px;
    margin: 10px auto;
    color: #222;
    font-size: 12px;
}

.beerinfo p .beername {
    font-weight: bold;
    font-size: 16px;
    text-transform: none;
    display: block;
}

button#submitvotes {
    margin: 20px 0;
    font-size: 24px;
}

#thanks {
    display: none;
    margin: 40px 0;
}

#thanks h3 {
    font-size: 24px;
    color: #222;
    font-weight: 600;
}

#thanks p {
    max-width: 350px;
    margin: 0 auto;
    line-height: 24px;
    font-size: 18px;
}

input#code {
    font-size: 24px;
}

input.beernumber {
    font-size: 24px;
}

/* Results Page */




/* Judges Scores Page */


div#hiddencontent {
    display: none;
}

#judgesscores,
#bestinshowform {
    display: none;
}

div#judgesscores,
#reorgbeers {
    margin: 0 auto;
}


#judgesscores h3,
#reorgbeers h3 {
    margin: 60px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #888;
    font-size: 18px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

a.rosterlink {
    font-size: 22px;
    color: #c1272d;
    margin-top: 20px;
}

#entercode p.label, #jentercode p.label {
    color: #222;
    margin-top: 20px;
}

form#entercode,
form#jentercode {
    max-width: 300px;
    margin: 30px auto;
    box-shadow: unset;
    border-radius: 20px;
    background: #fff;
    border: 2px solid #222222;
    color: #222222;
    padding: 10px 20px;
}

form#entercode.done,
form#jentercode.done {
    background: #eee;
    border: 2px solid #bbb;
}

#entercode button,
#jentercode button {
    background: #C1272D;
}

#votingform {
    box-shadow: none;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #fff;
    border: 2px solid #222;
    max-width: 300px;
}

#votingform input {
    margin-bottom: 10px;
}

#votingform p.label {
    margin-top: 30px;
}

.votingpage .code h4 {
    font-size: 28px;
    margin-top: 40px;
}