:root {
    --maincolor: #329ed8;
    --mainborder: 5px solid var(--maincolor);
    --thinborder: 1px solid var(--maincolor);
    --borderradius: 25px;
    --fontcolor: white;
    --bgcolor: #03070d;
    --secondarycolor: #58bdf3;
    --tertiarycolor: #91d8ff;
    --white: #ffffff;
    --fontsize: 1.2rem;
}

* {
    box-sizing: border-box;
    scrollbar-color: var(--maincolor) var(--bgcolor);
    scroll-behavior: smooth;
}

::selection {
    color: var(--white);
    background: var(--maincolor);
}

@font-face {
    font-family: "Loverine";
    src: url("fonts/Loverine.otf");
}

@font-face {
    font-family: "Lemon Milk";
    src: url("fonts/Lemon Milk.otf");
}

@font-face {
    font-family: "Porkys";
    src: url("fonts/Porkys.TTF");
}

@font-face {
    font-family: "Starborn";
    src: url("fonts/Starborn.ttf");
}

@font-face {
    font-family: "Louis George Cafe";
    src: url("fonts/Louis George Cafe.ttf");
}

@font-face {
    font-family: "Louis George Cafe Bold";
    src: url("fonts/Louis George Cafe Bold.ttf");
}

@font-face {
    font-family: "Notera";
    src: url("fonts/Notera.ttf");
}

@font-face {
    font-family: "Roasted Chicken";
    src: url("fonts/Roasted Chicken.ttf");
}

body {
    font-family: "Louis George Cafe Bold";
    font-size: var(--fontsize);
    color: var(--fontcolor);
    margin: 0 auto;
    background-color: var(--bgcolor);
}

a {
    text-decoration: none;
    font-family: "Louis George Cafe Bold";
    color: var(--maincolor);
    transition: 0.3s;
}

a:hover {
    color: var(--tertiarycolor);
    transition: 0.3s;
}

p {
    margin: 1em 0;
}

#rain {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999999999999999999999999999999999999999999999999999;
    display: block;
}

#wrapper {
    width: 70%;
    height: 100%;
    margin: 2em auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

#header {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: row;
    gap: 1em;
    justify-content: space-between;
    z-index: 9999999999999999999999999999999999;
    padding: 1em;
    background-color: rgba(3, 7, 13, 0.8);
}

#info {
    width: 100%;
    color: black;
    background-color: var(--maincolor);
    padding: 1em 0;
}

#date,
#time,
#online {
    color: white;
}

#smalllogo {
    width: 125.5px;
    display: flex;
    align-items: center;
}

#smalllogo img {
    width: 25px;
    height: 25px;
}

#links {
    display: flex;
    flex-direction: row;
    gap: 1em;
    align-items: center;
}

#links a {
    color: white;
}

#links a:hover {
    color: var(--maincolor);
}

#togglewrapper {
    display: flex;
    gap: 1em;
    z-index: 9999999999;
    width: 125.5px;
}

.toggle {
    border: var(--mainborder);
    border-radius: 100px;
    padding: 0.5em;
    display: flex;
    background-color: var(--maincolor);
    transition: background-color 0.3s;
}

.material-symbols-outlined {
    color: white !important;
    user-select: none;
}

#logowrapper {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    user-select: none;
}

.welcome {
    font-family: "Lemon Milk";
    font-size: 3rem;
    color: white;
}

.subtitle {
    font-size: var(--fontsize);
    color: white;
    display: flex;
    align-items: center;
    gap: 1em;
}

#logo {
    width: 350px;
    height: 250px;
}

.cloud {
    width: 100%;
    height: auto;
}

.starborn {
    font-family: "Starborn";
    color: white;
}

.material-symbols-outlined {
    color: var(--maincolor);
}

.hanger img {
    margin: auto;
    width: fit-content;
    display: block;
}

#specialwrapper {
    border: var(--mainborder);
    border-radius: var(--borderradius);
    background-color: var(--maincolor);
    width: 600px;
    text-align: center;
    color: var(--fontcolor);
    user-select: none;
}

.todaysspecial {
    font-family: "Notera";
    font-size: 4rem;
}

#special {
    font-family: "Roasted Chicken";
    font-size: 4rem;
    padding-top: 1em;
}

#main {
    width: 100%;
    display: flex;
    margin-top: 2em;
    flex-direction: column;
    gap: 2em;
}

#about, #news, #chat{
    margin: 1em 0;
}

.aboutrow{
    display:flex;
    justify-content: space-between;
}

