@import url('https://fonts.googleapis.com/css2?family=Oleo+Script+Swash+Caps&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Averia+Libre&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mea+Culpa&display=swap');

body {
    background-color: #EEF8FF;
}

#logo {
    font-family: 'Oleo Script Swash Caps';
    color: #0500FF;
    font-size: 0.5em;
}

#logo a {
    text-decoration: none;
    color: inherit;
}

#namefooter {
    font-family: 'Mea Culpa';
    position: fixed;
    right: 1em;
    bottom: 0;
    color: #0500FF;
}

.overlap-container {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

.icon {
    font-size: 70px;
    font-weight: bold;
    line-height: 0.8;
    position: relative;
}

.o1 {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    transform: rotate(-15deg);
}

.o2 {
    position: absolute;
    left: 20px;
    top: 30px;
    z-index: 1;
    transform: rotate(-15deg);
}

.name {
    font-size: 25px;
    font-weight: bold;
    display: flex;
}

.first {
    margin-left: 1.9em;
    margin-top: 0.1em;
}

.last {
    margin-left: 2.65em;
}

div {
    display: inline;
}

#contact,#mode {
    float: right;
    margin-right: 1em;
    margin-top: 0.05em;
}

#contact img {
    height: 2.5em;
    width: 2.5em;
    margin: 0 2.5px;
}

.linkedin {
    width: 3em !important;
    height: 3em !important;
    position: relative;
    left: 0.5em;
    top: 0.25em;
}

#mode{
    margin-top: 0.75em;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
  }
  
  .switch input { 
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -webkit-transition: .4s;
    transition: .4s;
    border: 2px solid black;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    /* background-color: white; */
    -webkit-transition: .4s;
    transition: .4s;
    background-image: url(images/day.png);
    background-size: cover;
  }
  
  input:checked + .slider {
    background-color: #2196F3;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
    background-image: url(images/night.png);
    background-size: contain;
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }


#slider {
    margin: auto;
    height: 40px;
    background-color: #E4EFF7;
    border: 2px solid #E4EFF7;
    width: max-content;
    display: block;
    border-radius: 30px;
    margin-bottom: 1em;
    justify-content: center;
    display: flex;
    padding: 10px;
}

#slider a {
    text-decoration: none;
}

#slider a.active {
    background-color: white;
    border-radius: 30px;
    display: inline-block;
    margin: 0 0.25em;
}

.tabs {
    font-family: 'Averia Libre';
    color: #2758d2;
    display: inline;
    margin: 0 1em;
    top: 25%;
    position: relative;
}

.grid-container {
    /* columns: 3;
    column-gap: 16px;
    margin: 1rem; */
    display: grid;
    grid-template-columns: 30% 30% 30%;
}

#resume:hover,
#skills:hover,
#about-intro:hover,
#media:hover,
#achievements:hover {
    box-shadow: 2px 2px 11px #298EB9;
}

#about-intro {
    /* width: 30%; */
    background-color: #FFFFFF;
    display: inline-block;
    height: 220px;
    margin-left: 4em;
    border-radius: 20px;
    vertical-align: top;
    margin-top: 2em;
    height: fit-content;
    box-shadow: 2px 2px 11px #2758d2;
    position: relative;
}

.intro {
    font-family: 'Averia Libre';
    color: #0500FF;
    margin: 1em
}

#resume {
    /* width: 25%; */
    height: 275px;
    display: inline-block;
    border-radius: 20px;
    vertical-align: top;
    margin-top: 2em;
    margin-left: 6em;
    border: 2px solid #298EB9;
    position: relative;
    box-shadow: 2px 2px 11px #2758d2;
    position: relative;
}

#resume span {
    display: inline-block;
    border-radius: 20px;
    background-size: cover;
    width: 100%;
    height: 100%;
    filter: blur(1.5px);
}

#resume img, #media1 img{
    width: 100%;
    display: inline-block;
    border-radius: 20px;
    height: 100%;
}

.res,
.med {
    bottom: 0;
    position: absolute;
    transform: translateX(-50%);
    left: 50%;
    font-family: 'Averia Libre';
    color: white;
    border: 1px solid #298EB9;
    border-radius: 15px;
    padding: 5px;
    background-color: #298EB9;
}

