/* =============================================================================
  RESET, BOX SIZING, & CLEARFIX
============================================================================= */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, small, img {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
}

*,
*::before,
*::after {
  -moz-box-sizing: border-box;
       box-sizing: border-box;
}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

/* =============================================================================
  BASE
============================================================================= */
body,
html {

    background-color:#55472d;
  margin: 0px;
 padding: 0px;
    margin: 0;
    width: 100%;

    bottom: 0px;
    background-repeat: no-repeat;
    background-image: url('../img/A1_ozadje.jpg');
    background-position: top center;
}

body {
  color: #0b0b0c;
  font-family: Arial;
  font-size: 18px;

}


a {
  text-decoration: none;
  color:#0094da; 
  font-family:Arial;
  cursor:pointer;
}

a:hover { text-decoration:underline; color:#166888; }


img {
  display: block;
  /*max-width: 100%;
  height: auto;*/
  height: 100%;
  width: 100%;
}

/* =============================================================================
  LAYOUT
============================================================================= */
/* wrapper */
.wrapper {
  margin: 0 auto;
  width: 100%;
  min-width: 480px;
}

/* container */
.container {
  margin: 0 auto;
  width: 100%;
  max-width: 980px;
  /*border:solid 1px lightgray;
  padding:20px;*/
  padding:10px 20px 40px 20px;
    background-color: white;

position: relative;
    z-index: 999;
}

/* header */
.header {
  padding: 10px 10px 10px 40px;
}

.header__logo {
  float: left;
  margin-left: -30px;
  width: 30px;
  height: 30px;
}

.header__title {
  float: right;
  color: #fff;
  font-size: 18px;
  line-height: 30px;
}

/* content */
.content {
  /*padding: 20px;*/

}

/* footer */
.footer {
  padding: 20px;
  font-size: 14px;
}

.footer__left,
.footer__right {
  width: 50%;
}

.footer__left {
  float: left;
}

.footer__right {
  float: right;
  text-align: right;
}

.footer__title {
  margin-bottom: 10px;
  color: #166888;
}

.footer__social {
  margin-bottom: 10px;
  color: #fff;
}

.footer__social--heading {
  margin-bottom: 5px;
}

.footer__copyright {
  color: #fff;
}
.footer__copyright a {
  color: #166888;
}

/* =============================================================================
  MEMORY GAME (mg)
============================================================================= */
/**
 * Game container
 *
 * This is the overall container for the game. Different things get addead and
 * removed from this container depending on the game state.
 */
.mg {
  /* blank */
}

/**
 * Game meta
 *
 * The game meta is the section that displays the level and moves. It's appended
 * to the game container at the start, and shows the level the user selected
 * and the number of moves the user has played.
 */
.mg__meta {
  margin-bottom: 10px;
  color: #0094da;
}

.mg__meta--item {
  display: inline-block;
}

.mg__meta--left {
  float: left;
}

.mg__meta--right {
  float: right;
}

.mg__meta--level {
  margin-right: 20px;
}

/**
 * Game start screen
 *
 * The game start screen shows the "welcome" message and also a list for the
 * user to choose a level. It's appended to the game container at the start,
 * and once the user selects a level, it is removed from the container
 */
.mg__start-screen {
  text-align: center;
  padding: 80px 20px;
}

.mg__start-screen--heading {
  margin-bottom: 10px;
  color: #282a2f;
  font-size: 30px;
}

.mg__start-screen--sub-heading {
  font-size: 24px;
  margin-bottom: 10px;
  color: #28aadc;
}
.mg__start-screen--sub-heading::before, .mg__start-screen--sub-heading::after {
  margin: 0 5px;
  content: "-";
}

.mg__start-screen--text {
  margin-bottom: 20px;
}

.mg__start-screen--level-select {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mg__start-screen--level-select span {
  color: #ee4046;
  font-size: 18px;
  cursor: pointer;
}
.mg__start-screen--level-select span:hover {
  color: #d50016;
}

/**
 * Game wrapper
 *
 * The game wrapper is where the actual game resides. Inside here, all the
 * memory tiles get arranged and ready for game play.
 */
.mg__wrapper {
  margin: 0 auto;
  width: 100%;
}

.mg__contents {
  position: relative;
  padding-bottom: 55%; /*seba*/
  margin-left: -5px;
  margin-right: -5px;
}

/**
 * Game tiles
 *
 * The game tiles are the tiles that are laid down on the memory game board.
 * These tiles are the ones that the user clicks on to flip and reveal some
 * images. The level the user selects determines the position and size of
 * the tiles.
 */
.mg__tile {
  position: absolute;
  padding: 5px;
}

/* game__level-1 styles */
.mg__level-1 .mg__tile {
  width: 25%;
  height: 50%;
}

.mg__level-1 .mg__tile-1 {
  top: 0%;
  left: 0%;
}
.mg__level-1 .mg__tile-2 {
  top: 0%;
  left: 25%;
}
.mg__level-1 .mg__tile-3 {
  top: 0%;
  left: 50%;
}
.mg__level-1 .mg__tile-4 {
  top: 0%;
  left: 75%;
}
.mg__level-1 .mg__tile-5 {
  top: 50%;
  left: 0%;
}
.mg__level-1 .mg__tile-6 {
  top: 50%;
  left: 25%;
}
.mg__level-1 .mg__tile-7 {
  top: 50%;
  left: 50%;
}
.mg__level-1 .mg__tile-8 {
  top: 50%;
  left: 75%;
}

/* game__level-2 styles */
.mg__level-2 .mg__tile {
  width: 16.66667%;
  height: 33.33333%;
}

.mg__level-2 .mg__tile-1 {
  top: 0%;
  left: 0%;
}
.mg__level-2 .mg__tile-2 {
  top: 0%;
  left: 16.66667%;
}
.mg__level-2 .mg__tile-3 {
  top: 0%;
  left: 33.33333%;
}
.mg__level-2 .mg__tile-4 {
  top: 0%;
  left: 50%;
}
.mg__level-2 .mg__tile-5 {
  top: 0%;
  left: 66.66667%;
}
.mg__level-2 .mg__tile-6 {
  top: 0%;
  left: 83.33333%;
}
.mg__level-2 .mg__tile-7 {
  top: 33.33333%;
  left: 0%;
}
.mg__level-2 .mg__tile-8 {
  top: 33.33333%;
  left: 16.66667%;
}
.mg__level-2 .mg__tile-9 {
  top: 33.33333%;
  left: 33.33333%;
}
.mg__level-2 .mg__tile-10 {
  top: 33.33333%;
  left: 50%;
}
.mg__level-2 .mg__tile-11 {
  top: 33.33333%;
  left: 66.66667%;
}
.mg__level-2 .mg__tile-12 {
  top: 33.33333%;
  left: 83.33333%;
}
.mg__level-2 .mg__tile-13 {
  top: 66.66667%;
  left: 0%;
}
.mg__level-2 .mg__tile-14 {
  top: 66.66667%;
  left: 16.66667%;
}
.mg__level-2 .mg__tile-15 {
  top: 66.66667%;
  left: 33.33333%;
}
.mg__level-2 .mg__tile-16 {
  top: 66.66667%;
  left: 50%;
}
.mg__level-2 .mg__tile-17 {
  top: 66.66667%;
  left: 66.66667%;
}
.mg__level-2 .mg__tile-18 {
  top: 66.66667%;
  left: 83.33333%;
}

/* game__level-3 styles */
.mg__level-3 .mg__tile {
  width: 12.5%;
  height: 25%;
}

.mg__level-3 .mg__tile-1 {
  top: 0%;
  left: 0%;
}
.mg__level-3 .mg__tile-2 {
  top: 0%;
  left: 12.5%;
}
.mg__level-3 .mg__tile-3 {
  top: 0%;
  left: 25%;
}
.mg__level-3 .mg__tile-4 {
  top: 0%;
  left: 37.5%;
}
.mg__level-3 .mg__tile-5 {
  top: 0%;
  left: 50%;
}
.mg__level-3 .mg__tile-6 {
  top: 0%;
  left: 62.5%;
}
.mg__level-3 .mg__tile-7 {
  top: 0%;
  left: 75%;
}
.mg__level-3 .mg__tile-8 {
  top: 0%;
  left: 87.5%;
}
.mg__level-3 .mg__tile-9 {
  top: 25%;
  left: 0%;
}
.mg__level-3 .mg__tile-10 {
  top: 25%;
  left: 12.5%;
}
.mg__level-3 .mg__tile-11 {
  top: 25%;
  left: 25%;
}
.mg__level-3 .mg__tile-12 {
  top: 25%;
  left: 37.5%;
}
.mg__level-3 .mg__tile-13 {
  top: 25%;
  left: 50%;
}
.mg__level-3 .mg__tile-14 {
  top: 25%;
  left: 62.5%;
}
.mg__level-3 .mg__tile-15 {
  top: 25%;
  left: 75%;
}
.mg__level-3 .mg__tile-16 {
  top: 25%;
  left: 87.5%;
}
.mg__level-3 .mg__tile-17 {
  top: 50%;
  left: 0%;
}
.mg__level-3 .mg__tile-18 {
  top: 50%;
  left: 12.5%;
}
.mg__level-3 .mg__tile-19 {
  top: 50%;
  left: 25%;
}
.mg__level-3 .mg__tile-20 {
  top: 50%;
  left: 37.5%;
}
.mg__level-3 .mg__tile-21 {
  top: 50%;
  left: 50%;
}
.mg__level-3 .mg__tile-22 {
  top: 50%;
  left: 62.5%;
}
.mg__level-3 .mg__tile-23 {
  top: 50%;
  left: 75%;
}
.mg__level-3 .mg__tile-24 {
  top: 50%;
  left: 87.5%;
}
.mg__level-3 .mg__tile-25 {
  top: 75%;
  left: 0%;
}
.mg__level-3 .mg__tile-26 {
  top: 75%;
  left: 12.5%;
}
.mg__level-3 .mg__tile-27 {
  top: 75%;
  left: 25%;
}
.mg__level-3 .mg__tile-28 {
  top: 75%;
  left: 37.5%;
}
.mg__level-3 .mg__tile-29 {
  top: 75%;
  left: 50%;
}
.mg__level-3 .mg__tile-30 {
  top: 75%;
  left: 62.5%;
}
.mg__level-3 .mg__tile-31 {
  top: 75%;
  left: 75%;
}
.mg__level-3 .mg__tile-32 {
  top: 75%;
  left: 87.5%;
}










/* game__level-4 styles */
.mg__level-4 .mg__tile {
  width: 20%;
  height: 25%;
   /* width:185px;
  height:124px;*/
}

.mg__level-4 .mg__tile-1 {
  top: 0%;
  left: 0%;
}
.mg__level-4 .mg__tile-2 {
  top: 0%;
  left: 20%;
}
.mg__level-4 .mg__tile-3 {
  top: 0%;
  left: 40%;
}
.mg__level-4 .mg__tile-4 {
  top: 0%;
  left: 60%;
}
.mg__level-4 .mg__tile-5 {
  top: 0%;
  left: 80%;
}


.mg__level-4 .mg__tile-6 {
  top: 25%;
  left: 0%;
}
.mg__level-4 .mg__tile-7 {
  top: 25%;
  left: 20%;
}
.mg__level-4 .mg__tile-8 {
  top: 25%;
  left: 40%;
}
.mg__level-4 .mg__tile-9 {
  top: 25%;
  left: 60%;
}
.mg__level-4 .mg__tile-10 {
  top: 25%;
  left: 80%;
}




.mg__level-4 .mg__tile-11 {
  top: 50%;
  left: 0%;
}
.mg__level-4 .mg__tile-12 {
  top: 50%;
  left: 20%;
}
.mg__level-4 .mg__tile-13 {
  top: 50%;
  left: 40%;
}
.mg__level-4 .mg__tile-14 {
  top: 50%;
  left: 60%;
}
.mg__level-4 .mg__tile-15 {
  top: 50%;
  left: 80%;
}



.mg__level-4 .mg__tile-16 {
  top: 75%;
  left: 0%;
}
.mg__level-4 .mg__tile-17 {
  top: 75%;
  left: 20%;
}
.mg__level-4 .mg__tile-18 {
  top: 75%;
  left: 40%;
}
.mg__level-4 .mg__tile-19 {
  top: 75%;
  left: 60%;
}
.mg__level-4 .mg__tile-20 {
  top: 75%;
  left: 80%;
}




/* game__level-5 styles */
.mg__level-5 .mg__tile {
  width: 20%;
  height: 25%;
   /* width:185px;
  height:124px;*/
}

.mg__level-5 .mg__tile-1 {
  top: 0%;
  left: 0%;
}
.mg__level-5 .mg__tile-2 {
  top: 0%;
  left: 20%;
}
.mg__level-5 .mg__tile-3 {
  top: 0%;
  left: 40%;
}
.mg__level-5 .mg__tile-4 {
  top: 0%;
  left: 60%;
}
.mg__level-5 .mg__tile-5 {
  top: 0%;
  left: 80%;
}


.mg__level-5 .mg__tile-6 {
  top: 25%;
  left: 0%;
}
.mg__level-5 .mg__tile-7 {
  top: 25%;
  left: 20%;
}
.mg__level-5 .mg__tile-8 {
  top: 25%;
  left: 40%;
}
.mg__level-5 .mg__tile-9 {
  top: 25%;
  left: 60%;
}
.mg__level-5 .mg__tile-10 {
  top: 25%;
  left: 80%;
}




.mg__level-5 .mg__tile-11 {
  top: 50%;
  left: 0%;
}
.mg__level-5 .mg__tile-12 {
  top: 50%;
  left: 20%;
}
.mg__level-5 .mg__tile-13 {
  top: 50%;
  left: 40%;
}
.mg__level-5 .mg__tile-14 {
  top: 50%;
  left: 60%;
}
.mg__level-5 .mg__tile-15 {
  top: 50%;
  left: 80%;
}



.mg__level-5 .mg__tile-16 {
  top: 75%;
  left: 0%;
}
.mg__level-5 .mg__tile-17 {
  top: 75%;
  left: 20%;
}
.mg__level-5 .mg__tile-18 {
  top: 75%;
  left: 40%;
}
.mg__level-5 .mg__tile-19 {
  top: 75%;
  left: 60%;
}
.mg__level-5 .mg__tile-20 {
  top: 75%;
  left: 80%;
}

.mg__level-5 .mg__tile-21 {
  top: 100%;
  left: 0%;
}
.mg__level-5 .mg__tile-22 {
  top: 100%;
  left: 20%;
}
.mg__level-5 .mg__tile-23 {
  top: 100%;
  left: 40%;
}
.mg__level-5 .mg__tile-24 {
  top: 100%;
  left: 60%;
}
.mg__level-5 .mg__tile-25 {
  top: 100%;
  left: 80%;
}

.mg__level-5 .mg__tile-26 {
  top: 125%;
  left: 0%;
}
.mg__level-5 .mg__tile-27 {
  top: 125%;
  left: 20%;
}
.mg__level-5 .mg__tile-28 {
  top: 125%;
  left: 40%;
}
.mg__level-5 .mg__tile-29 {
  top: 125%;
  left: 60%;
}
.mg__level-5 .mg__tile-30 {
  top: 125%;
  left: 80%;
}





/**
 * The tile inside
 *
 * The "tile inner" is the part of the tile that serves as the card. Inside
 * this part, there's an outside and inside part. The outside of the card
 * is the part that has the logo or the pattern or whatever...basically the
 * part that doesn't show the content to be matched. The inside part has the
 * actual images / info to be matched.
 */
.mg__tile--inner {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;

}

.mg__tile--outside,
.mg__tile--inside {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  -webkit-transition: -webkit-transform 0.3s, background 0.3s;
          transition: transform 0.3s, background 0.3s;

   border: solid 1px #787a80;
}

.mg__tile--outside {
  /*background: url("../img/default/logo-bw.png") 50% 50% no-repeat;*/
  /*background-color: #dcdee1;
  box-shadow: 0 0 0 1px #787a80;*/
}

.mg__tile--inside {
  /*background-color: #f8fafc;*/
  /*box-shadow: 0 0 0 1px #787a80;*/
  -webkit-transform: rotateY(-180deg);
          transform: rotateY(-180deg);
}

/* some transforms for flipped cards */
.mg__tile--inner.flipped .mg__tile--outside {
  -webkit-transform: rotateY(-180deg);
          transform: rotateY(-180deg);
}

.mg__tile--inner.flipped .mg__tile--inside {
  -webkit-transform: rotateY(0);
          transform: rotateY(0);
}

/* some transitions for correct guesses - only needs to happen on card inside */
.mg__tile--inner.flipped.correct .mg__tile--inside {
  background-color: #ffffdc;
}

/**
 * Game message
 *
 * The game message area is an area to display game messages. It's used in the
 * default set up where no callback is set in the JS. If a callback is set up,
 * then this message area likely won't display. Unless you decide to display it
 * in your own custom callback though!
 */
.mg__onend {
  padding: 80px 20px;
  text-align: center;
}

.mg__onend--heading {
  margin-bottom: 10px;
  color: #28aadc;
  font-size: 30px;
}

.mg__onend--message {
  margin-bottom: 10px;
}

/**
 * Game buttons
 *
 * A simple helper class for game buttons. Edit at your will.
 */
.mg__button {
  margin: 0;
  display: inline-block;
  padding: 10px;
  color: #fff;
  font-family: Arial;
  font-size: 18px;
  appearance: none;
  background: #ee4046;
  border: none;
  border-radius: 3px;
  box-shadow: none;
  cursor: pointer;
  color:white !important;
  text-decoration:none !important;
}

.mg__button:hover { text-decoration:none !important; color:white !important; }

/* =============================================================================
  SOME SOCIAL STYLES
============================================================================= */
.fb-like,
.twitter-share-button {
  display: inline-block;
  vertical-align: middle;
}

.fb-like {
  margin-right: 10px;
}

/* =============================================================================
  FUSION ADS
============================================================================= */
/**
 * Fusion ads styles
 *
 * These are all the styles for my fusion ads. I'd reccommend deleting them if
 * you are going to use this in your own app, because they are useless and you
 * shouldn't be displaying my ad on your app/site in the first place. Thanks!
 */
#fusionads {
  display: inline-block;
  padding: 5px;
  background: white;
  font-size: 11px;
  line-height: 1.2;
  text-align: left;
}

#fusionads .fusion-wrap {
  display: block;
  margin: 0 0 5px 0;
  width: 130px;
}

