:root {
    --color1: #27374D;
    --color2: #526D82;
    --color3: #9DB2BF;
    --color4: #DDE6ED;
}

html, body {
    margin: 0;
    padding-top:1rem;
    height: 100vh;
    font-family: sans-serif;
}

h1 {
    font-size: 2.5rem;
    font-weight: bold;
}
.title h1 {
    margin-top: 4rem;
    font-size: 1.5rem;
    font-weight: bold;
}

h3 {
    font-size: 1.5rem;
}

ul {
    padding:0rem;
    margin:0rem;
    list-style-type: none;
}
li {
    font-size: 1.5rem;
}
    

nav {
    position: fixed;
    overflow: visible;
    width: 100vw;
    height: 2rem;
    top: 0;
    z-index:2;
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: var(--color1);
    justify-content: space-between; 
    display: flex;
    font-size: 1rem;
    color: white;
}

a {
	color: var(--color1);
}
a:visited {
    text-decoration: none;
    color: var(--color1);
}
a:hover {
    color: white;
    background-color: var(--color2);
}

.main-title {
    margin-top: 5rem;
}
.login {
    margin: auto;
    padding: 1rem;
    justify-content: center;
    align-content: center;
    display:  flex;
}

.login form {
    width: 40%;
    height: 45vh;
    background-color: var(--color3);
    border-radius: 1rem;
    border-width: 0px;
    margin: auto;
    padding: 2rem;
    text-align: left;
}

.login .field {
    width: 100%;
    clear: both;
    float: left;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: left;
    justify-content: space-between;
    display: flex;

}

.login label {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color1);
}

.login input {
    width: 75%;
    height: 3vh;
    border-radius: .5rem;
}

.login form button {
    position: relative;
    padding: .75rem 2.5rem .75rem 2.5rem;
    margin-top: 2rem;
    background-color: var(--color4);
    color: var(--color1);
    border-radius: .8rem;
}   
.login form button:hover {
    background-color: var(--color1);
    color: var(--color4);
}   


.navbar, .loggednavbar {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-top: auto;
    margin-bottom: auto;
}

.loggednavbar .icon {
    display: none;
}

@media screen and (max-width: 600px) {
    .loggednavbar a {display: none;}
    .loggednavbar a.icon {
        float: left;
        display: block;
    }
}
@media screen and (max-width: 600px) {
    .loggednavbar.responsive {position: relative; overflow: visible;}
    .loggednavbar.responsive icon a {
        overflow: visible;
    }
    .loggednavbar.responsive a {
        float: none;
        display: block;
        text-align: right;
        overflow: visible;
        
    }
}
@media screen and (max-width: 600px) {
    .general-container {
        width: 90%;
        display: block;
        justify-content: center;
        margin: auto;
        padding: 1rem;
    }
    .general-container img {
        width: 100%;
    }
}
@media screen and (min-width: 601px) {
    .general-container {
        width: 75%;
        display: block;
        justify-content: center;
        margin: auto;
    }
    .general-container img {
        width: 100%;
    }
}

.commburger a {
    display: none;
    width: 4rem;
}
.commburger a.icon {
    display: block;
}

.commburger a {
    position: relative;
}
.commburger.responsive {
    position: relative;
    display:  inline-block;
}
.commburger.responsive a {
    display: block;
    width: 4rem;
}
.commburger.responsive a:hover {
    color: var(--color2);
}

.subnavbar {
    position: relative;
    width:96%;
    height:3rem;
    padding-left: 2%;
    padding-right: 2%;
    margin-top: 2rem;
    margin-bottom: auto;
    text-align:right;
    align-items: top;
    background-color: var(--color2);
    display: flex;
    justify-content: right;
}
.subnavbar a {
    padding: 1rem;
    color: white;
    font-weight: bold;
}
.subnavbar a:hover {
    color: var(--color4);
    font-weight: bold;
}
.subnavbar a:link {
    color: white;
    text-decoration: none;
}

.navbar .button, .loggednavbar .button {
    outline-color: white;
    outline-width: 0px;
    outline-style: solid;
    padding: .5rem 1rem .5rem 1rem;
    border-radius: 0rem;
    background-color:var(--color1);
    margin-left: .25rem;
}
.navbar .button:hover, .loggednavbar .button:hover {
    background-color: var(--color4);
    color:black;
}

.navbar a, .loggednavbar a {
    margin-left: .5rem;
    margin-right: .5rem;
    padding: .5rem;
    font-size: 1rem;
    background-color: var(--color1);
}

.navbar a:link, .loggednavbar a:link{
    color: white;
    text-decoration: none;
}

.navbar a:visited, .loggednavbar a:visited{
    color: white;
}

.navbar a:hover, .loggednavbar a:hover{
    color: #E1F7F5;
}

.topic {
    background-color: var(--color4);
    position: flex;
    width: 75%;
    padding-left: 12.5%;
    padding-right: 12.5%;
    padding-top: 1.5em;
    padding-bottom: 1.5em;
    margin-bottom: 0.5em;
}


.chatrooms .title {
    width: 100%;
    text-align: center;
}



.roomtitle {
    font-size: 1rem;
}
.chatrooms .room .svgroom {
    position: relative;
    width: 50%;
    height: 50%;
    margin: auto;
    overflow: hidden;
}
.room .button {
    outline-color: white;
    outline-width: 1px;
    outline-style: solid;
    border-radius: .35rem;
    background-color:var(--color2);
    padding: .5rem 1rem .5rem 1rem;
    margin: 2rem;
    color: white;
} 
.room .button:hover {
    color:black;
}