#media {
    /* width: 25%; */
    height: 450px;
    display: inline-block;
    border-radius: 20px;
    vertical-align: top;
    margin-top: 2em;
    margin-left: 7em;
    position: relative;
    box-shadow: 2px 2px 11px #2758d2;
    margin-bottom: 2em;
}

#media1 {
    display: block;
    width: 100%;
    height: 100%;
}

#achievements,
#randompic,
#skills {
    width: 250px;
    height: 250px;
    background-color: #FFFFFF;
    border-radius: 20px;
    display: inline-block;
    vertical-align: top;
    box-shadow: 2px 2px 11px #2758d2;
    position: relative;
}

#achievements {
    margin-left: 4em;
    margin-top: -12em;
}

#randompic {
    margin-left: -3em;
    margin-top: -10em;
    background-image: url(images/random1.png);
    background-size: cover;
}

#skills {
    margin-left: -10em;
    margin-top: -8em;
    margin-bottom: 2em;
    position: relative;
    text-align: center;
}

#skills1 {
    display: block;
    width: 100%;
    height: 100%;
}

.skillpic {
    display: none;
    width: inherit;
    height: inherit;
    padding: 30px;
    box-sizing: border-box;
}

#skills p {
    font-family: 'Averia Libre';
    color: white;
    border: 1px solid #298EB9;
    border-radius: 15px;
    padding: 5px;
    background-color: #298EB9;
    display: inline;
    position: absolute;
    display: inline-block;
    bottom: -10px;
    transform: translateX(-50%);
}

#achieve {
    color: white;
    font-family: 'Averia Libre';
    font-size: 1em;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Ensures content is centered vertically */
    align-items: center;
    padding: 10px;
    /* Add a small padding to ensure the text doesn't touch the edges */
    box-sizing: border-box;
}

.award {
    margin: 5px 0;
    line-height: 1.2;
}

.yearrec {
    margin: 5px 0;
    line-height: 1.2;
}

.achievementspic {
    width: 120px;
    height: auto;
    margin: 5px 0;
    display: none;
}

#achievements {
    width: 250px;
    height: 250px;
    background-color: #298EB9;
    text-align: center;
    position: relative;
    border-radius: 20px;
    padding: 10px;
    box-sizing: border-box;
}

.avatar1 {
    float: left
}

.links {
    text-decoration: none;
}

@media screen and (max-width: 1260px) {
    #achievements {
        margin-top: -8em;
    }
    #randompic {
        margin-top: -6em;
    }
    #skills {
        margin-top: -4em;
    }
}

@media screen and (max-width: 1200px) {
    .grid-container {
        grid-template-columns: 30% 30% 30%;
    }
    #achievements,#skills{
        margin-top: -2%;
        margin-left: auto;
    }
    #randompic{
        margin-top: -50%;
        margin-left: auto;
    }
    #achievements{
        margin-top: -20%;
        margin-left: auto;
    }
    #about-intro,#resume,#media{
        width: 80%;
        margin: 1em auto;
    }
  }
  
  @media screen and (max-width: 900px) {
    .grid-container {
        grid-template-columns: 50% 50%;
        justify-items: center;
        width: 100vw;
        height: 100vh;
    }
    #achievements,#skills,#randompic{
        align-self: start;
        margin-top: 2em;
    }
    #about-intro,#resume,#media,#achievements,#randompic,#skills{
        width: 80%;
        margin: 1em auto;
    }
    #achievements{
        height: 80%;
    }
  }
  
  @media screen and (max-width: 500px) {
    .grid-container {
        grid-template-rows: auto;
    }
    #about-intro p,.award,.yearrec {
        font-size: calc(1vw + 1vh);
    }
    #about-intro img{
        width: 5em;
        height: 5em;
    }
    #about-intro,#resume,#media,#achievements,#randompic,#skills{
        height: 30vh;
        margin: 1em auto;
    }
    #slider{
        width: 80%;
        font-size: calc(1vw + 1vh);
    }
  }
  