@font-face {
    font-family: "MatrixSans";
    src: url("fonts/MatrixSans-Regular.woff2") format("woff2");
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "JUSTsans";
    src: url("fonts/JUSTSans-Rg.woff2") format("woff2");
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Monaspace";
    src: url("fonts/MonaspaceNeon-Regular.woff2") format("woff2");
    font-style: normal;
    font-display: swap;
}

body{
    background-color: #951354;
    background-image: url(/assets/compressed/background.png);
    background-size: cover;
    overflow: hidden;
}

.welcome{   
    background-image: none;
    background-color: rgb(88, 20, 69, 0);
}
.welcome h1{
    color: white;
    font-size: 4vw;
    font-family: "Monaspace";
    text-align: center;
}
.welcome p{
    font-size: 2vw;
    color: white;
    font-family: "Monaspace";
    text-align: center;
}
.welcome a{
    font-size: 2vw;
    font-family: "Monaspace";
}
.welcome img{
    width: 60vw;
}

.welcome-flex{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

.langselector {
    position: fixed;
    z-index: 9999;
    top: 1px;
    right: 10px;
    
    color: white;
    text-align: right;
    font-family: 'JUSTsans';
}
.langselector h4 {
    margin: 8px;
}

#langselector-spanish{
    color:  #9b9b9b;
}
#langselector-spanish:hover{
    cursor: pointer;
}
#langselector-catalan{
    color:  #9b9b9b;
}
#langselector-catalan:hover{
    cursor: pointer;
}
#langselector-english{
    color:  #9b9b9b;
}
#langselector-english:hover{
    cursor: pointer;
}

.sidebar-content{
    position: fixed;
    display: flex;
    z-index: 998;
    flex-direction: column;
    justify-content: center;
    width: 25%;
    height: 100%;
    margin: -8px;
    background-color: rgba(0,0,0,0.7);
}

.sidebar-elem{
    display: flex;
    justify-content: left;
    align-content: center;
    
    max-width: 80%;
    
    font-family: "JUSTsans";
    
    letter-spacing: 6px;
    font-size: 1.3vw;
    color: white;
    
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 10%;
}
.sidebar-elem img{
    width: 4vw;
    height: 4vw;
    margin-right: 20px;
}
.sidebar-elem:hover{
    cursor:pointer;
}

iframe {
    float: right;
    height: 98vh;
    width: 55%;
    border: none;
    border-radius: 10px;
    margin-right: 10vw;
}

.disclaimers{
    font-family: "JUSTsans";
    color: white;
    z-index: 999;
}
.disclaimers p{
    text-align: left;
}
.disclaimers a{
    color: #e0155b;
}

/* Mobile support */
@media only screen and (orientation: portrait){
    .sidebar-content {
        position: fixed;
        display: flex;
        z-index: 998;
        
        flex-flow: row;
        justify-content: center;
        align-content: center;
        
        width: 100%;
        height: 16vh;
        bottom: 0px;
        
        background-color: rgba(0, 0, 0, 0.7);
    }
    .sidebar-elem{
        display: flex;
        justify-content: center;
        align-content: center;
        flex-flow: column;
        
        text-align: center;
        letter-spacing: 6px;
        font-size: 1.3vw;
        color: white;
        
        margin-left: auto;
        margin-right: auto;
    }
    .sidebar-elem img{
        height: 12vh;
        width: 12vh;
        
        max-width: 50%;
        max-height: 50%;
        
        object-fit: contain;
        
        margin-left: auto;
        margin-right: auto;
    }
    .sidebar-elem p{
        text-align: center;
        letter-spacing: 3px;
        
        font-size: 14px;
    }
    
    #welcome p{
        font-size: 4vw;
    }
    #welcome img{
        width: 80%;
    }
    iframe {
        height: 83vh;
        width: 90vw;
        margin-right: 3vw;
    }
    
}
/*
.window-obscurer{
    background-color: rgba(0,0,0,0.5);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
}
.window-background{
    animation: window-expand 0.6s cubic-bezier(0,0,0,1) 0s 1 normal forwards;
    opacity: 1;
    background-color: rgba(209, 209, 209, 0.5);
    border: white dashed;
    width: 70%;
    height: 80%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin-top: 10vh;
}
.window-iframe{
    animation: iframe-appear 0.5s linear 0.9s 1 normal forwards;
    border: none;
    opacity: 0;
    background-color: white;
    width: 100%;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}
#window-back{
    background-image: url(assets/back.png);
    width: 64px;
    height: 64px;
    position: absolute;
    top: 10px;
    left: 10px;
    cursor: pointer;
}