/* apply a natural box layout model to all elements, but allowing components to change */
html {
    box-sizing: border-box;
}

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

/* main layout */
.container-content {
    max-width: 625px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
}
.header-content {
    max-width: 500px;
    font-size: 1.5rem;
    color: #fff;
    text-align: center;
    padding: 15px;
}
.header-content h1{
    font-size: 2.75rem;
    text-shadow: 5px 5px 0 #000;
    margin-bottom: 0.5rem;
    line-height: 1;
    text-align: center;
}


body {
    background-color: orangered;
}

.message-box {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.message-box.show {
    display: flex;
}

.message-content {
    background: white;
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 80%;
    font-size: 1.5em;
}
button{
  background-color: orangered;
  border-radius: 10px;
  color: #fff;
  padding: 10px;
}


/* navigation (using flexbox) */
/* small screen code */
.page-nav ul{
 
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid orangered;
    border-right: 1px solid orangered;
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.page-nav li{
    flex: 1 1 50%;
    display: flex;
    border-bottom: 1px solid orangered;
    border-left: 1px solid orangered;
    font-weight: 600; 
}
.page-nav a{
    padding: 15px 10px;
    display: flex;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    transition: all 0.2s ease;
}
.page-nav a:visited {
    color: purple;
}
.page-nav a:hover {
    background: #fff;
    color: #c44d85;
}
.page-nav a:active {
    background: lightblue;
    color: #000;
}
/* navigation (using flexbox) */
/* small screen code */
.page-nav ul{
    display: flex;
    flex-wrap: wrap;
    /* border-top: 1px solid #fff;
    border-right: 1px solid #fff; */
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color: orangered;
}
.page-nav li{
    flex: 1 1 50%;
    display: flex;
    /* border-bottom: 1px solid #fff;
    border-left: 1px solid #fff;    */
}
.page-nav a{
    padding: 15px 10px;
    display: flex;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    transition: all 0.2s ease;
}
.page-nav a:visited {
    color: purple;
}
.page-nav a:hover {
    background: #fff;
    color: #c44d85;
}
.page-nav a:active {
    background: lightblue;
    color: #000;
}
/*larger screen code*/
@media screen and (min-width: 760px) {
    .page-nav ul {
        flex-wrap: nowrap;
    }
    .page-nav li {
        flex: 1 1 25;

    }
}

header{
  background-color: orangered;
}
.page-header{
    background-color: orangered;
    color: #fff;
    display: flex;
    min-height: 5vh;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url(../images/claire-worthington.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
}
main{
  background: url(images/dark-candy-background.jpg) no-repeat top center #82d8cb;
  background-size: cover;
  padding-bottom: 30px;
}

/* mobile first grid layout */
.grid-1 {
    display: grid;
    width: 96%;
    max-width: 900px;
    margin: 2% auto;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    grid-gap: 10px;
}
 .grid-1 {
    grid-template-areas:"t t t"
                        "d23 d20 d12"
                        "d2 d14 d4"
                        "d5 d22 d16"
                        "d1 d7 d9"
                        "d10 d11 d18"
                        "d13 d3 d15"
                        "d6 d17 d8"
                        "d19 d24 d21"; 
 }

/* media query */
 @media only screen and (min-width: 800px) {
  /*min width temporarily oversized because it wasn't kicking in at smaller widths*/
  .grid-1 {
    grid-template-columns: repeat(6, 1fr);
    grid-template-areas:    "t t t d2 d7 d8"
                            "t t t d4 d11 d12"
                            "t t t d19 d9 d13"
                            "d6 d1 d24 d24 d21 d20"
                            "d17 d18 d24 d24 d5 d22"
                            "d3 d23 d16 d14 d10 d15";
  }
  main {
      background: url(images/xmas-snowscene-background.jpg) no-repeat top center #82d8cb;
  background-size: cover;
  padding-bottom: 30px;
  }
} 

section div {
  /* background: #c44d85; */
  padding: 10px;
}

/* individual items */
  .title {
    grid-area: t;
  }
  .day-1 {
    grid-area: d1;
  }
    .day-1 .back {
  background: url(images/Christmas_1.jpg);
}
  .day-2 {
    grid-area: d2;
  }
    .day-2 .back {
  background: url(images/Christmas_12.jpg);
}
  .day-3 {
    grid-area: d3;
  }
    .day-3 .back {
  background: url(images/Christmas_1.jpg);
}
  .day-4 {
    grid-area: d4;
  }
    .day-4 .back {
  background: url(images/Christmas_15.jpg);
}
  .day-5 {
    grid-area: d5;
  }
    .day-5 .back {
  background: url(images/Christmas_16.jpg);
}
  .day-6 {
    grid-area: d6;
  }
  .day-6 .back {
  background: url(images/Christmas_17.jpg);
}
  .day-7 {
    grid-area: d7;
  }
    .day-7 .back {
  background: url(images/Christmas_18.jpg);
}
 .day-8 {
    grid-area: d8;
  }
   .day-8 .back {
  background: url(images/Christmas_19.jpg);
} 
  .day-9 {
    grid-area: d9;
  }
    .day-9 .back {
  background: url(images/Christmas_22.jpg);
}
  .day-10 {
    grid-area: d10;
  }
    .day-10 .back {
  background: url(images/Christmas_26.jpg);
}
  .day-11 {
    grid-area: d11;
  }
    .day-11 .back {
  background: url(images/Christmas_27.jpg);
}
  .day-12 {
    grid-area: d12;
  }
    .day-12 .back {
  background: url(images/Christmas_28.jpg);
}
  .day-13 {
    grid-area: d13;
  }
    .day-13 .back {
  background: url(images/Christmas_29.jpg);
}
  .day-14 {
    grid-area: d14;
  }
    .day-14 .back {
  background: url(images/Christmas_3.jpg);
}
  .day-15 {
    grid-area: d15;
  }
    .day-15 .back {
  background: url(images/Christmas_30.jpg);
}
  .day-16 {
    grid-area: d16;
  }
    .day-16 .back {
  background: url(images/Christmas_33.jpg);
}
  .day-17 {
    grid-area: d17;
  }
    .day-17 .back {
  background: url(images/Christmas_34.jpg);
}
  .day-18 {
    grid-area: d18;
  }
    .day-18 .back {
  background: url(images/Christmas_38.jpg);
}
  .day-19 {
    grid-area: d19;
  }
    .day-19 .back {
  background: url(images/Christmas_9.jpg);
}
  .day-20 {
    grid-area: d20;
  }
    .day-20 .back {
  background: url(images/Christmas_42.jpg);
}
  .day-21 {
    grid-area: d21;
  }
    .day-21 .back {
  background: url(images/Christmas_45.jpg);
}
  .day-22 {
    grid-area: d22;
  }
    .day-22 .back {
  background: url(images/Christmas_48.jpg);
}
  .day-23 {
    grid-area: d23;
  }
    .day-23 .back {
  background: url(images/Christmas_5.jpg);
}
  .day-24 {
    grid-area: d24;
  }
    .day-24 .back {
  background: url(images/Christmas_13.jpg);
}

/* door styles */
.grid-1 input {
  display: none;
}
label {
  perspective: 1000px;
  transform-style: preserve-3d;
  cursor: pointer;
  display: flex;
  min-height: 100%;
  width: 100%;
  height: 120px;
}
.door {
  width: 100%;
  transform-style: preserve-3d;
  transition: all 300ms;
  border: 2px dashed transparent;
  color: yellow;
  font-size: 2em;
  text-align: center;
}

 .door div {
    position: absolute;
    height: 100%;
    width: 100%;
    backface-visibility: hidden;
    display: grid;
    align-items: center;
    justify-content: center;
  
  }
  .door .back {
    background-color: #2e313d;
    transform: rotateY(180deg);
    border-radius: 9px;
  }

    label:hover .door {
    border-color: #385052;
    background-color: orangered;
    font-weight: 600;
   
    
  }
  :checked + .door {
    transform: rotateY(180deg);
  }

  .title {  
  display: grid;
  align-items: center;
  justify-content: center; 
}
.title img {
  width: 100%;
  height: auto;
}

 .door .back {
      background-size: contain;
      background-position: center center;
      background-repeat: no-repeat;
      background-color: #c44d85;
      transform: rotateY(180deg);
  }

footer {
  background-color: orangered;
}
.page-footer{
    background-color: orangered;
    display: flex; 
    height: 15vh;
    align-items: center;
    justify-content: center; 
    color: #fff;
    font-weight: 600;
}