.aboutitem{
    width:25%;
    padding: 0 1em;
}

hr {
    width: 100%;
}

label,
.errors {
    color: black;
}

#monthyear {
    text-align: center;
    margin-bottom: 1em;
    color: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    color: black;
}

.calendar {
    position: sticky;
    top: 1em;
}

.calendar table {
    width: 250px;
    height: 250px;
}

.calendar th,
.calendar td {
    height: 35px;
    border: var(--mainborder);
    vertical-align: middle;
}

.calendar td {
    background-color: white;
}

td {
    text-align: center;
}

th {
    background-color: var(--secondarycolor);
    color: white;
    font-weight: normal;
}

td.today {
    background-color: var(--secondarycolor);
    color: white;
}

.water {
    position: relative;
    width: 100%;
    height: 85px;
    overflow: hidden;
}

.water svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
}

#footer {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    margin-top: 8em;
}

#footer a {
    color: white;
}

.bottom {
    padding: 1em;
    background-color: var(--maincolor);
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.bottom div:first-child {
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    gap: 5px;
}

#content {
    width: 65%;
    border-left: var(--mainborder);
}

iframe {
    width: 100%;
    border: 0;
}

#chat{
    background-image: url("images/background.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

#chatwrapper {
    height:300px;
}

#chatcontainer {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: var(--mainborder);
    border-radius: var(--borderradius);
    overflow: hidden;
}

#chatbox {
    flex: 1;
    font-family: "Louis George Cafe Bold";
    overflow-y: auto;
    display: flex;
    gap: 1em;
    padding: 1em;
    flex-direction: column;
    height: 100%;
}

#chatform {
    display: flex;
    margin: 0;
}

#chatform input[type="text"] {
    flex: 1;
    border:none;
    border-top:var(--mainborder);
}

#chatform button {
    width: fit-content;
    border:none;
    border-left:var(--mainborder);
    border-top:var(--mainborder);
}

.chatinfo{
    text-align: center;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
textarea {
    border: var(--mainborder);
    padding: 0.5em;
    font-family: "Louis George Cafe Bold";
    font-size: var(--fontsize);
    color: black;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus {
    border: var(--mainborder);
    outline: none;
    color: black;
}

button,
.button {
    border: var(--mainborder);
    padding: 0.5em;
    font-family: "Louis George Cafe Bold";
    font-size: var(--fontsize);
    color: white;
    background-color: var(--maincolor);
    transition: 0.3s;
    width: 100%;
    min-width: 150px;
    text-align: center;
}

button:hover,
.button:hover {
    background-color: var(--secondarycolor);
    transition: 0.3s;
    color: black;
}

.message {
    margin-left: 25px;
    position: relative;
    width: calc(100% - 25px);
    height: auto;
    padding: 1em;
    border-radius: 0;
    border: var(--mainborder);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.message:after {
    content: "";
    position: absolute;
    border-style: solid;
    border-width: 20px 20px 20px 0;
    display: block;
    width: 0;
    z-index: 1;
    left: -20px;
    top: 27px;
}

.message:nth-child(odd):after {
    border-color: transparent var(--maincolor);
}

.message:nth-child(odd) a{
    color: white;
}

.message:nth-child(even):after {
    border-color: transparent var(--tertiarycolor);
}

.message:nth-child(even) a{
    color: black;
}

.message:before {
    content: "";
    position: absolute;
    border-style: solid;
    border-width: 24px 24px 24px 0;
    border-color: transparent var(--maincolor);
    display: block;
    width: 0;
    z-index: 0;
    left: -29px;
    top: 22px;
}

.message:nth-child(even):before {
    border-color: transparent var(--tertiarycolor);
}

.message:nth-child(odd) {
    background-color: var(--maincolor);
}

.message:nth-child(even) {
    background-color: var(--tertiarycolor);
    border-color: transparent var(--tertiarycolor);
    color: black;
}

#pagewrapper {
    width: 100%;
    margin: 1em auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1,
h2 {
    text-align: center;
    color: white;
    margin: 0 auto;
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
    color: var(--tertiarycolor);
}

#box {
    width: min-content;
    height: auto;
    border: var(--mainborder);
    border-radius: var(--borderradius);
    padding: 1em;
    background-color: var(--white);
}

form {
    margin-bottom: 0;
}

.errors {
    text-align: center;
}

#page {
    padding: 1em;
}

ul li {
    margin-left: -1em;
}

li::marker {
    color: var(--maincolor);
}