@media screen and (max-width: 600px) {
    h1 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1rem;
    }
    .chatroom {
        width: 90%;
        background-color: var(--color4);
        justify-content: space-between;
        display: inline-block;
        border: solid black 1px;
        margin: auto;
    }
    .chatwindow {
        width: 100%;
        height: 30rem;
        overflow: scroll;
        background-color: var(--color4);
        margin: auto;
    }
    .chatwindow.chatbox {
        overflow-wrap: break-word;
    }
    .chatmessage {
        padding: .5rem;
        background-color: var(--color3);
        margin: .1rem;
    }
    .chatmessage p {
        margin: 0;

    }
    .chatmessage #sender {
        color: blue;
        font-size: .7rem;
        font-weight: bold;
        padding: 0;
        margin: 0;
    }
    .chatmessage #message {
        font-size: .7rem;
        padding: 0;
        margin: 0;
    }
    .chatmessage #timestamp {
        font-size: .4rem;
        padding: 0;
        margin-top: .3rem;
        text-align: right;
    }
    .chat-input {
        width: 100%;
        background-color: var(--color3);
        display: flex;
    }
    #chat-message-input {
        width: 80%;
        background-color: var(--color3);
        border: solid black 0px;
    }
    #chat-message-input:focus {
        outline: none;
    }
    #chat-message-submit {
        width: 10%;
        background-color: var(--color3);
        margin:.25rem;
        font-size: 0.5rem;
    }
    #chat-message-update {
        width: 10%;
        background-color: var(--color3);
        margin:.25rem;
        font-size: 0.5rem;
    }
    .chat-members {
        width: 100%;
        padding-left: .5rem;
        height: 10rem;
    }
    #chat-members {
        font-size: .7rem;
    }
    #tickmates {
        height: 10rem;
        overflow: scroll;
    }
    #exit-room {
        background-color: var(--color3);
    }
}
@media screen and (min-width: 601px) {
    .chatroom {
        background-color: var(--color4);
        justify-content: space-between;
        display: flex;
        border: solid black 2px;
    }
    .chatwindow {
        width: 100%;
        height: 30rem;
        overflow: scroll;
        background-color: var(--color4);
        margin-bottom:1rem;
        padding: .25rem;
    }
    .chatwindow.chatbox {
        overflow-wrap: break-word;
    }
    .chatmessage {
        padding: .5rem;
        background-color: var(--color3);
        margin: .1rem;
    }
    .chatmessage p {
        margin: 0;

    }
    .chatmessage #sender {
        color: blue;
        font-size: 1rem;
        font-weight: bold;
        padding: 0;
        margin: 0;
    }
    .chatmessage #message {
        font-size: 1rem;
        padding: 0;
        margin: 0;
    }
    .chatmessage #timestamp {
        font-size: .6rem;
        padding: 0;
        margin-top: .3rem;
        text-align: right;
    }
    .chat-input {
        width: 100%;
        background-color: var(--color3);
        display: flex;
    }
    #chat-message-input {
        width: 80%;
        background-color: var(--color3);
        border: solid black 0px;
    }
    #chat-message-input:focus {
        outline: none;
    }
    #chat-message-submit {
        width: 10%;
        background-color: var(--color3);
        margin:.25rem;
    }
    #chat-message-update {
        width: 10%;
        background-color: var(--color3);
        margin:.25rem;
    }
    .chat-members {
        width: 15%;
        padding-left: 1rem;
        height: 33rem;
    }
    #chat-members {
        font-size: 1rem;
    }
    #tickmates {
        height: 30rem;
        overflow: scroll;
    }
    #exit-room {
        background-color: var(--color3);
    }
}


.overview {
    width: 90%;
    margin: auto;
    border-style: solid;
    border-radius: 5px;
    border-color: black;
    border-width: 1px;
    margin-top: 1em;
    margin-bottom: 1em;
    position: relative;
    text-align: center;
}

.overview-images {
    display: none;
    align-items: center;
    margin: auto;
}

.overview-images img {
    width: 100%;
    margin: auto;
    display: flex;
    justify-content: center;
}
.overview  .overview-prev, .overview-next {
  	width: 30px;
  	padding: 0rem;
  	color: black;
  	font-weight: bold;
  	font-size: .7rem;
  	transition: 0.6s ease;
  	border-radius: 0 3px 3px 0;
  	user-select: none;
    position: relative;
    margin: auto;
}

.overview-next {
    bottom: 35%;
    border-radius: 3px 0 0 3px;
}
.overview-prev {
    bottom: 35%;
    border-radius: 3px 0 0 3px;
}

.overview-next:hover, .overview-prev:hover {
    background-color: rgba(0,0,0,0.2);
}

.navoverview {
    width: 100%;
    height: 3em;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color4);
}
.navoverview a {
    padding: 1em;
    color: black;
    font-weight: bold;
}
.navoverview a:hover {
    padding: 1em;
    color: var(--color2);
    font-weight: bold;
}
.navoverview a:link {
    color: var(--color2);
    text-decoration: none;
}

.collapsible {
    color: var(--color2);
    width: 100%;
}

.active .collapsible:hover {
    background-color: var(--color1);
}

.content {
    padding: 0 18px;
    display: none;
    overflow: hidden;
}

.update-post {
    display: none;
}
.update-post-active {
    background-color: var(--color3);
    font-size: 1rem;
    width:1.8rem;
    height:1.8rem;
}
.update-post-active a:link {
    text-decoration: none;
}

.menu-button {
    width: 100%;
    padding: 2rem;
    margin: 1rem;
    font-size: 2rem;
    font-weight: 2rem;
    background-color: var(--color2);
    color: white;
}
.menu-button a:link {
    text-decoration: none;
    color:  white;
}
.menu-button a:visited {
    text-decoration: none;
    color:  white;
}
