::selection {
  background: white; 
  color: black;         
}

::-moz-selection {    
  background: white;
  color: black;
}

:root {
    --bgcolor: #00000052;
    --bgcolorhover: #0000006f;
    --blur: blur(9px);
    --blurhover: blur(25px);
    --fgcolor: white;
    --fghover: black;
    --bgcolor1: #ffffff2d;
    --bghover1: white;
    --bgfocus1: #ffffffd7;


    --maxwidth: 650px;
}

* {
    font-family: "Roboto Flex", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

*:focus {
    outline: none;
    background-color: var(--bgfocus1);
}

body {
    background-image: url("image/fiat_500_on_track.png");
    background-size: cover;
    background-position: center;
    height: 100vh;
    background-attachment: fixed;
    padding-top: 50px;
}


/* Top bar thing */
.topbar {
    position: fixed;
    overflow: hidden;
    display: flex;
    justify-content: center;
    place-items: center;
    z-index: 1000;
    margin: 5px auto 0px auto;
    left: 0;
    right: 0;  
    top: 0;
    padding: 5px 0px 5px 0px;
    background-color: var(--bgcolor);
    backdrop-filter: var(--blur);
    border:1px solid #ffffff36 ;
    border-top: 2px solid #ffffff3d;
    border-radius: 25px;
    max-width: var(--maxwidth);
    color: rgba(255, 255, 255, 0.707);
    text-align: center;
    transition: 0.5s;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.761);
}

.topbar:hover {
   background-color: var(--bgcolorhover); 
    transition: 0.5s;    
    border-radius: 10px;
    backdrop-filter: var(--blurhover);
    border-top: 2px solid #ffffff49;
}

.topbar a {
    padding: 10px 25px 10px 25px;
    border-radius: 30px;
    background-color: transparent;
    margin-left: 10px;
    margin-right: 10px;
  transition: 0.5s;
  float: left;
  color: #f2f2f2;
  text-align: center;
  text-decoration: none;
  font-size: 17px;
}

.selected-topbar-button {
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.761);
    background-color: #1295c1 !important;
}

.topbar a:hover, .selected-topbar-button:hover {
    border-radius: 10px;
  transition: 0.35s;
    background: #ffffff;
  color: black;
    padding: 10px 30px 10px 30px;
    margin-left: 5px;
    margin-right: 5px;
}



/* Put the elements in a row */
.widget-row {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    max-width: var(--maxwidth);
    gap: 20px;
}


.row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    place-items: center;
    padding:3px 15px 3px 15px;
}

.column {
    display: flex;
    flex-direction: column;
    width: fit-content;
    gap: 0px;
}

/* Widget box to house elements */

.widget {
    width: 100%;
    height: auto;
    margin: 1% auto;
    background-color: var(--bgcolor);
    backdrop-filter: blur(9px);
    border:1px solid #ffffff36 ;
    border-top: 2px solid #ffffff3d;
    border-radius: 25px;
    max-width: var(--maxwidth);
    color: rgba(255, 255, 255, 0.707);
    text-align: center;
    padding-bottom: 2%;
    padding-top: 2%;
    transition: 0.85s;
}

.widget:hover {
   background-color: var(--bgcolorhover); 
   color: rgb(255, 255, 255);
   transition: 0.5s;    
   border-radius: 10px;
    backdrop-filter: blur(25px);
    border-top: 2px solid #ffffff49;
}

.widget-row .widget {
    width: 100%;
}
    
/* Image stuff*/

.pfp {
    transition: 0.5s;
    background-size: cover;
    background-position: center;
    width: 25%;
    border-radius: 50%;
    margin-bottom: 3%;
    animation: spin 3s infinite linear;
    animation-play-state: paused;
}

.pfp:hover {
    transition: 0.5s;
    border-radius: 50%;
    animation-play-state: running;
}

.image {
    opacity: 0.75;
    transition: 0.75s;
    background-size: cover;
    background-position: center;
    width: 80%;
    border-radius: 25px;
}

.image:hover {
    opacity: 1;
    transition: 0.5s;
    border-radius: 10px;
}

/* Buttons */

a.button, a.buttonalt {
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.761);
    background-color: #ffffff2d;
    border-radius: 25px;
    border: 1px solid #ffffff36;
    border-top: 2px solid #ffffff54;
    color: #ffffff;
    padding: 10px 25px 10px 25px;
    margin: 5px 10px;
    transition: 0.5s;
    text-decoration: none;
}

a.button:hover  {
    transition: 0.35s;
    background-color: #ffffff;
    border-radius: 10px;
    color: #000000;
    padding: 10px 30px 10px 30px;
    margin-left: 5px;
    margin-right: 5px;
}
a.buttonalt:hover {
    transition: 0.35s;
    background-color: #1295c1;
        border: 1px solid #1295c1;
    border-top: 2px solid #1295c1;
    border-radius: 10px;
    color: #ffffff;
    padding: 10px 30px 10px 30px;
    margin-left: 5px;
    margin-right: 5px;  
}

.credit-card {
    background-color: #ffffff2d;
    border-radius: 25px;
    border: 1px solid #ffffff36;
    border-top: 2px solid #ffffff54;
    color: rgb(255, 255, 255);
    padding: 10px 25px 10px 25px;
    margin: 5px 10px;
    transition: 0.2s;
    text-decoration: none;
}

.credit-card:hover {
    transition: 0.2s;
    background-color: #ffffff;
    border-radius: 10px;
    color: #ddeeff;
    padding: 10px 25px 10px 25px;
    padding: 10px 30px 10px 30px;
    margin-left: 5px;
    margin-right: 5px;
}

.credit-card:focus {
    transition: 0.2s;
    background-color: #ffffffd7;
    border: 2px solid rgb(255, 255, 255);
    border-radius: 10px;
    color: #000000;
    padding: 10px 25px 10px 25px;
    padding: 10px 30px 10px 30px;
    margin-left: 5px;
    margin-right: 5px;
}

/* texts */

.small-text {
    font-size: 7px;
    color: rgba(255, 255, 255, 0.49);
}

.boxed-text {
    background-color: #ffffff2d;
    border-radius: 25px;
    border: 1px solid #ffffff36;
    border-top: 2px solid #ffffff54;
    color: rgb(255, 255, 255);
    padding: 10px 25px 10px 25px;
    margin: 5px 10px;
    margin-bottom: none;
    transition: 0.2s;
    text-decoration: none;
}

.title-text {
  background-clip: text;
  display: inline-block; 
  color: rgba(255,255,255,0);
  transition: color 1.0s ease-out;

  font-family: "Roboto Flex", sans-serif;
  font-weight: 400;
  font-style: normal;
  margin: none;
  padding: none;
  transform: translate(0px, 10px);
  font-size: 65px;
  scale: 3.5 3.5;
  background-image: linear-gradient(180deg,rgba(255, 255, 255, 0) 15%, rgba(255, 255, 255, 1) 100%);
  font-variation-settings:
    "wdth" 25,
}
.title-text:hover {
  color: rgba(255,255,255,1);
}

.text-with-padding {
    margin: 15px 0px;
}

.widget h2, .widget, h1 {
    transition: 0.55s;
    text-shadow: none;
}

.widget:hover h2, .widget:hover h1  {
    transition: 0.5s;
    text-shadow: 0px 0px 10px rgba(255,255,255,0.5);
}



/* Animations */

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
