:root {
    --text: #d6d4fe;
    --background: #63639c;
    --primary: #8386fb;
    --secondary: #8a05ab;
    --accent: #eb09f7;
}

@font-face {
    font-family: Chicago;
    src: url(Chicago.ttf);
}

body {
    height: 100%;
    width: 100%;
    margin: 0;
    font-family: Chicago, Helvetica, sans-serif;
    background-color: var(--background);
    background-image: url('images/pattern.png');
    background-size: 100px;
}

#topbar {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    height: 35px;
    background: linear-gradient(to top, #a4a4a4, #ddd, #ddd);
    border-bottom: solid 2px #000;
    box-shadow: 0 0 3px;
}

.nav {
    color: black;
    height: 60%;
    align-self: center;
    padding: 0 8px 0 8px;
    font-size: 23px;
    font-weight: bold;
    text-decoration: none;
    user-select: none;
    margin: 0 3px 0 3px;
}

.box {
    display:flex;
    height: 100%;
}

.box:active {
    background-color: rgb(91, 91, 224);
}

.logo {
    padding: 0 3px 0 3px;
    width: 35px;
    margin-left: 5px;
    height: auto;
}

.logo:active {
    background-color: rgb(91, 91, 224);
}

main {
    position: absolute;
    height: 80%;
    width: 100%;
}

#window {
    width: 70%;
    height: 30%;
    margin: 17% auto 3% auto;
    background-color: white;
    border: solid 2px;
    box-shadow: 1px 1px 3px;
    border-radius: 4px;
}

#titlebar {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 30px;
    align-items: center;
    background-color: white;
    border-bottom: solid 2px;
}

#windowtitle {
    display: inline-block;
    font-size: 20px;
    user-select: none;
    text-align: center;
    transform: translateX(-20px);
    left: 3px;
    flex-grow: 1;
}

#closebutton {
    width: 15px;
    height: 15px;
    margin-left: 5px;
    border: solid 3px;
    z-index: 5;
    background-color: #fff;
}

#closebutton:active {
    background: linear-gradient(to top, #000, #000);
}

#buttoncontain {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

button {
    font-family: Chicago;
    background-color: white;
    border: solid black 3px;
    border-radius: 4px;
    padding: 2px 3px 2px 3px;
}

button:active {
    background-color: #000;
    color: #fff;
}

#flipmenu {
    display: block;
}

#flipmenu:hover #menucontent {
    display: block;
}

#menucontent {
    position: absolute;
    display: none;
    background-color: #c0c0c0;
    transform: translateX(4px) translateY(-3px);
    z-index: 300;
    box-shadow: 1px 1px 3px;
    user-select: none;
    border: solid 2px;
}

.menuelement {
    display: block;
    /*border-bottom: solid 1px;*/
    padding: 6px;
    margin: 0;
    font-size: 20px;
    text-decoration: none;
    color: #000;
}

.menuelement:hover {
    background-color: rgb(91, 91, 224);
}

section {
    margin: 15px;
}

a {
    color: #000;
}

@media (max-width:500px) {
    br {
        display: none;
    }
}

@media (max-width:600px) {
    .hideonmobile {
        display: none;
    }
}