:root {
    --marginleft: 10;
}

html,

body {
    margin: 0;
    padding: 0;
    background-color: #1f1928;
    font-family: Tahoma, Verdana, Arial, sans-serif;
    opacity: 1;
    transition: opacity 0.5s;
    animation-name: fadeIn;
    animation-duration: 0.8s;
}

main {
    position: absolute;
    left: 47%;
    transform: translateX(-50%);
    width: calc((100 - 2 * var(--marginleft))*1%);
}

.background-image {
    background-color: #28273F;
    background-image: url('/Images/Website Stuff/bgtexture.png');
    background-position: center;
    background-repeat: repeat;
    position: fixed;
    height: 100vh;
    width: 100vw;
    z-index: -2;
}

.static-image {
    background-image: url('/Images/Website Stuff/titlescreengif.gif');
    object-fit: contain;
    background-position: right;
    background-repeat: no-repeat; 
    position: fixed;
    width: 100vw;
    height: 100vh;
    right: 0;
    z-index: -1;
}

.button-section {
    height: 70%;
    width: 70%;
    left: 0;
}

#logo {
    margin-top: 3%; 
    width: 44%;
    height: auto;
    margin-left: 15%;
}

#bigbutton {
    margin-left: 2%;
    margin-top: 1%;
    width: 34%;
    transition: scale 0.5s;
    scale: 0.8;
}

.button {
    margin-left: 0%;
    width: 28%;
    transition: scale 0.5s;
    scale: 0.8;
    margin-top: -3%;
}

.button-down {
    margin-left: 25%;
    width: 28%;
    transition: scale 0.5s;
    scale: 0.8;
    margin-top: -3%;
}

#bigbutton:hover {
    scale: 1;
}

.button:hover {
    scale: 1;
}

.button-down:hover {
    scale: 1;
}

.temporary-text {
    /*width: 50%; */
    margin-left: 10%;
    color: whitesmoke;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@media screen and (max-width:1000px) and (orientation:portrait) {
    :root {
        --marginleft: 0;
    }
    
    .button-section {
        height: 70%;
        width: 100%;
        left: 0;
    }

    .static-image {
        width: 0%;
    }

    #bigbutton {
        width: 75%;
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-top: 5%
    }

    .button {
        width: 50%;
        display: block;
        margin-left: auto;
        margin-right: auto;
        
    }
    
    .button-down {
        width: 50%;
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-top: 0%;
    }

    #logo {
        width: 70%;
        margin-left: 15%;
    }
}