*   {
    padding:0px;
    margin:0px;
}
body {
    display: grid;
    grid-template-rows: repeat(16, 50px);
    grid-template-columns: repeat(12, 1fr);
    color:white;
    background-image: url("images/bg.png");
    background-color: #cccccc;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    font-style: italic;
}
header{
    background-color: #44321e;
    grid-row:1/3;
    grid-column: 1/13;
    display: grid;
    grid-template-columns: repeat(6,1fr);
    grid-template-rows: 1fr;
    font-family: 'Open Sans', sans-serif;
    font-style: italic;
    border-bottom-color:rgb(44, 29, 19);
    border-bottom-style: solid;
    border-bottom-width: 2px;
}
.head   {
    padding:30px;
    font-size: 30px;
    font-family: 'Catamaran', sans-serif;
    grid-column:1/7;
    grid-row:1;
}
#container1  {
    grid-row: 5/10;
    grid-column: 2/6;
    display: grid;
    grid-template-rows: repeat(10, 1fr) ;
    grid-template-columns: repeat(12, 1fr);
}
#container2 {
    grid-row: 5/ 10;
    grid-column: 8/ 12;
    display:flex;
    justify-content: space-evenly;
    color:black;
}
.container{
    background-color: #543c2a;
    border-color: #765a45 #3f2c1d #3f2c1d #755946;
    border-top-color: rgb(118, 90, 69);
    border-top-style: solid;
    border-top-width: 2px;
    border-right-color: rgb(63, 44, 29);
    border-right-style: solid;
    border-right-width: 2px;
    border-bottom-color: rgb(63, 44, 29);
    border-bottom-style: solid;
    border-bottom-width: 2px;
    border-left-color: rgb(117, 89, 70);
    border-left-style: solid;
    border-left-width: 2px;
}
.chance {
    background-color: #c5b384;
    color:black;
    width:175px;
    height:64px;
    margin:20px;
    padding:10px;
}
.d-chances  {
    display: inline;
}
.chance-list{
    margin-top:14px;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: rgb(207, 188, 144);
    border-top-color: #c5b384;
    border-top-style: solid;
    border-top-width: 2px;
    border-left-color: #c5b384;
    border-left-style: solid;
    border-left-width: 2px;
    border-right-color:rgb(117, 89, 70);;
    border-right-style: solid;
    border-right-width: 2px;
    border-bottom-color: rgb(117, 89, 70);;
    border-bottom-style: solid;
    border-bottom-width: 2px;
    border-radius:3px;
    display:flex;
    text-decoration: none;
    list-style: none;
    flex-direction: column;

}
.list {
    display:flex;
    justify-content: space-around;
    padding-top :6px;
    text-decoration: underline;
    width: 211px;
    height:29px;
    font-size: 16px;
    border-left-color: #F7E3B8;
    border-bottom: 1px solid;
    border-bottom-color: #E5D8A2;
    background-color: #D8C798;
}
.in1{
    grid-row:3;
    grid-column: 3/6;

}
.O-input {
    border-radius:8px;
    outline: none;
    text-align: center;
    text-decoration: none;
    width: 90px;
    height: 20px;
    border:1px solid ;
}
.in2 {
    grid-row:3;
    grid-column: 8/11;
    text-align: right;
}
.in {
    grid-row: 3;
    grid-column: 6/8;
    text-align: center;
}
.random {
    grid-row:6/8;
    grid-column:3/8;
    width: 90px;
    height: 39px;
    cursor: pointer;
    background-color: #428619;
    border-color: #85A96D #305E13 #305E13 #85A96D;
    color: #fff;
    border-radius:4px;
    border:3px solid;
    border-color: #85A96D #305E13 #305E13 #85A96D;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    font-style: italic;
}
.ninjamanager   {
    grid-row: 1;
    width: 150px;
    height: 25px;
    cursor: pointer;
    background-color: #428619;
    border-color: #85A96D #305E13 #305E13 #85A96D;
    color: #fff;
    border-radius:4px;
    border:3px solid;
    border-color: #85A96D #305E13 #305E13 #85A96D;
    margin: 30px;
    padding-top:10px;
    text-align:center;
    text-decoration: none;
}
#ninfoot{
    display:none;
}
.a {
    grid-row:6;
    grid-column:9/11;
    text-align: center;
    display: none;
    padding-top: 10px;
}
.victory {
    grid-row: 9/11;
    grid-column: 5/9;
    text-align: center;
    display:none;
}
.tries  {
    grid-row: 8;
    grid-column: 3/5;
}
.foot   {
    grid-row: 16;
    grid-column: 1/100;
    background-color: #44321e;
    display:none;
}
@media screen and (max-width: 1191px){
    .chance{
        height: 85px;
    }
}
@media screen and (max-width: 1116px){
    .chance{
        height: 100px;
    }
}
@media screen and (max-width: 1106px){
    .chance{
        height: 120px;
    }
}
@media screen and (max-width: 1074px){
    .chance{
        height: 140px;
    }
}
@media screen and (max-width: 1040px){
    #container1  {
        grid-row: 5/10;
        grid-column: 2/12;
        display: grid;
        grid-template-rows: repeat(10, 1fr) ;
        grid-template-columns: repeat(12, 1fr);
    }
    #container2 {
        grid-row:11/16;
        grid-column: 2/12;
    }
    .chance {
        height:64px;
    }
}
@media screen and (max-width: 629px){
    .foot{
        display: block;
        display:flex;
        grid-row: 17;
        
    }
    #ninhead{
        display: none;
    }
    #ninfoot{
        display:block;
        margin: 5px;
        margin-left:20px;
    }
    body {
        grid-template-rows: repeat(17, 50px);
    }
}
@media screen and (max-width: 476px){
    .chance {
        height:84px
    }
}
@media screen and (max-width: 446px){
    .chance {
        height:120px
    }
}
@media screen and (max-width: 430px){
    .chance {
        height:140px
    }
}
@media screen and (max-width: 430px){
    .head {
        font-size:25px;
    }
    .chance {
        height:80px
    }
    .list{
        width:150px;
    }
}
@media screen and (max-width: 403px){
    .chance {
        height:100px
    }
}
@media screen and (max-width: 369px){
    .chance {
        height:140px;
    }
    .in{
        display: none;
    }
}
@media screen and (max-width: 355px){
    .head{
        font-size: 20px;
    }
}
@media screen and (max-width: 342px){
    .chance{
        height: 180px;
    }
}