#fusionads a.fusion-text {
  display: block;
  color: #787a80;
}

#fusionads a.fusion-img {
  display: block;
  margin-bottom: 5px;
  width: 130px;
  height: 100px;
  background-color: #fff;
}

#fusionads a.fusion-img img {
  display: block;
  margin: 0 0 10px 0;
}

#fusionads a.fusion-poweredby {
  color: #28aadc;
}


/*---------------------*/


.boot-loader img { position:fixed; top:50%; left:50%; margin-left:-16px; margin-top:-16px; height:64px; width:64px; z-index:99999; }

h1 { font-weight: bold; color:#0094da;  font-size:38px; font-family: Arial; }

h2 { font-weight: bold; padding:10px 0px; color:#0094da;  font-size:28px; font-family: Arial; }


h3 { padding:10px 0px; color:#0094da;  font-size:22px; font-family: Arial; }

h4 { margin-top: 15px; font-weight:bold; }

p { padding:10px 0px; }


#footer { text-align:center; }

input {     font-size: 18px;
    font-family: Arial;
    padding: 2px 5px;color:#0b0b0c; }

hr { line-height:1px; border-top:solid 1px #787a80; border-left:none; border-bottom:none; border-right:none; }

.backgroundhref {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    display: block;
    z-index:1;
}

.cbValidation .cbv2 { font-size:11px;  }

.validator, #DetailsView1_vsPodatki { font-size:16px; }

.fb-div1, .fb-div2 { float:left; }
.fb-div1 { padding-bottom:10px; }

.isMobile1 { display:none;  clear: both;
    text-align: center;
    float: left;
    width: 100%; }
.isMobile2 { margin-top: 30%; clear:both; }

@media only screen and (max-width: 480px) {
    p { font-size: 16px !important;  }
    h1 { font-size:26px; }
    h2 { font-size: 20px !important; }
    h3 { font-size: 18px !important;}
    ul { margin-top: 0px;  margin-bottom: 0px; }
    ul li, span { font-size: 16px !important; }
    #box1, #box2, #box3 { width:100% !important; float: none !important; text-align: center; }
    #box1 img, #box3 img { width:auto !important; }
    #box1 img { margin-top: 0px !important; }
    #box1 a, #box2 a, #box3 a { text-align:center; display: inline-block; }
    .mg__button { font-size:12px !important; }
    #DetailsView1 { font-size:12px; }
    #DetailsView1 input[type=text] { font-size:16px !important; width: 100% !important; }
    #DetailsView1 .tdHeader { width:110px !important; }
    .cbValidation .cbv2 { font-size:14px;  }

    .isMobile1 { display:inline !important; }
    .isMobile2 {     float: left;
    width: 100%; margin-top: 5%; }
}



