html {
    height: 100%;
}

* {
    /* box-sizing:border-box;
    border: 1px solid black; */
}

body {
    margin: 0;
    background-color: #48a9e4;
    font-family: Arial, Helvetica, sans-serif;
    height: 100vh;
}

#main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* screens */

.screen.hidden {
    display: none !important;
}

#screen-front {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

.front-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 70ch;
    padding: 4vh 6vw;
    text-align: center;
}

.front-logo {
    max-width: 40vh;
    width: 100%;
    height: auto;
    margin-bottom: 3vh;
}

.icon-btn {
    background-color: #fafafa;
    border: 3px solid #000000;
    border-radius: 50%;
    width: 8vh;
    height: 8vh;
    min-width: 56px;
    min-height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 0 0px rgba(255, 255, 255, 0);
    transform: scale(1);
    transition: all 0.3s ease;
}

.icon-btn:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.icon-btn svg {
    width: 78%;
    height: 78%;
    fill: #000000;
}

.audio-buttons {
    display: flex;
    flex-direction: row;
    gap: 2vh;
    margin-bottom: 3vh;
}

#audio-btn.speaking,
#audio-btn-hd.speaking {
    box-shadow: 0 0 20px rgba(255, 255, 255, 1);
}

#audio-btn.speaking svg,
#audio-btn-hd.speaking svg {
    fill: #2176ad;
}

#front-text {
    color: #000000;
    font-size: 1.4rem;
    line-height: 1.6;
    margin: 0 0 4vh 0;
}

#front-text .word {
    border-radius: 0.3vh;
    padding: 0 0.15em;
    margin: 0 -0.15em;
}

#front-text .word.active {
    background-color: #fff59d;
}

.arrow-btn {
    margin-top: 1vh;
    width: 12vh;
    height: 12vh;
    min-width: 84px;
    min-height: 84px;
}

/* apps and extra */

#apps{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 70vh;
    width: 100vw;
    /* background: pink; */
}
#extra{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 20vh;
    width: 100vw;
    /* background: yellow; */
}

/* apps */

#lezen,
#netnieuws {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 58vh;
    height: 58vh;
    /* background: green; */
    margin: 5vh;
}

#lezen-app > a,
#netnieuws-app > a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.container-app {
    /* background-color: red; */
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 50vh;
    margin-bottom: 2vh;
    box-sizing: border-box;
    border-radius: 2vh;
    border: 3px solid #000000;
}

.container-app img {
    width: 100%;
    border-radius: 1vh;
}

.container-app:hover .link {
    transform: scale(1);
    opacity: 0.25;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15vh;
    height: 15vh;
    min-width: 84px;
    min-height: 84px;
    border-radius: 50%;
    background-color: #fafafa;
    border: 3px solid #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.container-app:hover .play-overlay {
    opacity: 1;
}

.play-overlay svg {
    width: 45%;
    height: 45%;
    fill: #000000;
}

.container-video {
    width: 20vh;
    aspect-ratio: 4 / 3;
    /* background-color: orange; */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.container-video img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.container-video:first-child {
    margin-right: 1vh;      
}
.container-video:last-child {
    margin-left: 1vh;
}


.container-link {
    width: 30vh;
    height: 20vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.containers-smaller {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.containers-extra {
    display: flex;
    flex-direction: row;;
    justify-content: center;
    align-items: center;
    background-color: lightblue;
}

@media (max-width: 800px), (orientation: portrait) { 
    #main {
        height: auto;
        max-width: 100vw;
    }
    #apps{
        flex-direction: column;
        height: auto;
        max-width: 100vw;
    }
    #extra{
        flex-direction: column;
        height: auto;
        max-width: 100vw;
    }
}

#underlayvideo1{
    background-image: url('alfabeter_video_1.png');
    background-size: 75%;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}
#underlayvideo2{
    background-image: url('alfabeter_video_2.png');
    background-size: 75%;
    background-repeat: no-repeat;
     background-position: 50% 50%;
}
#underlayvideo3{
    background-image: url('netnieuws_video_1.png');
    background-size: 75%;
    background-repeat: no-repeat;
     background-position: 50% 50%;
}
#underlayvideo4{
    background-image: url('netnieuws_video_2.png');
    background-size: 75%;
    background-repeat: no-repeat;
     background-position: 50% 50%;
}

.link {
    transition: all 0.3s ease;
    box-shadow: 0 0 0px rgba(255, 255, 255, 0); 
    transform: scale(1);
    cursor: pointer;
}
.link:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

#info img{
        border-radius: 50%;
}

#info .link:hover {
    box-shadow: 0 0 0px rgba(255, 255, 255, 0);
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.85);
}

.video-modal.hidden {
    display: none !important;
}

#video-modal-player {
    max-width: 92vw;
    max-height: 92vh;
    background-color: #000000;
    border-radius: 1vh;
    width: 92vw;
    height: 92vw;
}

.video-modal-close {
    position: absolute;
    top: 2vh;
    right: 2vh;
    width: 6vh;
    height: 6vh;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background-color: #fafafa;
    border: 3px solid #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.video-modal-close svg {
    width: 55%;
    height: 55%;
}

.info-modal-content {
    max-width: 92vw;
    max-height: 92vh;
    width: 80vw;
    overflow-y: auto;
    background-color: #fafafa;
    color: #000000;
    border-radius: 1vh;
    padding: 4vh 4vw;
    box-sizing: border-box;
}