@font-face {
    font-family: tangerine-bold;
    src:url(./Tangerine/Tangerine-Bold.ttf);
}

@font-face {
    font-family: tangerine;
    src:url(./Tangerine/Tangerine-Regular.ttf);
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

.slow-fade {
  animation-name: fade;
  animation-duration: 3s;
}

.fade-out {
    animation-name: fade-out;
    animation-duration: 1s;
}

@keyframes fade-out {
    from {opacity:1}
    to {opacity:0}
}
@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

@keyframes slideInOut {
    0% {
        transform: translateX(0%);
    }
    50% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(0%);
    }
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    box-sizing: border-box;
    overflow: hidden;
}

.container {
    min-height: 100vh;
    background-image: url(./assets/Alhambra_view.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    /* overflow: auto; */
    position: absolute;
    inset: 0;
}

#title-page,
#list-page,
#music-page {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#about-page {
    display: grid;
    grid-template-rows: 5fr 1fr;
}

.page {
    min-height: 100vh;
    min-width: 100vw;
    font-family: tangerine-bold;
    box-sizing: border-box;
    overflow: auto;
}

#list-page {
    transition: 0.3s ease;
}

.game-page {
    background-image: url(./assets/seville_alcazar.jpeg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

#title {
    font-size: calc(max(10vw, 96px));
    min-width: 500px;
    text-align: center;
    margin: 5vh 0;
    color: rgb(63, 32, 9)
}

.page button {
    max-width: 15vw;
    min-width: 260px;
    max-height: 70px;
    font-family: tangerine;
    font-size: 36px;
    text-align: center;
    border: solid rgb(177, 86, 21);
    border-radius: 100rem;
    border-width: 2px;
    padding: 0.8rem;
    background-color:darkorange;
    margin: 2.5vh 0;
    justify-self: center;
}

#about-content button {
    margin: 0 auto;
}

.page button:hover {
    box-shadow: 0 0 10px darkorange;
}

#image-holder {
    width: 800px;
    height: 500px;
    border: 4px solid rgb(177, 86, 21);
    background-color: rgb(249, 201, 166);
    margin: 2.5vh 0;
}

#image-holder img {
    width: 800px;
    height: 500px;
}

#games-holder {
    width: 800px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#about-content {
    border: 4px solid rgb(177, 86, 21);
    background-color: rgb(249, 201, 166);
    margin: 2.5vh 10vw;
    min-width: calc(max(700px, 80vw));
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-self: center;
    /* grid-template-rows: 1fr 2fr; */
}

h1 {
    text-align: center;
}

.slide img {
    max-width: calc(max(80vw, 500px));
    max-height: calc(max(30vh, 500px));
}

@media screen and (min-width: 1200px) {
    .slide img, 
    #about-content {
        width: 972px;
        max-width: 972px;
        min-width: 0px;
    }    
}

.slide-button {
    font-family: Verdana, sans-serif;
    cursor: pointer;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 36px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.slide-button:hover {
    background-color: rgba(0,0,0,0.8);
}

.slideshow {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    place-items: center;
}

.slideshow .button-holder {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.slide {
    grid-column: 1;
    grid-row: 1;
}

#about-text {
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    padding: 16px;
}

.caption {
    text-align: center;
    font-weight: bold;
    font-size: 24px;
}

/* consider more grids? */

#about-content h1 {
    font-size: 48px;
}

/* Tictactoe */
.game-page {
    display: grid;
    grid-template-rows: 1fr 5fr 1fr;
    grid-template-columns: 1fr 5fr 1fr;
    min-height: 100vh;
}

.board-holder {
    display: flex;
    overflow: visible;
    margin: auto;
    grid-row: 2 / 3;
    grid-column: 2;
}

#tictactoe-board {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    height: 600px;
    width: 600px;
    margin: auto;
    font-size: 3vh;
    border: 4px solid rgb(177, 86, 21);
    background-color: rgb(249, 201, 166);
    margin: auto;
}

.row0,
.row1 {
    border-bottom: 2px solid black;
}

.column0,
.column1 {
    border-right: 2px solid black;
}

.game-page .button-holder {
    display: flex;
    align-items: center;
    justify-self: center;
    justify-content: space-between;
    align-self: center;
    width: 700px;
    grid-row: 3;
    grid-column: 2;
}

.game-page .popup {
    grid-row: 2;
    grid-column: 3;
    z-index: 1;
    visibility: hidden;
}

.popup.active {
    visibility: visible;
}

/* MAKE LEFT AND RIGHT CURTAIN */

.curtain-left {
    position: absolute;
    background-color: black;
    z-index: 100;
    
    min-height: 100vh;
    min-width: 50vw;
    height: 100%;
    left: -50%;
    transition-duration: 0.5s;
    transition-timing-function: ease-out;
    transition-property: left;
    /* visibility: hidden; */
}

.curtain-left.loading {
    left: 0%;
    visibility: visible;
    transition-duration: 0.5s;
    transition-timing-function: ease-out;
    transition-property: left;
}

.curtain-right {
    position: absolute;
    background-color: black;
    z-index: 100;
    
    min-height: 100vh;
    min-width: 50vw;
    height: 100%;
    left: 100%;
    transition-duration: 0.5s;
    transition-timing-function: ease-out;
    transition-property: left;
    /* visibility: hidden; */
}

.curtain-right.loading {
    left: 50%;
    visibility: visible;
    transition-duration: 0.5s;
    transition-timing-function: ease-out;
    transition-property: left;
}

.tictactoe-square {
    font-size: 48px;
    text-align: center;
    line-height: 200px;
}