/* Fontit */

.im-fell-great-primer-sc-regular {
  font-family: "IM Fell Great Primer SC", serif;
  font-weight: 400;
  font-style: normal;
}

.mrs-saint-delafield-regular {
  font-family: "Mrs Saint Delafield", cursive;
  font-weight: 400;
  font-style: normal;
}




/* Header osio */

body {
    background-color:rgb(244, 240, 232, 50%);
   color: #3A3123;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

*, *::before, *::after {
  box-sizing: border-box;
}

h1 {
    font-family: "IM Fell Great Primer SC";
    font-weight: normal;
    text-align: center;
    margin-top: 100px;
    margin-bottom: -30px;
}

h2 {
    font-family: "Mrs Saint Delafield";
    font-weight: normal;
    font-size: 100px;
    text-align: center;
}

.aikataulu {
    font-family: "IM Fell Great Primer SC";
    text-align: center;
    line-height: 30px;
    margin-bottom: -40px;
}




/* Countdown */


#countdown {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 200px;
  }
  
  .time-box {
    background-color: rgb(244, 240, 232, 50%);
    padding: 20px 24px;
    text-align: center;
    min-width: 80px;
  }
  
  .time-box span {
    font-family: "IM Fell Great Primer SC";
    font-size: 36px;
    display: block;
  }
  
  .label {
    font-size: 14px;
    margin-top: 4px;
    text-transform: lowercase;
    font-family: "IM Fell Great Primer SC";
  }




  /* Kysymyksiä ja vastauksia osio */

  h3 {
    text-align: center;
    font-family: "IM Fell Great Primer SC";
    font-weight: normal;
    font-size: 30px;
    margin-top: 150px;
  }

  .kysymys {
    font-family: "Mrs Saint Delafield";
    font-size: 40px;
    margin-left: 20px;
    display: inline;
    height: 100px;
    flex: 1;
    text-align: left;
    align-items: center;
  }

  .vastaus {
    font-family: "IM Fell Great Primer SC";
    text-align: right;
    display: inline;
    margin-left: 60px;
    height: 100px;
    flex: 1;
    text-align: left;
    align-items: center;
    line-height: 30px;
  }

  .ukk {
    text-align: center;
  }
  
  .con {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 40px auto;
    height: 100px;
    align-items: center;
  }

  .vika {
    margin-bottom: 100px;
  }




  /* Sivun leijuva kuva */

  .leiju2 {
    display: none;
  }

  .leiju {
    position: absolute;
    height: 1000px;
    margin-top: -70px;
  }

  .logo {
    display: flex;
    justify-content: center;
    height: 100px;
    margin-bottom: 70px;
  }




  /* Puhelimen näytön näkymä */

  @media (max-width: 768px) {

    /* leijuva kuva */
        .leiju2 {
            display: block;
            opacity: 20%;
            position: absolute;
            height: 700px;
            max-width: 100%;
            margin-top: -100px;
        }

        .leiju {
            display: none;
        }
    
    /* Header osio */

        h1 {
            font-size: 23px;
            margin-top: 50px;
            margin-bottom: 100px;
        }

        h2 {
            line-height: 80px;
        }

    /* Countdown */

        #countdown {
            gap: 3px;
        }

        .time-box {
            min-width: none;
            padding: 5px 5px;
        }

        .time-box span {
            font-size: 25px;
        }
    
    /* Kysymyskiä ja vastauksia osio */

        .ukk {
            margin-top: -50px;
            margin-bottom: -60px;
        }

        .con {
            flex-direction: column;
            align-items: flex-start;
            height: auto;
            margin-bottom: -50px;
        }

        .kysymys,
        .vastaus {
            display: block;
            text-align: left;
            margin-left: 20px;
            margin-right: 20px;
        }

        .kysymys {
            margin-bottom: -15px;
        }

        .vika {
            margin-bottom: 100px;
        }

        .logo {
            height: 150px;
            display: flex;
            justify-content: center;
            margin-bottom: 100px;
        }

  }